• 大小: 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  YLFollowMusicPlayer-master\
     文件        6148  2017-07-17 07:22  YLFollowMusicPlayer-master\.DS_Store
     文件        1398  2017-07-17 07:22  YLFollowMusicPlayer-master\.gitignore
     文件        1062  2017-07-17 07:22  YLFollowMusicPlayer-master\LICENSE
     文件         637  2017-07-17 07:22  YLFollowMusicPlayer-master\README.md
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\
     文件        6148  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\.DS_Store
     文件         256  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Podfile
     文件         669  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Podfile.lock
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\
     文件          49  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\MASCompositeConstraint.h
     文件          48  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\MASConstraint+Private.h
     文件          40  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\MASConstraint.h
     文件          45  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\MASConstraintMaker.h
     文件          46  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\MASLayoutConstraint.h
     文件          39  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\MASUtilities.h
     文件          43  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\MASViewAttribute.h
     文件          44  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\MASViewConstraint.h
     文件          34  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\Masonry.h
     文件          47  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\NSArray+MASAdditions.h
     文件          56  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\NSArray+MASShorthandAdditions.h
     文件          63  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\NSLayoutConstraint+MASDebugAdditions.h
     文件          44  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\View+MASAdditions.h
     文件          53  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\View+MASShorthandAdditions.h
     文件          54  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\Masonry\ViewController+MASAdditions.h
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\NAKPlaybackIndicatorView\
     文件          75  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\NAKPlaybackIndicatorView\NAKPlaybackIndicatorContentView.h
     文件          68  2017-07-17 07:22  YLFollowMusicPlayer-master\YLFollowMusicPlayer\Pods\Headers\Private\NAKPlaybackIndicatorView\NAKPlaybackIndicatorView.h
............此处省略405个文件信息

评论

共有 条评论