├── ItunesStack ├── Assets.xcassets │ ├── Contents.json │ ├── hebe.imageset │ │ ├── hebe.jpg │ │ └── Contents.json │ ├── Jepsen.imageset │ │ ├── Jepsen.jpeg │ │ └── Contents.json │ ├── eminem.imageset │ │ ├── eminem.png │ │ └── Contents.json │ ├── sharedart_next.imageset │ │ ├── sharedart_next.png │ │ ├── sharedart_next@2x.png │ │ └── Contents.json │ ├── sharedart_play.imageset │ │ ├── sharedart_play.png │ │ ├── sharedart_play@2x.png │ │ └── Contents.json │ ├── sharedart_pause.imageset │ │ ├── sharedart_pause.png │ │ ├── sharedart_pause@2x.png │ │ └── Contents.json │ ├── cm2_list_icn_play.imageset │ │ ├── cm2_list_icn_play.png │ │ ├── cm2_list_icn_play@2x.png │ │ ├── cm2_list_icn_play@3x.png │ │ └── Contents.json │ ├── sharedart_previous.imageset │ │ ├── sharedart_previous.png │ │ ├── sharedart_previous@2x.png │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── UITableView+help.h ├── ViewController.h ├── MainCell.h ├── AppDelegate.h ├── MusicPlayerViewController.h ├── CustomTabBarController.h ├── CunstomNavigationController.h ├── main.m ├── UITableView+help.m ├── MusicToolBar.h ├── PrefixHeader.pch ├── MainCell.m ├── UIView+tool.h ├── CardTransition.h ├── Info.plist ├── ViewController.m ├── CunstomNavigationController.m ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── MusicToolBar.m ├── AppDelegate.m ├── CustomTabBarController.m ├── UIView+tool.m ├── MusicPlayerViewController.m └── CardTransition.m ├── ItunesStack.xcodeproj ├── xcuserdata │ ├── leon.xcuserdatad │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── ItunesStack.xcscheme │ └── Leon.Hwa.xcuserdatad │ │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── ItunesStack.xcscheme ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ ├── leon.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ └── Leon.Hwa.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── project.pbxproj ├── README.md ├── ItunesStackTests ├── Info.plist └── ItunesStackTests.m └── ItunesStackUITests ├── Info.plist └── ItunesStackUITests.m /ItunesStack/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/hebe.imageset/hebe.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/hebe.imageset/hebe.jpg -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/Jepsen.imageset/Jepsen.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/Jepsen.imageset/Jepsen.jpeg -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/eminem.imageset/eminem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/eminem.imageset/eminem.png -------------------------------------------------------------------------------- /ItunesStack.xcodeproj/xcuserdata/leon.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_next.imageset/sharedart_next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/sharedart_next.imageset/sharedart_next.png -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_play.imageset/sharedart_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/sharedart_play.imageset/sharedart_play.png -------------------------------------------------------------------------------- /ItunesStack.xcodeproj/xcuserdata/Leon.Hwa.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_pause.imageset/sharedart_pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/sharedart_pause.imageset/sharedart_pause.png -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_next.imageset/sharedart_next@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/sharedart_next.imageset/sharedart_next@2x.png -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_pause.imageset/sharedart_pause@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/sharedart_pause.imageset/sharedart_pause@2x.png -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_play.imageset/sharedart_play@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/sharedart_play.imageset/sharedart_play@2x.png -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/cm2_list_icn_play.imageset/cm2_list_icn_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/cm2_list_icn_play.imageset/cm2_list_icn_play.png -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/cm2_list_icn_play.imageset/cm2_list_icn_play@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/cm2_list_icn_play.imageset/cm2_list_icn_play@2x.png -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/cm2_list_icn_play.imageset/cm2_list_icn_play@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/cm2_list_icn_play.imageset/cm2_list_icn_play@3x.png -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_previous.imageset/sharedart_previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/sharedart_previous.imageset/sharedart_previous.png -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_previous.imageset/sharedart_previous@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack/Assets.xcassets/sharedart_previous.imageset/sharedart_previous@2x.png -------------------------------------------------------------------------------- /ItunesStack.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ItunesStack.xcodeproj/project.xcworkspace/xcuserdata/leon.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack.xcodeproj/project.xcworkspace/xcuserdata/leon.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ItunesStack.xcodeproj/project.xcworkspace/xcuserdata/Leon.Hwa.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d2rivendell/AppleMusic/HEAD/ItunesStack.xcodeproj/project.xcworkspace/xcuserdata/Leon.Hwa.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AppleMusic 2 | Apple Music modal style 3 | 4 | this demo shows how to presenting a ViewController like apple music style 5 | 6 | ![AppleMusic](http://upload-images.jianshu.io/upload_images/4838624-3681417d5c8d9190.gif?imageMogr2/auto-orient/strip) 7 | -------------------------------------------------------------------------------- /ItunesStack/UITableView+help.h: -------------------------------------------------------------------------------- 1 | // 2 | // UITableView+help.h 3 | // ItunesStack 4 | // 5 | // Created by Leon on 2017/6/13. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UITableView (help) 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ItunesStack/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /ItunesStack/MainCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainCell.h 3 | // ItunesStack 4 | // 5 | // Created by Leon on 2017/6/11. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MainCell : UITableViewCell 12 | @property (weak, nonatomic) IBOutlet UIImageView *avatar; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /ItunesStack/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /ItunesStack/MusicPlayerViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MusicPlayerViewController.h 3 | // ItunesStack 4 | // 5 | // Created by Leon on 2017/6/11. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MusicPlayerViewController : UIViewController 12 | 13 | @property (weak, nonatomic) IBOutlet UITableView *tableView; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ItunesStack/CustomTabBarController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CustomTabBarController.h 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "MusicToolBar.h" 11 | @interface CustomTabBarController : UITabBarController 12 | @property (nonatomic, strong) MusicToolBar *musicToolBar; 13 | @end 14 | -------------------------------------------------------------------------------- /ItunesStack/CunstomNavigationController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CunstomNavigationController.h 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CunstomNavigationController : UINavigationController 12 | 13 | @property (nonatomic, weak) UIImageView *imgView; 14 | 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ItunesStack/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/hebe.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "hebe.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/Jepsen.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Jepsen.jpeg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/eminem.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "eminem.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /ItunesStack/UITableView+help.m: -------------------------------------------------------------------------------- 1 | // 2 | // UITableView+help.m 3 | // ItunesStack 4 | // 5 | // Created by Leon on 2017/6/13. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import "UITableView+help.h" 10 | 11 | @implementation UITableView (help) 12 | - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer { 13 | return YES; 14 | } 15 | @end 16 | -------------------------------------------------------------------------------- /ItunesStack/MusicToolBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // PlayerView.h 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | typedef void (^MusicPlayBlock)(void); 11 | @interface MusicToolBar : UIVisualEffectView 12 | @property (nonatomic, strong) UIImageView *avatar; 13 | @property (nonatomic, copy) MusicPlayBlock musicPlayBlock; 14 | @property (nonatomic, strong) UIButton *playBtn; 15 | @end 16 | -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_next.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "sharedart_next.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "sharedart_next@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_play.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "sharedart_play.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "sharedart_play@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_pause.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "sharedart_pause.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "sharedart_pause@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/sharedart_previous.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "sharedart_previous.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "sharedart_previous@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /ItunesStack/PrefixHeader.pch: -------------------------------------------------------------------------------- 1 | // 2 | // PrefixHeader.pch 3 | // ItunesStack 4 | // 5 | // Created by Leon on 2017/6/11. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #ifndef PrefixHeader_pch 10 | #define PrefixHeader_pch 11 | 12 | 13 | #import "UIView+tool.h" 14 | 15 | #define PaddingToTop 20.0f 16 | 17 | 18 | //手势下滑最大允许位移 19 | #define gestureOffset 200.0f 20 | //对应view可允许的最大偏移距离 21 | #define dismissOffset 80.0f 22 | //幅值 23 | #define W M_PI/(gestureOffset * 2) 24 | 25 | #endif /* PrefixHeader_pch */ 26 | -------------------------------------------------------------------------------- /ItunesStack/MainCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // MainCell.m 3 | // ItunesStack 4 | // 5 | // Created by Leon on 2017/6/11. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import "MainCell.h" 10 | 11 | @implementation MainCell 12 | 13 | - (void)awakeFromNib { 14 | [super awakeFromNib]; 15 | // Initialization code 16 | } 17 | 18 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 19 | [super setSelected:selected animated:animated]; 20 | 21 | // Configure the view for the selected state 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/cm2_list_icn_play.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "cm2_list_icn_play.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "cm2_list_icn_play@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "cm2_list_icn_play@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ItunesStack/UIView+tool.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+tool.h 3 | // HYFWeibos 4 | // 5 | // Created by mac1 on 16/3/4. 6 | // Copyright © 2016年 mac1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIView (tool) 12 | @property(nonatomic,assign)CGFloat x; 13 | @property(nonatomic,assign)CGFloat y; 14 | @property(nonatomic,assign)CGFloat width; 15 | @property(nonatomic,assign)CGFloat height; 16 | @property(nonatomic,assign)CGPoint origin; 17 | @property(nonatomic,assign)CGSize size; 18 | 19 | 20 | @property(nonatomic,assign)CGFloat centerX; 21 | @property(nonatomic,assign)CGFloat centerY; 22 | + (UIImage *)copyView:(UIView *)view; 23 | @end 24 | -------------------------------------------------------------------------------- /ItunesStackTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ItunesStackUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ItunesStack/CardTransition.h: -------------------------------------------------------------------------------- 1 | // 2 | // CardTransition.h 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import "MusicPlayerViewController.h" 12 | typedef void (^CardTransitionDismiss)(); 13 | typedef void (^CardTransitionPresenting)(); 14 | 15 | 16 | @interface CardTransition : NSObject 17 | @property (nonatomic, weak) UITabBar *tabBar; 18 | @property (nonatomic, copy) CardTransitionDismiss dismissBlock; 19 | @property (nonatomic, copy) CardTransitionPresenting presentingBlock; 20 | @property (weak, nonatomic) UIViewController *presentedVc; 21 | - (instancetype)initWidthOperation:(UINavigationControllerOperation )operation; 22 | @end 23 | -------------------------------------------------------------------------------- /ItunesStack.xcodeproj/xcuserdata/leon.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ItunesStack.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 4F0D57901EE7C82600AEA97D 16 | 17 | primary 18 | 19 | 20 | 4F0D57A91EE7C82700AEA97D 21 | 22 | primary 23 | 24 | 25 | 4F0D57B41EE7C82700AEA97D 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /ItunesStack.xcodeproj/xcuserdata/Leon.Hwa.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ItunesStack.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 4F0D57901EE7C82600AEA97D 16 | 17 | primary 18 | 19 | 20 | 4F0D57A91EE7C82700AEA97D 21 | 22 | primary 23 | 24 | 25 | 4F0D57B41EE7C82700AEA97D 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /ItunesStack/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /ItunesStackTests/ItunesStackTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // ItunesStackTests.m 3 | // ItunesStackTests 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ItunesStackTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation ItunesStackTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /ItunesStack/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /ItunesStack/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "CardTransition.h" 11 | 12 | @interface ViewController () 13 | //@property (nonatomic, strong) CardTransition *cardTransition; 14 | @end 15 | 16 | @implementation ViewController 17 | 18 | - (void)viewDidLoad { 19 | [super viewDidLoad]; 20 | self.navigationController.delegate = self; 21 | 22 | 23 | } 24 | - (IBAction)push:(id)sender { 25 | // CardViewController *CardVC = [[CardViewController alloc] init]; 26 | // CardVC.modalPresentationStyle = UIModalPresentationCustom; 27 | // CardVC.transitioningDelegate = self.cardTransition; 28 | // [self presentViewController:CardVC animated:YES completion:nil]; 29 | } 30 | //- (CardTransition *)cardTransition{ 31 | // if(_cardTransition == nil){ 32 | // _cardTransition= [[CardTransition alloc] init]; 33 | // } 34 | // return _cardTransition; 35 | //} 36 | 37 | - (void)didReceiveMemoryWarning { 38 | [super didReceiveMemoryWarning]; 39 | // Dispose of any resources that can be recreated. 40 | } 41 | 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /ItunesStackUITests/ItunesStackUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // ItunesStackUITests.m 3 | // ItunesStackUITests 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ItunesStackUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation ItunesStackUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /ItunesStack/CunstomNavigationController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CunstomNavigationController.m 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import "CunstomNavigationController.h" 10 | #import "CardTransition.h" 11 | 12 | 13 | @interface CunstomNavigationController () 14 | @property (nonatomic, strong) UIVisualEffectView *playerBarView; 15 | 16 | @end 17 | 18 | @implementation CunstomNavigationController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | 23 | 24 | } 25 | - (void)setupPalyerBar{ 26 | 27 | } 28 | //- (id )navigationController:(UINavigationController *)navigationController 29 | // animationControllerForOperation:(UINavigationControllerOperation)operation 30 | // fromViewController:(UIViewController *)fromVC{ 31 | // return [[CardTransition alloc] initWidthOperation:operation]; 32 | //} 33 | //- (void)musicDetail{ 34 | // CardViewController *cardVC = [[CardViewController alloc] init]; 35 | // [self pushViewController:cardVC animated:YES]; 36 | //} 37 | 38 | - (void)didReceiveMemoryWarning { 39 | [super didReceiveMemoryWarning]; 40 | // Dispose of any resources that can be recreated. 41 | } 42 | 43 | /* 44 | #pragma mark - Navigation 45 | 46 | // In a storyboard-based application, you will often want to do a little preparation before navigation 47 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 48 | // Get the new view controller using [segue destinationViewController]. 49 | // Pass the selected object to the new view controller. 50 | } 51 | */ 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /ItunesStack/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ItunesStack/MusicToolBar.m: -------------------------------------------------------------------------------- 1 | // 2 | // PlayerView.m 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import "MusicToolBar.h" 10 | @interface MusicToolBar() 11 | 12 | @end 13 | @implementation MusicToolBar 14 | 15 | - (instancetype)initWithFrame:(CGRect)frame 16 | { 17 | self = [super initWithFrame:frame]; 18 | if (self) { 19 | self.effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight]; 20 | CGFloat width = [UIScreen mainScreen].bounds.size.width; 21 | UIImageView *avatar = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"eminem"]]; 22 | avatar.contentMode = UIViewContentModeScaleAspectFit; 23 | avatar.clipsToBounds = YES; 24 | avatar.frame = CGRectMake(30, 10, 50, 60); 25 | [self addSubview:avatar]; 26 | self.avatar = avatar; 27 | [self addGestureRecognizer: [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(musicDetail)]]; 28 | 29 | UILabel *lb = [[UILabel alloc] init]; 30 | lb.text = @"Love the Way You Lie"; 31 | lb.frame = CGRectMake(CGRectGetMaxX(avatar.frame) + 20, (self.bounds.size.height - 20)/2, 160, 20); 32 | [self addSubview:lb]; 33 | UIButton *playBtn = [[UIButton alloc] init]; 34 | [playBtn setImage:[UIImage imageNamed:@"sharedart_pause"] forState:UIControlStateNormal]; 35 | CGFloat imageW = playBtn.imageView.image.size.width; 36 | CGFloat imageH = playBtn.imageView.image.size.height; 37 | playBtn.frame = CGRectMake(width - imageW - 20, (frame.size.height - imageH)/2, imageW, imageH); 38 | [self addSubview:playBtn]; 39 | self.playBtn = playBtn; 40 | } 41 | return self; 42 | } 43 | 44 | - (void)musicDetail{ 45 | if(_musicPlayBlock){ 46 | _musicPlayBlock(); 47 | } 48 | } 49 | @end 50 | -------------------------------------------------------------------------------- /ItunesStack/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /ItunesStack/CustomTabBarController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CustomTabBarController.m 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import "CustomTabBarController.h" 10 | 11 | #import "CardTransition.h" 12 | #import "MusicPlayerViewController.h" 13 | @interface CustomTabBarController () 14 | 15 | @property (nonatomic, strong) CardTransition *cardTransition; 16 | @end 17 | 18 | @implementation CustomTabBarController 19 | - (CardTransition *)cardTransition{ 20 | if(_cardTransition == nil){ 21 | _cardTransition= [[CardTransition alloc] init]; 22 | _cardTransition.tabBar = self.tabBar; 23 | __weak typeof(self) weakSelf = self; 24 | _cardTransition.dismissBlock = ^(){ 25 | __strong typeof(self) strongSelf = weakSelf; 26 | [strongSelf showTabbar]; 27 | }; 28 | _cardTransition.presentingBlock = ^(){ 29 | __strong typeof(self) strongSelf = weakSelf; 30 | [strongSelf hideTabBar]; 31 | }; 32 | } 33 | return _cardTransition; 34 | } 35 | - (void)viewDidLoad { 36 | [super viewDidLoad]; 37 | [self setupPalyerBar]; 38 | 39 | } 40 | - (UIStatusBarStyle)preferredStatusBarStyle{ 41 | return UIStatusBarStyleLightContent; 42 | } 43 | - (void)setupPalyerBar{ 44 | CGFloat width = [UIScreen mainScreen].bounds.size.width; 45 | self.musicToolBar = [[MusicToolBar alloc] initWithFrame:CGRectMake(0,self.view.bounds.size.height - 80 - self.tabBar.bounds.size.height, width, 80)]; 46 | [self.view insertSubview:self.musicToolBar belowSubview:self.tabBar]; 47 | __weak typeof(self) weakSelf = self; 48 | // modal 49 | self.musicToolBar.musicPlayBlock = ^(){ 50 | __strong typeof(self) strongSelf = weakSelf; 51 | MusicPlayerViewController *CardVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"MusicPlayerViewController" ]; 52 | CardVC.modalPresentationStyle = UIModalPresentationCustom; 53 | CardVC.transitioningDelegate = strongSelf.cardTransition; 54 | [strongSelf presentViewController:CardVC animated:YES completion:nil]; 55 | }; 56 | } 57 | - (void)hideTabBar{ 58 | self.tabBar.hidden = YES; 59 | 60 | } 61 | - (void)showTabbar{ 62 | self.tabBar.hidden = NO; 63 | _cardTransition = nil; 64 | } 65 | - (void)didReceiveMemoryWarning { 66 | [super didReceiveMemoryWarning]; 67 | // Dispose of any resources that can be recreated. 68 | } 69 | 70 | 71 | 72 | @end 73 | -------------------------------------------------------------------------------- /ItunesStack/UIView+tool.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+tool.m 3 | // HYFWeibos 4 | // 5 | // Created by mac1 on 16/3/4. 6 | // Copyright © 2016年 mac1. All rights reserved. 7 | // 8 | 9 | #import "UIView+tool.h" 10 | 11 | @implementation UIView (tool) 12 | 13 | - (void)setX:(CGFloat)x 14 | { 15 | CGRect frame = self.frame; 16 | frame.origin.x = x; 17 | self.frame = frame; 18 | } 19 | 20 | - (CGFloat)x 21 | { 22 | return self.frame.origin.x; 23 | } 24 | 25 | - (void)setY:(CGFloat)y 26 | { 27 | CGRect frame = self.frame; 28 | frame.origin.y = y; 29 | self.frame = frame; 30 | } 31 | 32 | - (CGFloat)y 33 | { 34 | return self.frame.origin.y; 35 | } 36 | 37 | - (void)setWidth:(CGFloat)width 38 | { 39 | CGRect frame = self.frame; 40 | frame.size.width = width; 41 | self.frame = frame; 42 | 43 | } 44 | 45 | - (CGFloat)width 46 | { 47 | return self.frame.size.width; 48 | } 49 | 50 | - (void)setHeight:(CGFloat)height 51 | { 52 | CGRect frame = self.frame; 53 | frame.size.height = height; 54 | self.frame = frame; 55 | 56 | } 57 | 58 | - (CGFloat)height 59 | { 60 | return self.frame.size.height; 61 | } 62 | 63 | - (void)setOrigin:(CGPoint)origin 64 | { 65 | CGRect frame = self.frame; 66 | frame.origin = origin; 67 | self.frame = frame; 68 | 69 | } 70 | 71 | - (CGPoint)origin 72 | { 73 | return self.frame.origin; 74 | } 75 | 76 | 77 | 78 | - (void)setSize:(CGSize)size 79 | { 80 | CGRect frame = self.frame; 81 | frame.size = size; 82 | self.frame = frame; 83 | 84 | 85 | } 86 | 87 | - (CGSize)size 88 | { 89 | return self.frame.size; 90 | } 91 | 92 | - (void)setCenterX:(CGFloat)centerX 93 | { 94 | CGPoint center = self.center; 95 | center.x = centerX; 96 | self.center = center; 97 | 98 | } 99 | 100 | - (CGFloat)centerX 101 | { 102 | return self.center.x; 103 | } 104 | 105 | - (void)setCenterY:(CGFloat)centerY 106 | { 107 | CGPoint center = self.center; 108 | center.y = centerY; 109 | self.center = center; 110 | 111 | } 112 | 113 | - (CGFloat)centerY 114 | { 115 | return self.center.y; 116 | } 117 | 118 | + (UIImage *)copyView:(UIView *)view{ 119 | 120 | //会失真 121 | // UIGraphicsBeginImageContext(view.size); 122 | UIGraphicsBeginImageContextWithOptions(view.size, NO, [UIScreen mainScreen].scale); 123 | CGContextRef context = UIGraphicsGetCurrentContext(); 124 | [view.layer renderInContext:context]; 125 | UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); 126 | 127 | UIGraphicsEndImageContext(); 128 | return newImage; 129 | 130 | } 131 | 132 | @end 133 | -------------------------------------------------------------------------------- /ItunesStack/MusicPlayerViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // MusicPlayerViewController.m 3 | // ItunesStack 4 | // 5 | // Created by Leon on 2017/6/11. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | 10 | 11 | #import "MusicPlayerViewController.h" 12 | #import "MainCell.h" 13 | #import "UITableView+help.h" 14 | 15 | 16 | @interface MusicPlayerViewController () 17 | //view的y偏移值 18 | @property (assign, nonatomic) CGFloat dampOffset; 19 | //判断手势是否可用的开关 20 | @property (assign, nonatomic) BOOL stopPanGesture; 21 | @end 22 | 23 | @implementation MusicPlayerViewController 24 | 25 | - (void)viewDidLoad { 26 | [super viewDidLoad]; 27 | [self addGesture]; 28 | } 29 | 30 | - (void)addGesture{ 31 | UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(move:)]; 32 | [self.view addGestureRecognizer:pan]; 33 | } 34 | 35 | - (void)move:(UIPanGestureRecognizer *)pan{ 36 | CGPoint point = [pan translationInView:self.view]; 37 | if(self.stopPanGesture == YES){ 38 | return; 39 | } 40 | if(pan.state == UIGestureRecognizerStateBegan){ 41 | self.dampOffset = 0; 42 | }else if(pan.state == UIGestureRecognizerStateChanged){ 43 | 44 | if(point.y <= gestureOffset && point.y > 0){ 45 | self.dampOffset = sin(W * point.y ) * dismissOffset;//简陋的阻尼效果😊 46 | self.view.transform = CGAffineTransformMakeTranslation(0, self.dampOffset); 47 | } 48 | }else if(pan.state == UIGestureRecognizerStateEnded){ 49 | //恢复 50 | [UIView animateWithDuration: 0.3 delay:0 usingSpringWithDamping:0.93 initialSpringVelocity:0.3 options:UIViewAnimationOptionCurveEaseOut animations:^{ 51 | self.view.transform = CGAffineTransformIdentity; 52 | } completion:^(BOOL finished) { 53 | self.dampOffset = 0; 54 | }]; 55 | } 56 | NSLog(@"%f %f",point.y,self.dampOffset); 57 | if(self.dampOffset >= (dismissOffset - 1 )){ 58 | [self dismissViewControllerAnimated:YES completion:nil]; 59 | } 60 | 61 | } 62 | 63 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView{ 64 | CGFloat offsetY = scrollView.contentOffset.y; 65 | if(offsetY <= 0){//向下滑动 View也跟着滑动 66 | if(self.stopPanGesture == YES){//手已经放开 下拉tableView有缓冲力 tableView 会上下弹动 67 | // view跟随tableView弹性 68 | self.view.transform = CGAffineTransformMakeTranslation(0, -scrollView.contentOffset.y); 69 | //为了让tableView顶部和View的magin保持为0 70 | scrollView.transform = CGAffineTransformMakeTranslation(0, scrollView.contentOffset.y); 71 | }else{ 72 | //the should not scroll 73 | scrollView.contentOffset = CGPointZero; 74 | } 75 | }else{//向上滑动 76 | //view正在阻尼运动scollView仍无法响应滑动事件 77 | if(self.dampOffset){ 78 | scrollView.contentOffset = CGPointZero; 79 | }else{ 80 | //view在初始位置 81 | self.stopPanGesture = YES; 82 | } 83 | } 84 | if(scrollView.decelerating){ 85 | // 正在减速 86 | self.stopPanGesture = YES; 87 | } 88 | } 89 | 90 | - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ 91 | self.stopPanGesture = NO; 92 | } 93 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ 94 | return 1; 95 | } 96 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ 97 | MainCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MainCell"]; 98 | return cell; 99 | } 100 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ 101 | return 703; 102 | } 103 | - (void)didReceiveMemoryWarning { 104 | [super didReceiveMemoryWarning]; 105 | // Dispose of any resources that can be recreated. 106 | } 107 | 108 | 109 | @end 110 | -------------------------------------------------------------------------------- /ItunesStack.xcodeproj/xcuserdata/leon.xcuserdatad/xcschemes/ItunesStack.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /ItunesStack.xcodeproj/xcuserdata/Leon.Hwa.xcuserdatad/xcschemes/ItunesStack.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /ItunesStack/CardTransition.m: -------------------------------------------------------------------------------- 1 | // 2 | // CardTransition.m 3 | // ItunesStack 4 | // 5 | // Created by Leon.Hwa on 2017/6/7. 6 | // Copyright © 2017年 Leon. All rights reserved. 7 | // 8 | 9 | #import "CardTransition.h" 10 | #import "CustomTabBarController.h" 11 | #import "MusicPlayerViewController.h" 12 | #import "MainCell.h" 13 | @interface CardTransition() 14 | { 15 | BOOL _presented; 16 | } 17 | @property (nonatomic, assign) UINavigationControllerOperation operation; 18 | 19 | @property (nonatomic, assign) CGRect playBarAvatarFrame; 20 | @property (nonatomic, assign) CGRect playBarFrame; 21 | @property (nonatomic, strong) UIImageView *tabBarView; 22 | 23 | @end 24 | @implementation CardTransition 25 | 26 | - (instancetype)initWidthOperation:(UINavigationControllerOperation )operation 27 | { 28 | self = [super init]; 29 | if (self) { 30 | _operation = operation; 31 | } 32 | return self; 33 | } 34 | 35 | - ( id )animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source{ 36 | _presented = YES; 37 | return self; 38 | } 39 | 40 | - ( id )animationControllerForDismissedController:(UIViewController *)dismissed{ 41 | _presented = NO; 42 | return self; 43 | } 44 | 45 | 46 | - (NSTimeInterval)transitionDuration:(nullable id )transitionContext{ 47 | return 0.6f; 48 | } 49 | - (void)animateTransition:(id )transitionContext{ 50 | UIView *containerView = [transitionContext containerView]; 51 | CGFloat HEIGHT = [[UIScreen mainScreen] bounds].size.height; 52 | CGFloat WIDTH = [[UIScreen mainScreen] bounds].size.width; 53 | CGFloat scale = (HEIGHT - PaddingToTop * 2)/HEIGHT; 54 | if( _presented){ 55 | CustomTabBarController *fromVC = (CustomTabBarController *)[transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; 56 | MusicPlayerViewController *toVc = (MusicPlayerViewController *)[transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; 57 | [containerView addSubview:toVc.view]; 58 | fromVC.musicToolBar.avatar.hidden = YES; 59 | 60 | UIImage *effectImage = [self copyView:fromVC.musicToolBar]; 61 | UIImageView *effectView = [[UIImageView alloc] initWithImage:effectImage]; 62 | UIImageView *avatar = [[UIImageView alloc] initWithImage:fromVC.musicToolBar.avatar.image]; 63 | effectView.frame = [fromVC.musicToolBar convertRect:fromVC.musicToolBar.bounds toView: [UIApplication sharedApplication].keyWindow]; 64 | self.playBarFrame = effectView.frame; 65 | avatar.frame = [fromVC.musicToolBar.avatar convertRect:fromVC.musicToolBar.avatar.bounds toView: [UIApplication sharedApplication].keyWindow]; 66 | self.playBarAvatarFrame = avatar.frame; 67 | avatar.contentMode = UIViewContentModeScaleAspectFit; 68 | avatar.clipsToBounds = YES; 69 | CGRect finalFrameForVc = [transitionContext finalFrameForViewController:toVc]; 70 | toVc.view.frame = effectView.frame; 71 | 72 | MainCell *cell = [toVc.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]; 73 | 74 | //x的坐标是根据storyBoard的来确定 在小屏幕上不准确 需要手动计算 75 | CGRect avatarEndFrame = CGRectMake((WIDTH - cell.avatar.frame.size.width)/2, cell.avatar.frame.origin.y + 40, cell.avatar.frame.size.width, cell.avatar.frame.size.height); 76 | CGRect effectViewEndFrame = CGRectMake(0 , 40, effectView.frame.size.width, effectView.frame.size.height); 77 | 78 | cell.avatar.image = avatar.image; 79 | cell.avatar.hidden = YES; 80 | 81 | //tabbar在动画的过程中是在toView的上层,也需要做个替身 82 | self.tabBarView = [[UIImageView alloc] initWithImage:[self copyView:self.tabBar]]; 83 | 84 | CGFloat tabBarW = self.tabBarView.image.size.width; 85 | CGFloat tabBarH = self.tabBarView.image.size.height; 86 | self.tabBarView.frame = CGRectMake(0, HEIGHT - tabBarH, tabBarW, tabBarH); 87 | [containerView addSubview:effectView]; 88 | [containerView addSubview:avatar]; 89 | [containerView addSubview:self.tabBarView]; 90 | if(_presentingBlock){ 91 | _presentingBlock(); 92 | } 93 | 94 | [UIView animateWithDuration:[self transitionDuration:transitionContext] delay:0 usingSpringWithDamping:0.93 initialSpringVelocity:0.3 options:UIViewAnimationOptionCurveEaseOut animations:^{ 95 | effectView.alpha = 0; 96 | fromVC.musicToolBar.alpha = 0; 97 | effectView.frame = effectViewEndFrame; 98 | avatar.frame = avatarEndFrame; 99 | fromVC.view.transform = CGAffineTransformMakeScale(scale, scale); 100 | toVc.view.frame = CGRectMake(0, PaddingToTop * 2, finalFrameForVc.size.width, finalFrameForVc.size.height - 40); 101 | self.tabBarView.transform = CGAffineTransformMakeTranslation(0, tabBarH); 102 | [self clickCornerWidth:fromVC.view]; 103 | [self clickCornerWidth:toVc.view]; 104 | } completion:^(BOOL finished) { 105 | cell.avatar.hidden = NO; 106 | [effectView removeFromSuperview]; 107 | [avatar removeFromSuperview]; 108 | [transitionContext completeTransition:YES]; 109 | 110 | }]; 111 | }else{ 112 | 113 | MusicPlayerViewController * fromVc = (MusicPlayerViewController *)[transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; 114 | MainCell *cell = [fromVc.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]; 115 | cell.avatar.hidden = YES; 116 | CustomTabBarController * toVc = (CustomTabBarController *)[transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; 117 | 118 | //头像 119 | UIImageView *avatar = [[UIImageView alloc] init]; 120 | avatar.image = cell.avatar.image; 121 | avatar.frame = [fromVc.view convertRect:cell.avatar.frame toView:[UIApplication sharedApplication].keyWindow]; 122 | avatar.contentMode = UIViewContentModeScaleAspectFit; 123 | avatar.clipsToBounds = YES; 124 | 125 | 126 | CGRect fromVcOriginFrame = [fromVc.view convertRect:fromVc.view.bounds toView:[UIApplication sharedApplication].keyWindow]; 127 | 128 | // animate fakeBar 129 | MusicToolBar *musicToolBar = [[MusicToolBar alloc] initWithFrame:CGRectMake(fromVcOriginFrame.origin.x, fromVcOriginFrame.origin.y, toVc.musicToolBar.bounds.size.width , toVc.musicToolBar.bounds.size.height)]; 130 | musicToolBar.avatar.hidden =YES; 131 | musicToolBar.alpha = 0; 132 | [containerView addSubview:musicToolBar]; 133 | [containerView addSubview:avatar]; 134 | [UIView animateWithDuration:[self transitionDuration:transitionContext] delay:0 usingSpringWithDamping:0.93 initialSpringVelocity:0.3 options:UIViewAnimationOptionCurveEaseOut animations:^{ 135 | fromVc.view.frame = CGRectMake(0, self.playBarFrame.origin.y, WIDTH, HEIGHT - self.playBarFrame.origin.y); 136 | toVc.view.transform = CGAffineTransformIdentity; 137 | toVc.view.layer.mask = nil; 138 | fromVc.view.layer.mask = nil; 139 | avatar.frame = self.playBarAvatarFrame; 140 | musicToolBar.frame = self.playBarFrame; 141 | musicToolBar.alpha = 1; 142 | toVc.musicToolBar.alpha = 1; 143 | self.tabBarView.transform = CGAffineTransformIdentity; 144 | } completion:^(BOOL finished) { 145 | toVc.musicToolBar.hidden = NO; 146 | toVc.musicToolBar.avatar.hidden = NO; 147 | toVc.view.layer.mask = nil; 148 | fromVc.view.layer.mask = nil; 149 | [musicToolBar removeFromSuperview]; 150 | [avatar removeFromSuperview]; 151 | [self.tabBarView removeFromSuperview]; 152 | if(_dismissBlock){ 153 | _dismissBlock(); 154 | }; 155 | [transitionContext completeTransition:YES]; 156 | }]; 157 | 158 | } 159 | 160 | } 161 | 162 | - (UIImage *)copyView:(UIView *)view{ 163 | //会失真 164 | // UIGraphicsBeginImageContext(view.size); 165 | UIGraphicsBeginImageContextWithOptions(view.frame.size, NO, [UIScreen mainScreen].scale); 166 | CGContextRef context = UIGraphicsGetCurrentContext(); 167 | [view.layer renderInContext:context]; 168 | UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); 169 | 170 | UIGraphicsEndImageContext(); 171 | return newImage; 172 | 173 | } 174 | 175 | 176 | - (void)clickCornerWidth:(UIView *)view{ 177 | CGSize screenSize = [UIScreen mainScreen].bounds.size; 178 | //顶部圆角 179 | UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, screenSize.width, screenSize.height * 3) byRoundingCorners:UIRectCornerTopLeft|UIRectCornerTopRight cornerRadii:CGSizeMake(8, 8)]; 180 | CAShapeLayer *sharpLayer = [CAShapeLayer layer]; 181 | sharpLayer.path = path.CGPath; 182 | view.layer.mask = sharpLayer; 183 | } 184 | 185 | 186 | @end 187 | -------------------------------------------------------------------------------- /ItunesStack.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 35193AD51EED104E00915A1B /* MusicPlayerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 35193AD41EED104E00915A1B /* MusicPlayerViewController.m */; }; 11 | 35193AD81EED154700915A1B /* MainCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 35193AD71EED154700915A1B /* MainCell.m */; }; 12 | 35193ADC1EED209A00915A1B /* UIView+tool.m in Sources */ = {isa = PBXBuildFile; fileRef = 35193ADB1EED209A00915A1B /* UIView+tool.m */; }; 13 | 3565AFA41EF011C0004A975B /* UITableView+help.m in Sources */ = {isa = PBXBuildFile; fileRef = 3565AFA31EF011C0004A975B /* UITableView+help.m */; }; 14 | 4F0D57961EE7C82600AEA97D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F0D57951EE7C82600AEA97D /* main.m */; }; 15 | 4F0D57991EE7C82700AEA97D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F0D57981EE7C82700AEA97D /* AppDelegate.m */; }; 16 | 4F0D579C1EE7C82700AEA97D /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F0D579B1EE7C82700AEA97D /* ViewController.m */; }; 17 | 4F0D579F1EE7C82700AEA97D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4F0D579D1EE7C82700AEA97D /* Main.storyboard */; }; 18 | 4F0D57A11EE7C82700AEA97D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4F0D57A01EE7C82700AEA97D /* Assets.xcassets */; }; 19 | 4F0D57A41EE7C82700AEA97D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4F0D57A21EE7C82700AEA97D /* LaunchScreen.storyboard */; }; 20 | 4F0D57AF1EE7C82700AEA97D /* ItunesStackTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F0D57AE1EE7C82700AEA97D /* ItunesStackTests.m */; }; 21 | 4F0D57BA1EE7C82700AEA97D /* ItunesStackUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F0D57B91EE7C82700AEA97D /* ItunesStackUITests.m */; }; 22 | 4F0D57CA1EE7CB4E00AEA97D /* CardTransition.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F0D57C91EE7CB4E00AEA97D /* CardTransition.m */; }; 23 | 4F0D57CE1EE7CEB600AEA97D /* CustomTabBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F0D57CD1EE7CEB600AEA97D /* CustomTabBarController.m */; }; 24 | 4F0D57D11EE7D0AB00AEA97D /* CunstomNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F0D57D01EE7D0AB00AEA97D /* CunstomNavigationController.m */; }; 25 | 4F0D58191EE7E6AA00AEA97D /* MusicToolBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F0D58181EE7E6AA00AEA97D /* MusicToolBar.m */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 4F0D57AB1EE7C82700AEA97D /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 4F0D57891EE7C82600AEA97D /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 4F0D57901EE7C82600AEA97D; 34 | remoteInfo = ItunesStack; 35 | }; 36 | 4F0D57B61EE7C82700AEA97D /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 4F0D57891EE7C82600AEA97D /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 4F0D57901EE7C82600AEA97D; 41 | remoteInfo = ItunesStack; 42 | }; 43 | /* End PBXContainerItemProxy section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | 35193AD31EED104E00915A1B /* MusicPlayerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MusicPlayerViewController.h; sourceTree = ""; }; 47 | 35193AD41EED104E00915A1B /* MusicPlayerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MusicPlayerViewController.m; sourceTree = ""; }; 48 | 35193AD61EED154700915A1B /* MainCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainCell.h; sourceTree = ""; }; 49 | 35193AD71EED154700915A1B /* MainCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainCell.m; sourceTree = ""; }; 50 | 35193ADA1EED209A00915A1B /* UIView+tool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+tool.h"; sourceTree = ""; }; 51 | 35193ADB1EED209A00915A1B /* UIView+tool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+tool.m"; sourceTree = ""; }; 52 | 35193ADD1EED20B100915A1B /* PrefixHeader.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PrefixHeader.pch; sourceTree = ""; }; 53 | 3565AFA21EF011C0004A975B /* UITableView+help.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UITableView+help.h"; sourceTree = ""; }; 54 | 3565AFA31EF011C0004A975B /* UITableView+help.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UITableView+help.m"; sourceTree = ""; }; 55 | 4F0D57911EE7C82600AEA97D /* ItunesStack.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ItunesStack.app; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 4F0D57951EE7C82600AEA97D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 57 | 4F0D57971EE7C82700AEA97D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 58 | 4F0D57981EE7C82700AEA97D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 59 | 4F0D579A1EE7C82700AEA97D /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 60 | 4F0D579B1EE7C82700AEA97D /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 61 | 4F0D579E1EE7C82700AEA97D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 62 | 4F0D57A01EE7C82700AEA97D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 63 | 4F0D57A31EE7C82700AEA97D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 64 | 4F0D57A51EE7C82700AEA97D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 65 | 4F0D57AA1EE7C82700AEA97D /* ItunesStackTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ItunesStackTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | 4F0D57AE1EE7C82700AEA97D /* ItunesStackTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ItunesStackTests.m; sourceTree = ""; }; 67 | 4F0D57B01EE7C82700AEA97D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 68 | 4F0D57B51EE7C82700AEA97D /* ItunesStackUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ItunesStackUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | 4F0D57B91EE7C82700AEA97D /* ItunesStackUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ItunesStackUITests.m; sourceTree = ""; }; 70 | 4F0D57BB1EE7C82700AEA97D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 71 | 4F0D57C81EE7CB4E00AEA97D /* CardTransition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CardTransition.h; sourceTree = ""; }; 72 | 4F0D57C91EE7CB4E00AEA97D /* CardTransition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CardTransition.m; sourceTree = ""; }; 73 | 4F0D57CC1EE7CEB600AEA97D /* CustomTabBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomTabBarController.h; sourceTree = ""; }; 74 | 4F0D57CD1EE7CEB600AEA97D /* CustomTabBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomTabBarController.m; sourceTree = ""; }; 75 | 4F0D57CF1EE7D0AB00AEA97D /* CunstomNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CunstomNavigationController.h; sourceTree = ""; }; 76 | 4F0D57D01EE7D0AB00AEA97D /* CunstomNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CunstomNavigationController.m; sourceTree = ""; }; 77 | 4F0D58171EE7E6AA00AEA97D /* MusicToolBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MusicToolBar.h; sourceTree = ""; }; 78 | 4F0D58181EE7E6AA00AEA97D /* MusicToolBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MusicToolBar.m; sourceTree = ""; }; 79 | /* End PBXFileReference section */ 80 | 81 | /* Begin PBXFrameworksBuildPhase section */ 82 | 4F0D578E1EE7C82600AEA97D /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 4F0D57A71EE7C82700AEA97D /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | 4F0D57B21EE7C82700AEA97D /* Frameworks */ = { 97 | isa = PBXFrameworksBuildPhase; 98 | buildActionMask = 2147483647; 99 | files = ( 100 | ); 101 | runOnlyForDeploymentPostprocessing = 0; 102 | }; 103 | /* End PBXFrameworksBuildPhase section */ 104 | 105 | /* Begin PBXGroup section */ 106 | 35193AD91EED208C00915A1B /* helper */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 3565AFA21EF011C0004A975B /* UITableView+help.h */, 110 | 3565AFA31EF011C0004A975B /* UITableView+help.m */, 111 | 35193ADA1EED209A00915A1B /* UIView+tool.h */, 112 | 35193ADB1EED209A00915A1B /* UIView+tool.m */, 113 | ); 114 | name = helper; 115 | sourceTree = ""; 116 | }; 117 | 4F0D57881EE7C82600AEA97D = { 118 | isa = PBXGroup; 119 | children = ( 120 | 4F0D57931EE7C82600AEA97D /* ItunesStack */, 121 | 4F0D57AD1EE7C82700AEA97D /* ItunesStackTests */, 122 | 4F0D57B81EE7C82700AEA97D /* ItunesStackUITests */, 123 | 4F0D57921EE7C82600AEA97D /* Products */, 124 | ); 125 | sourceTree = ""; 126 | }; 127 | 4F0D57921EE7C82600AEA97D /* Products */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 4F0D57911EE7C82600AEA97D /* ItunesStack.app */, 131 | 4F0D57AA1EE7C82700AEA97D /* ItunesStackTests.xctest */, 132 | 4F0D57B51EE7C82700AEA97D /* ItunesStackUITests.xctest */, 133 | ); 134 | name = Products; 135 | sourceTree = ""; 136 | }; 137 | 4F0D57931EE7C82600AEA97D /* ItunesStack */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 35193AD91EED208C00915A1B /* helper */, 141 | 4F0D57CB1EE7CE7D00AEA97D /* root */, 142 | 4F0D57C71EE7CB0700AEA97D /* transition */, 143 | 4F0D579A1EE7C82700AEA97D /* ViewController.h */, 144 | 4F0D579B1EE7C82700AEA97D /* ViewController.m */, 145 | 35193AD31EED104E00915A1B /* MusicPlayerViewController.h */, 146 | 35193AD41EED104E00915A1B /* MusicPlayerViewController.m */, 147 | 35193AD61EED154700915A1B /* MainCell.h */, 148 | 35193AD71EED154700915A1B /* MainCell.m */, 149 | 4F0D58171EE7E6AA00AEA97D /* MusicToolBar.h */, 150 | 4F0D58181EE7E6AA00AEA97D /* MusicToolBar.m */, 151 | 4F0D579D1EE7C82700AEA97D /* Main.storyboard */, 152 | 4F0D57A01EE7C82700AEA97D /* Assets.xcassets */, 153 | 4F0D57A21EE7C82700AEA97D /* LaunchScreen.storyboard */, 154 | 4F0D57A51EE7C82700AEA97D /* Info.plist */, 155 | 4F0D57941EE7C82600AEA97D /* Supporting Files */, 156 | ); 157 | path = ItunesStack; 158 | sourceTree = ""; 159 | }; 160 | 4F0D57941EE7C82600AEA97D /* Supporting Files */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 4F0D57951EE7C82600AEA97D /* main.m */, 164 | 4F0D57971EE7C82700AEA97D /* AppDelegate.h */, 165 | 4F0D57981EE7C82700AEA97D /* AppDelegate.m */, 166 | 35193ADD1EED20B100915A1B /* PrefixHeader.pch */, 167 | ); 168 | name = "Supporting Files"; 169 | sourceTree = ""; 170 | }; 171 | 4F0D57AD1EE7C82700AEA97D /* ItunesStackTests */ = { 172 | isa = PBXGroup; 173 | children = ( 174 | 4F0D57AE1EE7C82700AEA97D /* ItunesStackTests.m */, 175 | 4F0D57B01EE7C82700AEA97D /* Info.plist */, 176 | ); 177 | path = ItunesStackTests; 178 | sourceTree = ""; 179 | }; 180 | 4F0D57B81EE7C82700AEA97D /* ItunesStackUITests */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | 4F0D57B91EE7C82700AEA97D /* ItunesStackUITests.m */, 184 | 4F0D57BB1EE7C82700AEA97D /* Info.plist */, 185 | ); 186 | path = ItunesStackUITests; 187 | sourceTree = ""; 188 | }; 189 | 4F0D57C71EE7CB0700AEA97D /* transition */ = { 190 | isa = PBXGroup; 191 | children = ( 192 | 4F0D57C81EE7CB4E00AEA97D /* CardTransition.h */, 193 | 4F0D57C91EE7CB4E00AEA97D /* CardTransition.m */, 194 | ); 195 | name = transition; 196 | sourceTree = ""; 197 | }; 198 | 4F0D57CB1EE7CE7D00AEA97D /* root */ = { 199 | isa = PBXGroup; 200 | children = ( 201 | 4F0D57CC1EE7CEB600AEA97D /* CustomTabBarController.h */, 202 | 4F0D57CD1EE7CEB600AEA97D /* CustomTabBarController.m */, 203 | 4F0D57CF1EE7D0AB00AEA97D /* CunstomNavigationController.h */, 204 | 4F0D57D01EE7D0AB00AEA97D /* CunstomNavigationController.m */, 205 | ); 206 | name = root; 207 | sourceTree = ""; 208 | }; 209 | /* End PBXGroup section */ 210 | 211 | /* Begin PBXNativeTarget section */ 212 | 4F0D57901EE7C82600AEA97D /* ItunesStack */ = { 213 | isa = PBXNativeTarget; 214 | buildConfigurationList = 4F0D57BE1EE7C82700AEA97D /* Build configuration list for PBXNativeTarget "ItunesStack" */; 215 | buildPhases = ( 216 | 4F0D578D1EE7C82600AEA97D /* Sources */, 217 | 4F0D578E1EE7C82600AEA97D /* Frameworks */, 218 | 4F0D578F1EE7C82600AEA97D /* Resources */, 219 | ); 220 | buildRules = ( 221 | ); 222 | dependencies = ( 223 | ); 224 | name = ItunesStack; 225 | productName = ItunesStack; 226 | productReference = 4F0D57911EE7C82600AEA97D /* ItunesStack.app */; 227 | productType = "com.apple.product-type.application"; 228 | }; 229 | 4F0D57A91EE7C82700AEA97D /* ItunesStackTests */ = { 230 | isa = PBXNativeTarget; 231 | buildConfigurationList = 4F0D57C11EE7C82700AEA97D /* Build configuration list for PBXNativeTarget "ItunesStackTests" */; 232 | buildPhases = ( 233 | 4F0D57A61EE7C82700AEA97D /* Sources */, 234 | 4F0D57A71EE7C82700AEA97D /* Frameworks */, 235 | 4F0D57A81EE7C82700AEA97D /* Resources */, 236 | ); 237 | buildRules = ( 238 | ); 239 | dependencies = ( 240 | 4F0D57AC1EE7C82700AEA97D /* PBXTargetDependency */, 241 | ); 242 | name = ItunesStackTests; 243 | productName = ItunesStackTests; 244 | productReference = 4F0D57AA1EE7C82700AEA97D /* ItunesStackTests.xctest */; 245 | productType = "com.apple.product-type.bundle.unit-test"; 246 | }; 247 | 4F0D57B41EE7C82700AEA97D /* ItunesStackUITests */ = { 248 | isa = PBXNativeTarget; 249 | buildConfigurationList = 4F0D57C41EE7C82700AEA97D /* Build configuration list for PBXNativeTarget "ItunesStackUITests" */; 250 | buildPhases = ( 251 | 4F0D57B11EE7C82700AEA97D /* Sources */, 252 | 4F0D57B21EE7C82700AEA97D /* Frameworks */, 253 | 4F0D57B31EE7C82700AEA97D /* Resources */, 254 | ); 255 | buildRules = ( 256 | ); 257 | dependencies = ( 258 | 4F0D57B71EE7C82700AEA97D /* PBXTargetDependency */, 259 | ); 260 | name = ItunesStackUITests; 261 | productName = ItunesStackUITests; 262 | productReference = 4F0D57B51EE7C82700AEA97D /* ItunesStackUITests.xctest */; 263 | productType = "com.apple.product-type.bundle.ui-testing"; 264 | }; 265 | /* End PBXNativeTarget section */ 266 | 267 | /* Begin PBXProject section */ 268 | 4F0D57891EE7C82600AEA97D /* Project object */ = { 269 | isa = PBXProject; 270 | attributes = { 271 | LastUpgradeCheck = 0820; 272 | ORGANIZATIONNAME = Leon; 273 | TargetAttributes = { 274 | 4F0D57901EE7C82600AEA97D = { 275 | CreatedOnToolsVersion = 8.2; 276 | DevelopmentTeam = 34RYZ48EUT; 277 | ProvisioningStyle = Automatic; 278 | }; 279 | 4F0D57A91EE7C82700AEA97D = { 280 | CreatedOnToolsVersion = 8.2; 281 | DevelopmentTeam = 7C5K69AA8B; 282 | ProvisioningStyle = Automatic; 283 | TestTargetID = 4F0D57901EE7C82600AEA97D; 284 | }; 285 | 4F0D57B41EE7C82700AEA97D = { 286 | CreatedOnToolsVersion = 8.2; 287 | DevelopmentTeam = 7C5K69AA8B; 288 | ProvisioningStyle = Automatic; 289 | TestTargetID = 4F0D57901EE7C82600AEA97D; 290 | }; 291 | }; 292 | }; 293 | buildConfigurationList = 4F0D578C1EE7C82600AEA97D /* Build configuration list for PBXProject "ItunesStack" */; 294 | compatibilityVersion = "Xcode 3.2"; 295 | developmentRegion = English; 296 | hasScannedForEncodings = 0; 297 | knownRegions = ( 298 | en, 299 | Base, 300 | ); 301 | mainGroup = 4F0D57881EE7C82600AEA97D; 302 | productRefGroup = 4F0D57921EE7C82600AEA97D /* Products */; 303 | projectDirPath = ""; 304 | projectRoot = ""; 305 | targets = ( 306 | 4F0D57901EE7C82600AEA97D /* ItunesStack */, 307 | 4F0D57A91EE7C82700AEA97D /* ItunesStackTests */, 308 | 4F0D57B41EE7C82700AEA97D /* ItunesStackUITests */, 309 | ); 310 | }; 311 | /* End PBXProject section */ 312 | 313 | /* Begin PBXResourcesBuildPhase section */ 314 | 4F0D578F1EE7C82600AEA97D /* Resources */ = { 315 | isa = PBXResourcesBuildPhase; 316 | buildActionMask = 2147483647; 317 | files = ( 318 | 4F0D57A41EE7C82700AEA97D /* LaunchScreen.storyboard in Resources */, 319 | 4F0D57A11EE7C82700AEA97D /* Assets.xcassets in Resources */, 320 | 4F0D579F1EE7C82700AEA97D /* Main.storyboard in Resources */, 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | }; 324 | 4F0D57A81EE7C82700AEA97D /* Resources */ = { 325 | isa = PBXResourcesBuildPhase; 326 | buildActionMask = 2147483647; 327 | files = ( 328 | ); 329 | runOnlyForDeploymentPostprocessing = 0; 330 | }; 331 | 4F0D57B31EE7C82700AEA97D /* Resources */ = { 332 | isa = PBXResourcesBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | ); 336 | runOnlyForDeploymentPostprocessing = 0; 337 | }; 338 | /* End PBXResourcesBuildPhase section */ 339 | 340 | /* Begin PBXSourcesBuildPhase section */ 341 | 4F0D578D1EE7C82600AEA97D /* Sources */ = { 342 | isa = PBXSourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | 4F0D57CA1EE7CB4E00AEA97D /* CardTransition.m in Sources */, 346 | 4F0D579C1EE7C82700AEA97D /* ViewController.m in Sources */, 347 | 35193AD51EED104E00915A1B /* MusicPlayerViewController.m in Sources */, 348 | 4F0D57991EE7C82700AEA97D /* AppDelegate.m in Sources */, 349 | 35193ADC1EED209A00915A1B /* UIView+tool.m in Sources */, 350 | 4F0D57D11EE7D0AB00AEA97D /* CunstomNavigationController.m in Sources */, 351 | 4F0D57CE1EE7CEB600AEA97D /* CustomTabBarController.m in Sources */, 352 | 4F0D57961EE7C82600AEA97D /* main.m in Sources */, 353 | 4F0D58191EE7E6AA00AEA97D /* MusicToolBar.m in Sources */, 354 | 3565AFA41EF011C0004A975B /* UITableView+help.m in Sources */, 355 | 35193AD81EED154700915A1B /* MainCell.m in Sources */, 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | }; 359 | 4F0D57A61EE7C82700AEA97D /* Sources */ = { 360 | isa = PBXSourcesBuildPhase; 361 | buildActionMask = 2147483647; 362 | files = ( 363 | 4F0D57AF1EE7C82700AEA97D /* ItunesStackTests.m in Sources */, 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | 4F0D57B11EE7C82700AEA97D /* Sources */ = { 368 | isa = PBXSourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | 4F0D57BA1EE7C82700AEA97D /* ItunesStackUITests.m in Sources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | /* End PBXSourcesBuildPhase section */ 376 | 377 | /* Begin PBXTargetDependency section */ 378 | 4F0D57AC1EE7C82700AEA97D /* PBXTargetDependency */ = { 379 | isa = PBXTargetDependency; 380 | target = 4F0D57901EE7C82600AEA97D /* ItunesStack */; 381 | targetProxy = 4F0D57AB1EE7C82700AEA97D /* PBXContainerItemProxy */; 382 | }; 383 | 4F0D57B71EE7C82700AEA97D /* PBXTargetDependency */ = { 384 | isa = PBXTargetDependency; 385 | target = 4F0D57901EE7C82600AEA97D /* ItunesStack */; 386 | targetProxy = 4F0D57B61EE7C82700AEA97D /* PBXContainerItemProxy */; 387 | }; 388 | /* End PBXTargetDependency section */ 389 | 390 | /* Begin PBXVariantGroup section */ 391 | 4F0D579D1EE7C82700AEA97D /* Main.storyboard */ = { 392 | isa = PBXVariantGroup; 393 | children = ( 394 | 4F0D579E1EE7C82700AEA97D /* Base */, 395 | ); 396 | name = Main.storyboard; 397 | sourceTree = ""; 398 | }; 399 | 4F0D57A21EE7C82700AEA97D /* LaunchScreen.storyboard */ = { 400 | isa = PBXVariantGroup; 401 | children = ( 402 | 4F0D57A31EE7C82700AEA97D /* Base */, 403 | ); 404 | name = LaunchScreen.storyboard; 405 | sourceTree = ""; 406 | }; 407 | /* End PBXVariantGroup section */ 408 | 409 | /* Begin XCBuildConfiguration section */ 410 | 4F0D57BC1EE7C82700AEA97D /* Debug */ = { 411 | isa = XCBuildConfiguration; 412 | buildSettings = { 413 | ALWAYS_SEARCH_USER_PATHS = NO; 414 | CLANG_ANALYZER_NONNULL = YES; 415 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 416 | CLANG_CXX_LIBRARY = "libc++"; 417 | CLANG_ENABLE_MODULES = YES; 418 | CLANG_ENABLE_OBJC_ARC = YES; 419 | CLANG_WARN_BOOL_CONVERSION = YES; 420 | CLANG_WARN_CONSTANT_CONVERSION = YES; 421 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 422 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 423 | CLANG_WARN_EMPTY_BODY = YES; 424 | CLANG_WARN_ENUM_CONVERSION = YES; 425 | CLANG_WARN_INFINITE_RECURSION = YES; 426 | CLANG_WARN_INT_CONVERSION = YES; 427 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 428 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 429 | CLANG_WARN_UNREACHABLE_CODE = YES; 430 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 431 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 432 | COPY_PHASE_STRIP = NO; 433 | DEBUG_INFORMATION_FORMAT = dwarf; 434 | ENABLE_STRICT_OBJC_MSGSEND = YES; 435 | ENABLE_TESTABILITY = YES; 436 | GCC_C_LANGUAGE_STANDARD = gnu99; 437 | GCC_DYNAMIC_NO_PIC = NO; 438 | GCC_NO_COMMON_BLOCKS = YES; 439 | GCC_OPTIMIZATION_LEVEL = 0; 440 | GCC_PREPROCESSOR_DEFINITIONS = ( 441 | "DEBUG=1", 442 | "$(inherited)", 443 | ); 444 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 445 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 446 | GCC_WARN_UNDECLARED_SELECTOR = YES; 447 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 448 | GCC_WARN_UNUSED_FUNCTION = YES; 449 | GCC_WARN_UNUSED_VARIABLE = YES; 450 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 451 | MTL_ENABLE_DEBUG_INFO = YES; 452 | ONLY_ACTIVE_ARCH = YES; 453 | SDKROOT = iphoneos; 454 | }; 455 | name = Debug; 456 | }; 457 | 4F0D57BD1EE7C82700AEA97D /* Release */ = { 458 | isa = XCBuildConfiguration; 459 | buildSettings = { 460 | ALWAYS_SEARCH_USER_PATHS = NO; 461 | CLANG_ANALYZER_NONNULL = YES; 462 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 463 | CLANG_CXX_LIBRARY = "libc++"; 464 | CLANG_ENABLE_MODULES = YES; 465 | CLANG_ENABLE_OBJC_ARC = YES; 466 | CLANG_WARN_BOOL_CONVERSION = YES; 467 | CLANG_WARN_CONSTANT_CONVERSION = YES; 468 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 469 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 470 | CLANG_WARN_EMPTY_BODY = YES; 471 | CLANG_WARN_ENUM_CONVERSION = YES; 472 | CLANG_WARN_INFINITE_RECURSION = YES; 473 | CLANG_WARN_INT_CONVERSION = YES; 474 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 475 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 476 | CLANG_WARN_UNREACHABLE_CODE = YES; 477 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 478 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 479 | COPY_PHASE_STRIP = NO; 480 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 481 | ENABLE_NS_ASSERTIONS = NO; 482 | ENABLE_STRICT_OBJC_MSGSEND = YES; 483 | GCC_C_LANGUAGE_STANDARD = gnu99; 484 | GCC_NO_COMMON_BLOCKS = YES; 485 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 486 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 487 | GCC_WARN_UNDECLARED_SELECTOR = YES; 488 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 489 | GCC_WARN_UNUSED_FUNCTION = YES; 490 | GCC_WARN_UNUSED_VARIABLE = YES; 491 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 492 | MTL_ENABLE_DEBUG_INFO = NO; 493 | SDKROOT = iphoneos; 494 | VALIDATE_PRODUCT = YES; 495 | }; 496 | name = Release; 497 | }; 498 | 4F0D57BF1EE7C82700AEA97D /* Debug */ = { 499 | isa = XCBuildConfiguration; 500 | buildSettings = { 501 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 502 | DEVELOPMENT_TEAM = 34RYZ48EUT; 503 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 504 | GCC_PREFIX_HEADER = "$(SRCROOT)/ItunesStack/PrefixHeader.pch"; 505 | INFOPLIST_FILE = ItunesStack/Info.plist; 506 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 508 | PRODUCT_BUNDLE_IDENTIFIER = com.leonhwa.ItunesStack; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | TARGETED_DEVICE_FAMILY = "1,2"; 511 | }; 512 | name = Debug; 513 | }; 514 | 4F0D57C01EE7C82700AEA97D /* Release */ = { 515 | isa = XCBuildConfiguration; 516 | buildSettings = { 517 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 518 | DEVELOPMENT_TEAM = 34RYZ48EUT; 519 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 520 | GCC_PREFIX_HEADER = "$(SRCROOT)/ItunesStack/PrefixHeader.pch"; 521 | INFOPLIST_FILE = ItunesStack/Info.plist; 522 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 523 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 524 | PRODUCT_BUNDLE_IDENTIFIER = com.leonhwa.ItunesStack; 525 | PRODUCT_NAME = "$(TARGET_NAME)"; 526 | TARGETED_DEVICE_FAMILY = "1,2"; 527 | }; 528 | name = Release; 529 | }; 530 | 4F0D57C21EE7C82700AEA97D /* Debug */ = { 531 | isa = XCBuildConfiguration; 532 | buildSettings = { 533 | BUNDLE_LOADER = "$(TEST_HOST)"; 534 | DEVELOPMENT_TEAM = 7C5K69AA8B; 535 | INFOPLIST_FILE = ItunesStackTests/Info.plist; 536 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 537 | PRODUCT_BUNDLE_IDENTIFIER = com.leonhwa.ItunesStackTests; 538 | PRODUCT_NAME = "$(TARGET_NAME)"; 539 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ItunesStack.app/ItunesStack"; 540 | }; 541 | name = Debug; 542 | }; 543 | 4F0D57C31EE7C82700AEA97D /* Release */ = { 544 | isa = XCBuildConfiguration; 545 | buildSettings = { 546 | BUNDLE_LOADER = "$(TEST_HOST)"; 547 | DEVELOPMENT_TEAM = 7C5K69AA8B; 548 | INFOPLIST_FILE = ItunesStackTests/Info.plist; 549 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 550 | PRODUCT_BUNDLE_IDENTIFIER = com.leonhwa.ItunesStackTests; 551 | PRODUCT_NAME = "$(TARGET_NAME)"; 552 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ItunesStack.app/ItunesStack"; 553 | }; 554 | name = Release; 555 | }; 556 | 4F0D57C51EE7C82700AEA97D /* Debug */ = { 557 | isa = XCBuildConfiguration; 558 | buildSettings = { 559 | DEVELOPMENT_TEAM = 7C5K69AA8B; 560 | INFOPLIST_FILE = ItunesStackUITests/Info.plist; 561 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 562 | PRODUCT_BUNDLE_IDENTIFIER = com.leonhwa.ItunesStackUITests; 563 | PRODUCT_NAME = "$(TARGET_NAME)"; 564 | TEST_TARGET_NAME = ItunesStack; 565 | }; 566 | name = Debug; 567 | }; 568 | 4F0D57C61EE7C82700AEA97D /* Release */ = { 569 | isa = XCBuildConfiguration; 570 | buildSettings = { 571 | DEVELOPMENT_TEAM = 7C5K69AA8B; 572 | INFOPLIST_FILE = ItunesStackUITests/Info.plist; 573 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 574 | PRODUCT_BUNDLE_IDENTIFIER = com.leonhwa.ItunesStackUITests; 575 | PRODUCT_NAME = "$(TARGET_NAME)"; 576 | TEST_TARGET_NAME = ItunesStack; 577 | }; 578 | name = Release; 579 | }; 580 | /* End XCBuildConfiguration section */ 581 | 582 | /* Begin XCConfigurationList section */ 583 | 4F0D578C1EE7C82600AEA97D /* Build configuration list for PBXProject "ItunesStack" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 4F0D57BC1EE7C82700AEA97D /* Debug */, 587 | 4F0D57BD1EE7C82700AEA97D /* Release */, 588 | ); 589 | defaultConfigurationIsVisible = 0; 590 | defaultConfigurationName = Release; 591 | }; 592 | 4F0D57BE1EE7C82700AEA97D /* Build configuration list for PBXNativeTarget "ItunesStack" */ = { 593 | isa = XCConfigurationList; 594 | buildConfigurations = ( 595 | 4F0D57BF1EE7C82700AEA97D /* Debug */, 596 | 4F0D57C01EE7C82700AEA97D /* Release */, 597 | ); 598 | defaultConfigurationIsVisible = 0; 599 | defaultConfigurationName = Release; 600 | }; 601 | 4F0D57C11EE7C82700AEA97D /* Build configuration list for PBXNativeTarget "ItunesStackTests" */ = { 602 | isa = XCConfigurationList; 603 | buildConfigurations = ( 604 | 4F0D57C21EE7C82700AEA97D /* Debug */, 605 | 4F0D57C31EE7C82700AEA97D /* Release */, 606 | ); 607 | defaultConfigurationIsVisible = 0; 608 | defaultConfigurationName = Release; 609 | }; 610 | 4F0D57C41EE7C82700AEA97D /* Build configuration list for PBXNativeTarget "ItunesStackUITests" */ = { 611 | isa = XCConfigurationList; 612 | buildConfigurations = ( 613 | 4F0D57C51EE7C82700AEA97D /* Debug */, 614 | 4F0D57C61EE7C82700AEA97D /* Release */, 615 | ); 616 | defaultConfigurationIsVisible = 0; 617 | defaultConfigurationName = Release; 618 | }; 619 | /* End XCConfigurationList section */ 620 | }; 621 | rootObject = 4F0D57891EE7C82600AEA97D /* Project object */; 622 | } 623 | -------------------------------------------------------------------------------- /ItunesStack/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 78 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 297 | 303 | 312 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 337 | 345 | 353 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | --------------------------------------------------------------------------------