swift-YLFollowMusicPlayer一个在线音乐播放器


使用豆瓣开源音频播放库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-masterLICENSE
     文件         637  2017-07-17 07:22  YLFollowMusicPlayer-masterREADME.md
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayer
     文件        6148  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayer.DS_Store
     文件         256  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodfile
     文件         669  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodfile.lock
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPods
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeaders
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivate
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonry
     文件          49  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryMASCompositeConstraint.h
     文件          48  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryMASConstraint+Private.h
     文件          40  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryMASConstraint.h
     文件          45  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryMASConstraintMaker.h
     文件          46  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryMASLayoutConstraint.h
     文件          39  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryMASUtilities.h
     文件          43  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryMASViewAttribute.h
     文件          44  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryMASViewConstraint.h
     文件          34  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryMasonry.h
     文件          47  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryNSArray+MASAdditions.h
     文件          56  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryNSArray+MASShorthandAdditions.h
     文件          63  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryNSLayoutConstraint+MASDebugAdditions.h
     文件          44  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryView+MASAdditions.h
     文件          53  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryView+MASShorthandAdditions.h
     文件          54  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateMasonryViewController+MASAdditions.h
     目录           0  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateNAKPlaybackIndicatorView
     文件          75  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateNAKPlaybackIndicatorViewNAKPlaybackIndicatorContentView.h
     文件          68  2017-07-17 07:22  YLFollowMusicPlayer-masterYLFollowMusicPlayerPodsHeadersPrivateNAKPlaybackIndicatorViewNAKPlaybackIndicatorView.h
............此处省略405个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)