├── .DS_Store ├── ASActionSheet ├── bkg.png ├── .DS_Store ├── result.gif ├── ASActionSheet-Bridging-Header.h ├── ViewController.h ├── AppDelegate.h ├── main.m ├── AS_Sheet.h ├── ViewController.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── AppDelegate.m ├── AS_Sheet.m ├── ASSheetAlert.swift └── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard ├── ASActionSheet.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── Ashen.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcuserdata │ └── Ashen.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── ASActionSheet.xcscheme └── project.pbxproj └── README.md /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashen-zhao/ASSheet/HEAD/.DS_Store -------------------------------------------------------------------------------- /ASActionSheet/bkg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashen-zhao/ASSheet/HEAD/ASActionSheet/bkg.png -------------------------------------------------------------------------------- /ASActionSheet/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashen-zhao/ASSheet/HEAD/ASActionSheet/.DS_Store -------------------------------------------------------------------------------- /ASActionSheet/result.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashen-zhao/ASSheet/HEAD/ASActionSheet/result.gif -------------------------------------------------------------------------------- /ASActionSheet/ASActionSheet-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | -------------------------------------------------------------------------------- /ASActionSheet.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ASActionSheet.xcodeproj/project.xcworkspace/xcuserdata/Ashen.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashen-zhao/ASSheet/HEAD/ASActionSheet.xcodeproj/project.xcworkspace/xcuserdata/Ashen.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ASActionSheet/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // ASActionSheet 4 | // 5 | // Created by Ashen on 16/1/22. 6 | // Copyright © 2016年 Ashen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /ASActionSheet/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // ASActionSheet 4 | // 5 | // Created by Ashen on 16/1/22. 6 | // Copyright © 2016年 Ashen. 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 | -------------------------------------------------------------------------------- /ASActionSheet/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ASActionSheet 4 | // 5 | // Created by Ashen on 16/1/22. 6 | // Copyright © 2016年 Ashen. 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 | -------------------------------------------------------------------------------- /ASActionSheet/AS_Sheet.h: -------------------------------------------------------------------------------- 1 | // 2 | // AS_Sheet.h 3 | // ASActionSheet 4 | // 5 | // Created by Ashen on 16/1/22. 6 | // Copyright © 2016年 Ashen. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AS_Sheet : UIView 12 | 13 | @property (nonatomic, copy) void (^Click)(NSInteger clickIndex); 14 | 15 | - (instancetype)initWithFrame:(CGRect)frame titleArr:(NSArray *)titleArr; 16 | - (void)hiddenSheet; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /ASActionSheet.xcodeproj/xcuserdata/Ashen.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ASActionSheet.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 8C9513331C51D175004A3199 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #仿照微博、微信的弹出ActionSheet的一个简单工具类 2 | 3 | ###效果图 4 | 5 | ![ASSheet](https://github.com/Ashen-Zhao/ASSheet/blob/master/ASActionSheet/result.gif) 6 | ### swift版本 7 | [swift版本地址](https://github.com/Ashen-Zhao/ASSheet/blob/master/ASActionSheet/ASSheetAlert.swift) 8 | ###使用说明 9 | 10 |
  
11 |  AS_Sheet *a = [[AS_Sheet alloc] initWithFrame:self.view.bounds titleArr:@[@"从手机相册选择", @"拍照", @"小视频"]];
12 |     __weak typeof(a) weakA = a;
13 |     a.Click = ^(NSInteger clickIndex) {
14 |         switch (clickIndex) {
15 |             case 0:
16 |                 NSLog(@"相册选择");
17 |                 break;
18 |             case 1:
19 |                 NSLog(@"拍照");
20 |                 break;
21 |             case 2:
22 |                 NSLog(@"小视频");
23 |                 break;
24 |             default:
25 |                 break;
26 |         }
27 |         [weakA hiddenSheet];
28 |     };
29 |     [self.navigationController.view addSubview:a]; 
30 | 
31 | 32 | 只所以添加到navigationController的view上面,是希望导航也被弹出的视图覆盖,不让导航可以操作 33 | -------------------------------------------------------------------------------- /ASActionSheet/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // ASActionSheet 4 | // 5 | // Created by Ashen on 16/1/22. 6 | // Copyright © 2016年 Ashen. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "AS_Sheet.h" 11 | 12 | @interface ViewController () 13 | 14 | @end 15 | 16 | @implementation ViewController 17 | 18 | - (void)viewDidLoad { 19 | [super viewDidLoad]; 20 | // Do any additional setup after loading the view, typically from a nib. 21 | } 22 | 23 | - (void)didReceiveMemoryWarning { 24 | [super didReceiveMemoryWarning]; 25 | // Dispose of any resources that can be recreated. 26 | } 27 | 28 | - (IBAction)showSheet:(id)sender { 29 | AS_Sheet *a = [[AS_Sheet alloc] initWithFrame:self.view.bounds titleArr:@[@"从手机相册选择", @"拍照", @"小视频"]]; 30 | __weak typeof(a) weakA = a; 31 | a.Click = ^(NSInteger clickIndex) { 32 | switch (clickIndex) { 33 | case 0: 34 | NSLog(@"相册选择"); 35 | break; 36 | case 1: 37 | NSLog(@"拍照"); 38 | break; 39 | case 2: 40 | NSLog(@"小视频"); 41 | break; 42 | default: 43 | break; 44 | } 45 | [weakA hiddenSheet]; 46 | }; 47 | [self.navigationController.view addSubview:a]; 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /ASActionSheet/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "83.5x83.5", 66 | "scale" : "2x" 67 | } 68 | ], 69 | "info" : { 70 | "version" : 1, 71 | "author" : "xcode" 72 | } 73 | } -------------------------------------------------------------------------------- /ASActionSheet/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 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ASActionSheet/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // ASActionSheet 4 | // 5 | // Created by Ashen on 16/1/22. 6 | // Copyright © 2016年 Ashen. 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 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // 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. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // 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. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /ASActionSheet/AS_Sheet.m: -------------------------------------------------------------------------------- 1 | // 2 | // AS_Sheet.m 3 | // ASActionSheet 4 | // 5 | // Created by Ashen on 16/1/22. 6 | // Copyright © 2016年 Ashen. All rights reserved. 7 | // 8 | 9 | #import "AS_Sheet.h" 10 | 11 | @interface AS_Sheet() { 12 | CGSize size; 13 | } 14 | @property (nonatomic, strong) UIView *bgkView; 15 | @end 16 | 17 | @implementation AS_Sheet 18 | 19 | - (instancetype)initWithFrame:(CGRect)frame titleArr:(NSArray *)titleArr { 20 | self = [super initWithFrame:frame]; 21 | size = [UIScreen mainScreen].bounds.size; 22 | [self setBackgroundColor:[UIColor colorWithWhite:0.5 alpha:0.5]]; 23 | UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hiddenSheet)]; 24 | [self addGestureRecognizer:tap]; 25 | [self makeBaseUIWithTitleArr:titleArr]; 26 | 27 | return self; 28 | } 29 | 30 | - (void)makeBaseUIWithTitleArr:(NSArray *)titleArr{ 31 | 32 | self.bgkView = [[UIView alloc] initWithFrame:CGRectMake(0, size.height, size.width, titleArr.count * 50 + 55)]; 33 | _bgkView.backgroundColor = [UIColor colorWithRed:0xe9/255.0 green:0xe9/255.0 blue:0xe9/255.0 alpha:1.0]; 34 | [self addSubview:_bgkView]; 35 | 36 | CGFloat y = [self createBtnWithTitle:@"取消" origin_y: _bgkView.frame.size.height - 50 tag:-1 action:@selector(hiddenSheet)] - 55; 37 | for (int i = 0; i < titleArr.count; i++) { 38 | y = [self createBtnWithTitle:titleArr[i] origin_y:y tag:i action:@selector(click:)]; 39 | } 40 | [UIView animateWithDuration:0.3 animations:^{ 41 | CGRect frame = _bgkView.frame; 42 | frame.origin.y -= frame.size.height; 43 | _bgkView.frame = frame; 44 | }]; 45 | 46 | } 47 | 48 | - (CGFloat)createBtnWithTitle:(NSString *)title origin_y:(CGFloat)y tag:(NSInteger)tag action:(SEL)method { 49 | UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; 50 | [btn setTitle:title forState:UIControlStateNormal]; 51 | btn.frame = CGRectMake(0, y, size.width, 50); 52 | btn.backgroundColor = [UIColor whiteColor]; 53 | btn.tag = tag; 54 | [btn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; 55 | [btn addTarget:self action:method forControlEvents:UIControlEventTouchUpInside]; 56 | [_bgkView addSubview:btn]; 57 | return y -= tag == -1 ? 0 : 50.4; 58 | } 59 | - (void)hiddenSheet { 60 | [UIView animateWithDuration:0.3 animations:^{ 61 | CGRect frame = _bgkView.frame; 62 | frame.origin.y += frame.size.height; 63 | _bgkView.frame = frame; 64 | }]; 65 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ 66 | [self removeFromSuperview]; 67 | }); 68 | } 69 | 70 | - (void)click:(UIButton *)btn { 71 | if (self.Click) { 72 | _Click(btn.tag); 73 | } 74 | } 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /ASActionSheet/ASSheetAlert.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UubeeSheetAlert.swift 3 | // ULife 4 | // 5 | // Created by ashen on 16/10/13. 6 | // Copyright © 2016年 Ashen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | typealias callbackfunc=(selectIndex:Int)->Void 12 | 13 | class ASSheetAlert: UIView { 14 | 15 | var bgkView:UIView! = nil 16 | var size:CGSize! = nil 17 | 18 | var selectIndex = callbackfunc?() 19 | 20 | init(frame: CGRect, titles:NSArray) { 21 | super.init(frame: frame) 22 | size = UIScreen.mainScreen().bounds.size 23 | self.backgroundColor = UIColor(white: 0.5, alpha: 0.5) 24 | let tap = UITapGestureRecognizer(target: self, action: #selector(hiddenSheet)) 25 | self.addGestureRecognizer(tap) 26 | makeBaseUIWithTitles(titles) 27 | } 28 | 29 | required init?(coder aDecoder: NSCoder) { 30 | fatalError("init(coder:) has not been implemented") 31 | } 32 | 33 | 34 | 35 | func makeBaseUIWithTitles(titles:NSArray) { 36 | 37 | bgkView = UIView.init(frame: CGRectMake(0, size.height, size.width, CGFloat(titles.count) * 50 + 55)) 38 | bgkView.backgroundColor = UIColor(hex: "e9e9e9") 39 | self.addSubview(bgkView) 40 | 41 | var y = self.createBtnWithTitle("取消", origin_y: bgkView.frame.size.height - 50, tag: -1) - 55 42 | for i in 0.. CGFloat{ 54 | let btn = UIButton(type: .Custom) 55 | btn.setTitle(title, forState: .Normal) 56 | btn.frame = CGRectMake(0, origin_y, size.width, 50) 57 | btn.backgroundColor = UIColor.whiteColor() 58 | btn.tag = tag 59 | btn.setTitleColor(UIColor.blackColor(), forState: .Normal) 60 | btn.addTarget(self, action: #selector(click(_:)), forControlEvents: .TouchUpInside) 61 | bgkView.addSubview(btn) 62 | var y = origin_y 63 | y -= tag == -1 ? 0 : 50.4 64 | return y 65 | 66 | } 67 | 68 | func click(sender:UIButton) { 69 | if (selectIndex != nil) { 70 | selectIndex!(selectIndex: sender.tag) 71 | } 72 | } 73 | 74 | 75 | func hiddenSheet() { 76 | UIView.animateWithDuration(0.3) { 77 | var frame = self.bgkView.frame 78 | frame.origin.y += frame.size.height 79 | self.bgkView.frame = frame 80 | } 81 | 82 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(0.3 * Double(NSEC_PER_SEC))), dispatch_get_main_queue()) { 83 | self.removeFromSuperview() 84 | } 85 | 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /ASActionSheet.xcodeproj/xcuserdata/Ashen.xcuserdatad/xcschemes/ASActionSheet.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ASActionSheet/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 | -------------------------------------------------------------------------------- /ASActionSheet/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 | 30 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /ASActionSheet.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 8C9513391C51D175004A3199 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C9513381C51D175004A3199 /* main.m */; }; 11 | 8C95133C1C51D175004A3199 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C95133B1C51D175004A3199 /* AppDelegate.m */; }; 12 | 8C95133F1C51D175004A3199 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C95133E1C51D175004A3199 /* ViewController.m */; }; 13 | 8C9513421C51D175004A3199 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8C9513401C51D175004A3199 /* Main.storyboard */; }; 14 | 8C9513441C51D175004A3199 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8C9513431C51D175004A3199 /* Assets.xcassets */; }; 15 | 8C9513471C51D175004A3199 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8C9513451C51D175004A3199 /* LaunchScreen.storyboard */; }; 16 | 8C9513501C51D88A004A3199 /* AS_Sheet.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C95134F1C51D88A004A3199 /* AS_Sheet.m */; }; 17 | 8C9513561C51F0BB004A3199 /* bkg.png in Resources */ = {isa = PBXBuildFile; fileRef = 8C9513551C51F0BB004A3199 /* bkg.png */; }; 18 | 8C9513581C520829004A3199 /* result.gif in Resources */ = {isa = PBXBuildFile; fileRef = 8C9513571C520829004A3199 /* result.gif */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | 8C9513341C51D175004A3199 /* ASActionSheet.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ASActionSheet.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 8C9513381C51D175004A3199 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 24 | 8C95133A1C51D175004A3199 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 25 | 8C95133B1C51D175004A3199 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 26 | 8C95133D1C51D175004A3199 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 27 | 8C95133E1C51D175004A3199 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 28 | 8C9513411C51D175004A3199 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 29 | 8C9513431C51D175004A3199 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 30 | 8C9513461C51D175004A3199 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 31 | 8C9513481C51D175004A3199 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 8C95134E1C51D88A004A3199 /* AS_Sheet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AS_Sheet.h; sourceTree = ""; }; 33 | 8C95134F1C51D88A004A3199 /* AS_Sheet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AS_Sheet.m; sourceTree = ""; }; 34 | 8C9513551C51F0BB004A3199 /* bkg.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = bkg.png; sourceTree = ""; }; 35 | 8C9513571C520829004A3199 /* result.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = result.gif; sourceTree = ""; }; 36 | 8CA6CD0E1DB7201D00D36E5D /* ASActionSheet-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ASActionSheet-Bridging-Header.h"; sourceTree = ""; }; 37 | /* End PBXFileReference section */ 38 | 39 | /* Begin PBXFrameworksBuildPhase section */ 40 | 8C9513311C51D175004A3199 /* Frameworks */ = { 41 | isa = PBXFrameworksBuildPhase; 42 | buildActionMask = 2147483647; 43 | files = ( 44 | ); 45 | runOnlyForDeploymentPostprocessing = 0; 46 | }; 47 | /* End PBXFrameworksBuildPhase section */ 48 | 49 | /* Begin PBXGroup section */ 50 | 8C95132B1C51D175004A3199 = { 51 | isa = PBXGroup; 52 | children = ( 53 | 8C9513361C51D175004A3199 /* ASActionSheet */, 54 | 8C9513351C51D175004A3199 /* Products */, 55 | ); 56 | sourceTree = ""; 57 | }; 58 | 8C9513351C51D175004A3199 /* Products */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 8C9513341C51D175004A3199 /* ASActionSheet.app */, 62 | ); 63 | name = Products; 64 | sourceTree = ""; 65 | }; 66 | 8C9513361C51D175004A3199 /* ASActionSheet */ = { 67 | isa = PBXGroup; 68 | children = ( 69 | 8C95133A1C51D175004A3199 /* AppDelegate.h */, 70 | 8C95133B1C51D175004A3199 /* AppDelegate.m */, 71 | 8C95133D1C51D175004A3199 /* ViewController.h */, 72 | 8C95133E1C51D175004A3199 /* ViewController.m */, 73 | 8C9513401C51D175004A3199 /* Main.storyboard */, 74 | 8C95134E1C51D88A004A3199 /* AS_Sheet.h */, 75 | 8C95134F1C51D88A004A3199 /* AS_Sheet.m */, 76 | 8C9513551C51F0BB004A3199 /* bkg.png */, 77 | 8C9513571C520829004A3199 /* result.gif */, 78 | 8C9513431C51D175004A3199 /* Assets.xcassets */, 79 | 8C9513451C51D175004A3199 /* LaunchScreen.storyboard */, 80 | 8C9513481C51D175004A3199 /* Info.plist */, 81 | 8C9513371C51D175004A3199 /* Supporting Files */, 82 | 8CA6CD0E1DB7201D00D36E5D /* ASActionSheet-Bridging-Header.h */, 83 | ); 84 | path = ASActionSheet; 85 | sourceTree = ""; 86 | }; 87 | 8C9513371C51D175004A3199 /* Supporting Files */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | 8C9513381C51D175004A3199 /* main.m */, 91 | ); 92 | name = "Supporting Files"; 93 | sourceTree = ""; 94 | }; 95 | /* End PBXGroup section */ 96 | 97 | /* Begin PBXNativeTarget section */ 98 | 8C9513331C51D175004A3199 /* ASActionSheet */ = { 99 | isa = PBXNativeTarget; 100 | buildConfigurationList = 8C95134B1C51D175004A3199 /* Build configuration list for PBXNativeTarget "ASActionSheet" */; 101 | buildPhases = ( 102 | 8C9513301C51D175004A3199 /* Sources */, 103 | 8C9513311C51D175004A3199 /* Frameworks */, 104 | 8C9513321C51D175004A3199 /* Resources */, 105 | ); 106 | buildRules = ( 107 | ); 108 | dependencies = ( 109 | ); 110 | name = ASActionSheet; 111 | productName = ASActionSheet; 112 | productReference = 8C9513341C51D175004A3199 /* ASActionSheet.app */; 113 | productType = "com.apple.product-type.application"; 114 | }; 115 | /* End PBXNativeTarget section */ 116 | 117 | /* Begin PBXProject section */ 118 | 8C95132C1C51D175004A3199 /* Project object */ = { 119 | isa = PBXProject; 120 | attributes = { 121 | LastUpgradeCheck = 0720; 122 | ORGANIZATIONNAME = "Ashen"; 123 | TargetAttributes = { 124 | 8C9513331C51D175004A3199 = { 125 | CreatedOnToolsVersion = 7.2; 126 | LastSwiftMigration = 0800; 127 | }; 128 | }; 129 | }; 130 | buildConfigurationList = 8C95132F1C51D175004A3199 /* Build configuration list for PBXProject "ASActionSheet" */; 131 | compatibilityVersion = "Xcode 3.2"; 132 | developmentRegion = English; 133 | hasScannedForEncodings = 0; 134 | knownRegions = ( 135 | en, 136 | Base, 137 | ); 138 | mainGroup = 8C95132B1C51D175004A3199; 139 | productRefGroup = 8C9513351C51D175004A3199 /* Products */; 140 | projectDirPath = ""; 141 | projectRoot = ""; 142 | targets = ( 143 | 8C9513331C51D175004A3199 /* ASActionSheet */, 144 | ); 145 | }; 146 | /* End PBXProject section */ 147 | 148 | /* Begin PBXResourcesBuildPhase section */ 149 | 8C9513321C51D175004A3199 /* Resources */ = { 150 | isa = PBXResourcesBuildPhase; 151 | buildActionMask = 2147483647; 152 | files = ( 153 | 8C9513471C51D175004A3199 /* LaunchScreen.storyboard in Resources */, 154 | 8C9513441C51D175004A3199 /* Assets.xcassets in Resources */, 155 | 8C9513561C51F0BB004A3199 /* bkg.png in Resources */, 156 | 8C9513421C51D175004A3199 /* Main.storyboard in Resources */, 157 | 8C9513581C520829004A3199 /* result.gif in Resources */, 158 | ); 159 | runOnlyForDeploymentPostprocessing = 0; 160 | }; 161 | /* End PBXResourcesBuildPhase section */ 162 | 163 | /* Begin PBXSourcesBuildPhase section */ 164 | 8C9513301C51D175004A3199 /* Sources */ = { 165 | isa = PBXSourcesBuildPhase; 166 | buildActionMask = 2147483647; 167 | files = ( 168 | 8C95133F1C51D175004A3199 /* ViewController.m in Sources */, 169 | 8C9513501C51D88A004A3199 /* AS_Sheet.m in Sources */, 170 | 8C95133C1C51D175004A3199 /* AppDelegate.m in Sources */, 171 | 8C9513391C51D175004A3199 /* main.m in Sources */, 172 | ); 173 | runOnlyForDeploymentPostprocessing = 0; 174 | }; 175 | /* End PBXSourcesBuildPhase section */ 176 | 177 | /* Begin PBXVariantGroup section */ 178 | 8C9513401C51D175004A3199 /* Main.storyboard */ = { 179 | isa = PBXVariantGroup; 180 | children = ( 181 | 8C9513411C51D175004A3199 /* Base */, 182 | ); 183 | name = Main.storyboard; 184 | sourceTree = ""; 185 | }; 186 | 8C9513451C51D175004A3199 /* LaunchScreen.storyboard */ = { 187 | isa = PBXVariantGroup; 188 | children = ( 189 | 8C9513461C51D175004A3199 /* Base */, 190 | ); 191 | name = LaunchScreen.storyboard; 192 | sourceTree = ""; 193 | }; 194 | /* End PBXVariantGroup section */ 195 | 196 | /* Begin XCBuildConfiguration section */ 197 | 8C9513491C51D175004A3199 /* Debug */ = { 198 | isa = XCBuildConfiguration; 199 | buildSettings = { 200 | ALWAYS_SEARCH_USER_PATHS = NO; 201 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 202 | CLANG_CXX_LIBRARY = "libc++"; 203 | CLANG_ENABLE_MODULES = YES; 204 | CLANG_ENABLE_OBJC_ARC = YES; 205 | CLANG_WARN_BOOL_CONVERSION = YES; 206 | CLANG_WARN_CONSTANT_CONVERSION = YES; 207 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 208 | CLANG_WARN_EMPTY_BODY = YES; 209 | CLANG_WARN_ENUM_CONVERSION = YES; 210 | CLANG_WARN_INT_CONVERSION = YES; 211 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 212 | CLANG_WARN_UNREACHABLE_CODE = YES; 213 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 214 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 215 | COPY_PHASE_STRIP = NO; 216 | DEBUG_INFORMATION_FORMAT = dwarf; 217 | ENABLE_STRICT_OBJC_MSGSEND = YES; 218 | ENABLE_TESTABILITY = YES; 219 | GCC_C_LANGUAGE_STANDARD = gnu99; 220 | GCC_DYNAMIC_NO_PIC = NO; 221 | GCC_NO_COMMON_BLOCKS = YES; 222 | GCC_OPTIMIZATION_LEVEL = 0; 223 | GCC_PREPROCESSOR_DEFINITIONS = ( 224 | "DEBUG=1", 225 | "$(inherited)", 226 | ); 227 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 228 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 229 | GCC_WARN_UNDECLARED_SELECTOR = YES; 230 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 231 | GCC_WARN_UNUSED_FUNCTION = YES; 232 | GCC_WARN_UNUSED_VARIABLE = YES; 233 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 234 | MTL_ENABLE_DEBUG_INFO = YES; 235 | ONLY_ACTIVE_ARCH = YES; 236 | SDKROOT = iphoneos; 237 | TARGETED_DEVICE_FAMILY = "1,2"; 238 | }; 239 | name = Debug; 240 | }; 241 | 8C95134A1C51D175004A3199 /* Release */ = { 242 | isa = XCBuildConfiguration; 243 | buildSettings = { 244 | ALWAYS_SEARCH_USER_PATHS = NO; 245 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 246 | CLANG_CXX_LIBRARY = "libc++"; 247 | CLANG_ENABLE_MODULES = YES; 248 | CLANG_ENABLE_OBJC_ARC = YES; 249 | CLANG_WARN_BOOL_CONVERSION = YES; 250 | CLANG_WARN_CONSTANT_CONVERSION = YES; 251 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 252 | CLANG_WARN_EMPTY_BODY = YES; 253 | CLANG_WARN_ENUM_CONVERSION = YES; 254 | CLANG_WARN_INT_CONVERSION = YES; 255 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 256 | CLANG_WARN_UNREACHABLE_CODE = YES; 257 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 258 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 259 | COPY_PHASE_STRIP = NO; 260 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 261 | ENABLE_NS_ASSERTIONS = NO; 262 | ENABLE_STRICT_OBJC_MSGSEND = YES; 263 | GCC_C_LANGUAGE_STANDARD = gnu99; 264 | GCC_NO_COMMON_BLOCKS = YES; 265 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 266 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 267 | GCC_WARN_UNDECLARED_SELECTOR = YES; 268 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 269 | GCC_WARN_UNUSED_FUNCTION = YES; 270 | GCC_WARN_UNUSED_VARIABLE = YES; 271 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 272 | MTL_ENABLE_DEBUG_INFO = NO; 273 | SDKROOT = iphoneos; 274 | TARGETED_DEVICE_FAMILY = "1,2"; 275 | VALIDATE_PRODUCT = YES; 276 | }; 277 | name = Release; 278 | }; 279 | 8C95134C1C51D175004A3199 /* Debug */ = { 280 | isa = XCBuildConfiguration; 281 | buildSettings = { 282 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 283 | CLANG_ENABLE_MODULES = YES; 284 | CODE_SIGN_IDENTITY = "iPhone Developer"; 285 | INFOPLIST_FILE = ASActionSheet/Info.plist; 286 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 287 | PRODUCT_BUNDLE_IDENTIFIER = Ashen.ASActionSheet; 288 | PRODUCT_NAME = "$(TARGET_NAME)"; 289 | SWIFT_OBJC_BRIDGING_HEADER = "ASActionSheet/ASActionSheet-Bridging-Header.h"; 290 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 291 | SWIFT_VERSION = 3.0; 292 | }; 293 | name = Debug; 294 | }; 295 | 8C95134D1C51D175004A3199 /* Release */ = { 296 | isa = XCBuildConfiguration; 297 | buildSettings = { 298 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 299 | CLANG_ENABLE_MODULES = YES; 300 | CODE_SIGN_IDENTITY = "iPhone Developer"; 301 | INFOPLIST_FILE = ASActionSheet/Info.plist; 302 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 303 | PRODUCT_BUNDLE_IDENTIFIER = Ashen.ASActionSheet; 304 | PRODUCT_NAME = "$(TARGET_NAME)"; 305 | SWIFT_OBJC_BRIDGING_HEADER = "ASActionSheet/ASActionSheet-Bridging-Header.h"; 306 | SWIFT_VERSION = 3.0; 307 | }; 308 | name = Release; 309 | }; 310 | /* End XCBuildConfiguration section */ 311 | 312 | /* Begin XCConfigurationList section */ 313 | 8C95132F1C51D175004A3199 /* Build configuration list for PBXProject "ASActionSheet" */ = { 314 | isa = XCConfigurationList; 315 | buildConfigurations = ( 316 | 8C9513491C51D175004A3199 /* Debug */, 317 | 8C95134A1C51D175004A3199 /* Release */, 318 | ); 319 | defaultConfigurationIsVisible = 0; 320 | defaultConfigurationName = Release; 321 | }; 322 | 8C95134B1C51D175004A3199 /* Build configuration list for PBXNativeTarget "ASActionSheet" */ = { 323 | isa = XCConfigurationList; 324 | buildConfigurations = ( 325 | 8C95134C1C51D175004A3199 /* Debug */, 326 | 8C95134D1C51D175004A3199 /* Release */, 327 | ); 328 | defaultConfigurationIsVisible = 0; 329 | defaultConfigurationName = Release; 330 | }; 331 | /* End XCConfigurationList section */ 332 | }; 333 | rootObject = 8C95132C1C51D175004A3199 /* Project object */; 334 | } 335 | --------------------------------------------------------------------------------