-
大小: 6.9MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-11-18
- 语言: 其他
- 标签:
资源简介
使用豆瓣开源音频播放库DOUAudioStreamer 制作的一个可以播放在线音频和本地音频的播放器。
代码片段和文件信息
//
// MASCompositeConstraint.m
// Masonry
//
// Created by Jonas Budelmann on 21/07/13.
// Copyright (c) 2013 cloudling. All rights reserved.
//
#import “MASCompositeConstraint.h“
#import “MASConstraint+Private.h“
@interface MASCompositeConstraint ()
@property (nonatomic strong) id mas_key;
@property (nonatomic strong) NSMutableArray *childConstraints;
@end
@implementation MASCompositeConstraint
- (id)initWithChildren:(NSArray *)children {
self = [super init];
if (!self) return nil;
_childConstraints = [children mutableCopy];
for (MASConstraint *constraint in _childConstraints) {
constraint.delegate = self;
}
return self;
}
#pragma mark - MASConstraintDelegate
- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint {
NSUInteger index = [self.childConstraints indexOfobject:constraint];
NSAssert(index != NSNotFound @“Could not find constraint %@“ constraint);
[self.childConstraints replaceobjectAtIndex:index withobject:replacementConstraint];
}
- (MASConstraint *)constraint:(MASConstraint __unused *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {
id strongDelegate = self.delegate;
MASConstraint *newConstraint = [strongDelegate constraint:self addConstraintWithLayoutAttribute:layoutAttribute];
newConstraint.delegate = self;
[self.childConstraints addobject:newConstraint];
return newConstraint;
}
#pragma mark - NSLayoutConstraint multiplier proxies
- (MASConstraint * (^)(CGFloat))multipliedBy {
return ^id(CGFloat multiplier) {
for (MASConstraint *constraint in self.childConstraints) {
constraint.multipliedBy(multiplier);
}
return self;
};
}
- (MASConstraint * (^)(CGFloat))dividedBy {
return ^id(CGFloat divider) {
for (MASConstraint *constraint in self.childConstraints) {
constraint.dividedBy(divider);
}
return self;
};
}
#pragma mark - MASLayoutPriority proxy
- (MASConstraint * (^)(MASLayoutPriority))priority {
return ^id(MASLayoutPriority priority) {
for (MASConstraint *constraint in self.childConstraints) {
constraint.priority(priority);
}
return self;
};
}
#pragma mark - NSLayoutRelation proxy
- (MASConstraint * (^)(id NSLayoutRelation))equalToWithRelation {
return ^id(id attr NSLayoutRelation relation) {
for (MASConstraint *constraint in self.childConstraints.copy) {
constraint.equalToWithRelation(attr relation);
}
return self;
};
}
#pragma mark - attribute chaining
- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {
[self constraint:self addConstraintWithLayoutAttribute:layoutAttribute];
return self;
}
#pragma mark - Animator proxy
#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV)
- (MA
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-07-17 07:22 YLFollowMusicPla
文件 6148 2017-07-17 07:22 YLFollowMusicPla
文件 1398 2017-07-17 07:22 YLFollowMusicPla
文件 1062 2017-07-17 07:22 YLFollowMusicPla
文件 637 2017-07-17 07:22 YLFollowMusicPla
目录 0 2017-07-17 07:22 YLFollowMusicPla
文件 6148 2017-07-17 07:22 YLFollowMusicPla
文件 256 2017-07-17 07:22 YLFollowMusicPla
文件 669 2017-07-17 07:22 YLFollowMusicPla
目录 0 2017-07-17 07:22 YLFollowMusicPla
目录 0 2017-07-17 07:22 YLFollowMusicPla
目录 0 2017-07-17 07:22 YLFollowMusicPla
目录 0 2017-07-17 07:22 YLFollowMusicPla
文件 49 2017-07-17 07:22 YLFollowMusicPla
文件 48 2017-07-17 07:22 YLFollowMusicPla
文件 40 2017-07-17 07:22 YLFollowMusicPla
文件 45 2017-07-17 07:22 YLFollowMusicPla
文件 46 2017-07-17 07:22 YLFollowMusicPla
文件 39 2017-07-17 07:22 YLFollowMusicPla
文件 43 2017-07-17 07:22 YLFollowMusicPla
文件 44 2017-07-17 07:22 YLFollowMusicPla
文件 34 2017-07-17 07:22 YLFollowMusicPla
文件 47 2017-07-17 07:22 YLFollowMusicPla
文件 56 2017-07-17 07:22 YLFollowMusicPla
文件 63 2017-07-17 07:22 YLFollowMusicPla
文件 44 2017-07-17 07:22 YLFollowMusicPla
文件 53 2017-07-17 07:22 YLFollowMusicPla
文件 54 2017-07-17 07:22 YLFollowMusicPla
目录 0 2017-07-17 07:22 YLFollowMusicPla
文件 75 2017-07-17 07:22 YLFollowMusicPla
文件 68 2017-07-17 07:22 YLFollowMusicPla
............此处省略405个文件信息
评论
共有 条评论