└── 抽奖 ├── YiLotteryDemo ├── en.lproj │ └── InfoPlist.strings ├── image │ ├── l1.png │ ├── l2.png │ ├── l3.png │ ├── l4.png │ └── l5.png ├── YiViewController.h ├── YiLotteryCell.h ├── YiLotteryButton.h ├── YiAppDelegate.h ├── main.m ├── YiLotteryDemo-Prefix.pch ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── YiLotteryDemo-Info.plist ├── YiLotteryCell.m ├── YiLotteryButton.m ├── Base.lproj │ └── Main.storyboard ├── YiAppDelegate.m └── YiViewController.m ├── YiLotteryDemoTests ├── en.lproj │ └── InfoPlist.strings ├── YiLotteryDemoTests-Info.plist └── YiLotteryDemoTests.m ├── README.md ├── YiLotteryDemo.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ ├── apple.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ ├── luowenqi.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ └── zhangfangtao.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcuserdata │ ├── apple.xcuserdatad │ │ ├── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── YiLotteryDemo.xcscheme │ │ └── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ ├── luowenqi.xcuserdatad │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── YiLotteryDemo.xcscheme │ └── zhangfangtao.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── YiLotteryDemo.xcscheme └── project.pbxproj └── LICENSE.txt /抽奖/YiLotteryDemo/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemoTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/image/l1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luowenqi/luo/HEAD/抽奖/YiLotteryDemo/image/l1.png -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/image/l2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luowenqi/luo/HEAD/抽奖/YiLotteryDemo/image/l2.png -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/image/l3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luowenqi/luo/HEAD/抽奖/YiLotteryDemo/image/l3.png -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/image/l4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luowenqi/luo/HEAD/抽奖/YiLotteryDemo/image/l4.png -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/image/l5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luowenqi/luo/HEAD/抽奖/YiLotteryDemo/image/l5.png -------------------------------------------------------------------------------- /抽奖/README.md: -------------------------------------------------------------------------------- 1 | # YiLotteryDemo 2 | 模仿美团积分抽奖功能 3 | 4 | 5 | 6 | ![YiLotteryDemo](http://7u2k5i.com1.z0.glb.clouddn.com/github_YiLotteryDemo.png?imageMogr2/thumbnail/!50p) 7 | 8 | 9 | copyright (c) 2015 coderyi.all rights reserved. 10 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luowenqi/luo/HEAD/抽奖/YiLotteryDemo.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/project.xcworkspace/xcuserdata/luowenqi.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luowenqi/luo/HEAD/抽奖/YiLotteryDemo.xcodeproj/project.xcworkspace/xcuserdata/luowenqi.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/project.xcworkspace/xcuserdata/zhangfangtao.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luowenqi/luo/HEAD/抽奖/YiLotteryDemo.xcodeproj/project.xcworkspace/xcuserdata/zhangfangtao.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/YiViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // YiViewController.h 3 | // YiLotteryDemo 4 | // 5 | // Created by apple on 15/2/12. 6 | // Copyright (c) 2015年 coderyi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface YiViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/YiLotteryCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // YiLotteryCell.h 3 | // YiLotteryDemo 4 | // 5 | // Created by apple on 15/2/12. 6 | // Copyright (c) 2015年 coderyi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface YiLotteryCell : UIImageView 12 | @property UILabel *label; 13 | @property UIImageView *titleImageView; 14 | @end 15 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/YiLotteryButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // YiLotteryButton.h 3 | // YiLotteryDemo 4 | // 5 | // Created by apple on 15/2/12. 6 | // Copyright (c) 2015年 coderyi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface YiLotteryButton : UIButton 12 | @property UIImageView *titleImageView; 13 | @property UILabel *label; 14 | @end 15 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/YiAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // YiAppDelegate.h 3 | // YiLotteryDemo 4 | // 5 | // Created by apple on 15/2/12. 6 | // Copyright (c) 2015年 coderyi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface YiAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // YiLotteryDemo 4 | // 5 | // Created by apple on 15/2/12. 6 | // Copyright (c) 2015年 coderyi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "YiAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([YiAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/YiLotteryDemo-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/Images.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" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/xcuserdata/apple.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | YiLotteryDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 18BE78FE1A8C516E00FC0188 16 | 17 | primary 18 | 19 | 20 | 18BE791F1A8C516E00FC0188 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/xcuserdata/luowenqi.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | YiLotteryDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 18BE78FE1A8C516E00FC0188 16 | 17 | primary 18 | 19 | 20 | 18BE791F1A8C516E00FC0188 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/xcuserdata/zhangfangtao.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | YiLotteryDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 18BE78FE1A8C516E00FC0188 16 | 17 | primary 18 | 19 | 20 | 18BE791F1A8C516E00FC0188 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemoTests/YiLotteryDemoTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | coderyi.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemoTests/YiLotteryDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // YiLotteryDemoTests.m 3 | // YiLotteryDemoTests 4 | // 5 | // Created by apple on 15/2/12. 6 | // Copyright (c) 2015年 coderyi. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface YiLotteryDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation YiLotteryDemoTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /抽奖/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | Copyright (c) 2015 coderyi. 4 | This code is distributed under the terms and conditions of the MIT license. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in the 8 | Software without restriction, including without limitation the rights to use, copy, 9 | modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, 10 | and to permit persons to whom the Software is furnished to do so, subject to the 11 | following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 17 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 18 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 20 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE 21 | OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/YiLotteryDemo-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | coderyi.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/YiLotteryCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // YiLotteryCell.m 3 | // YiLotteryDemo 4 | // 5 | // Created by apple on 15/2/12. 6 | // Copyright (c) 2015年 coderyi. All rights reserved. 7 | // 8 | 9 | #import "YiLotteryCell.h" 10 | 11 | @implementation YiLotteryCell 12 | - (id)initWithFrame:(CGRect)frame 13 | { 14 | self = [super initWithFrame:frame]; 15 | if (self) { 16 | // 50*43 17 | float height=frame.size.height; 18 | float width=frame.size.width; 19 | self.image=[UIImage imageNamed:@"l3"]; 20 | float imageWidth=17; 21 | float orginX=6; 22 | 23 | // float width=frame.size.width; 24 | _titleImageView=[[UIImageView alloc] initWithFrame:CGRectMake(orginX, (height-imageWidth)/2, imageWidth, imageWidth)]; 25 | _titleImageView.image=[UIImage imageNamed:@"l1"]; 26 | [self addSubview:_titleImageView]; 27 | _label=[[UILabel alloc] initWithFrame:CGRectMake(orginX+imageWidth, (height-imageWidth)/2, imageWidth, imageWidth)]; 28 | [self addSubview:_label]; 29 | 30 | 31 | _label.font=[UIFont systemFontOfSize:13]; 32 | 33 | 34 | _label.textAlignment=NSTextAlignmentCenter; 35 | 36 | 37 | 38 | _label.textColor=[UIColor colorWithRed:0.74 green:0.46 blue:0.07 alpha:1]; 39 | 40 | 41 | } 42 | return self; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/YiLotteryButton.m: -------------------------------------------------------------------------------- 1 | // 2 | // YiLotteryButton.m 3 | // YiLotteryDemo 4 | // 5 | // Created by apple on 15/2/12. 6 | // Copyright (c) 2015年 coderyi. All rights reserved. 7 | // 8 | 9 | #import "YiLotteryButton.h" 10 | 11 | @implementation YiLotteryButton 12 | - (id)initWithFrame:(CGRect)frame 13 | { 14 | self = [super initWithFrame:frame]; 15 | if (self) { 16 | // 50*43 - 110*43 17 | // 70 40 30*15 18 | float height=frame.size.height; 19 | float width=frame.size.width; 20 | // self.layer.masksToBounds=YES; 21 | // self.layer.cornerRadius=height/2; 22 | float labelWidth=70; 23 | self.backgroundColor=[UIColor colorWithRed:0.99 green:0.54 blue:0.16 alpha:1]; 24 | float imageWidth=20; 25 | // float width=frame.size.width; 26 | _label=[[UILabel alloc] initWithFrame:CGRectMake(0, 0, labelWidth, height)]; 27 | 28 | [self addSubview:_label]; 29 | _titleImageView=[[UIImageView alloc] initWithFrame:CGRectMake(labelWidth+5, (height-15)/2, 30,15)]; 30 | [self addSubview:_titleImageView]; 31 | _titleImageView.image=[UIImage imageNamed:@"l4"]; 32 | 33 | _label.font=[UIFont boldSystemFontOfSize:15]; 34 | _label.textColor=[UIColor whiteColor]; 35 | 36 | _label.textAlignment=NSTextAlignmentRight; 37 | _label.text=@"开始抽奖"; 38 | 39 | } 40 | return self; 41 | } 42 | @end 43 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/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 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/YiAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // YiAppDelegate.m 3 | // YiLotteryDemo 4 | // 5 | // Created by apple on 15/2/12. 6 | // Copyright (c) 2015年 coderyi. All rights reserved. 7 | // 8 | 9 | #import "YiAppDelegate.h" 10 | #import "YiViewController.h" 11 | @implementation YiAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | YiViewController *YiVC=[[YiViewController alloc] init]; 17 | UINavigationController *nav=[[UINavigationController alloc] initWithRootViewController:YiVC]; 18 | self.window.rootViewController=nav; 19 | return YES; 20 | } 21 | 22 | - (void)applicationWillResignActive:(UIApplication *)application 23 | { 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 | { 30 | // 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. 31 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 32 | } 33 | 34 | - (void)applicationWillEnterForeground:(UIApplication *)application 35 | { 36 | // 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. 37 | } 38 | 39 | - (void)applicationDidBecomeActive:(UIApplication *)application 40 | { 41 | // 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. 42 | } 43 | 44 | - (void)applicationWillTerminate:(UIApplication *)application 45 | { 46 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 47 | } 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/xcuserdata/apple.xcuserdatad/xcschemes/YiLotteryDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/xcuserdata/luowenqi.xcuserdatad/xcschemes/YiLotteryDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/xcuserdata/zhangfangtao.xcuserdatad/xcschemes/YiLotteryDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo/YiViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // YiViewController.m 3 | // YiLotteryDemo 4 | // 5 | // Created by apple on 15/2/11. 6 | // Copyright (c) 2015年 coderyi. All rights reserved. 7 | // 8 | 9 | #import "YiViewController.h" 10 | #import "YiLotteryCell.h" 11 | #import "YiLotteryButton.h" 12 | 13 | #define HScreen [[UIScreen mainScreen] bounds].size.height 14 | #define WScreen [[UIScreen mainScreen] bounds].size.width 15 | #define iOS7 [[[UIDevice currentDevice]systemVersion] floatValue] >= 7.0 16 | @interface YiViewController (){ 17 | 18 | UIView *lotteryView; 19 | UIView *lotteryBgView; 20 | YiLotteryCell *lotteryCell1; 21 | YiLotteryCell *lotteryCell2; 22 | YiLotteryCell *lotteryCell3; 23 | YiLotteryCell *lotteryCell4; 24 | YiLotteryCell *lotteryCell5; 25 | YiLotteryCell *lotteryCell6; 26 | YiLotteryCell *lotteryCell7; 27 | YiLotteryCell *lotteryCell8; 28 | YiLotteryCell *lotteryCell9; 29 | YiLotteryCell *lotteryCell10; 30 | 31 | YiLotteryButton *startButton; 32 | 33 | NSArray *array; 34 | NSTimer *timer; 35 | YiLotteryCell *currentView; 36 | float intervalTime;//变换时间差(用来表示速度) 37 | float accelerate;//减速度 38 | float endTimerTotal;//减速共耗时间 39 | int a; 40 | } 41 | 42 | @end 43 | 44 | @implementation YiViewController 45 | 46 | - (void)viewDidLoad { 47 | [super viewDidLoad]; 48 | // Do any additional setup after loading the view, typically from a nib. 49 | self.view.backgroundColor=[UIColor whiteColor]; 50 | [self initLottery]; 51 | a=0; 52 | } 53 | 54 | 55 | 56 | //初始化抽奖视图 57 | 58 | -(void)initLottery{ 59 | lotteryBgView =[[UIView alloc] initWithFrame:CGRectMake(0, 0, WScreen, HScreen)]; 60 | [self.view addSubview:lotteryBgView]; 61 | lotteryBgView.backgroundColor=[UIColor colorWithWhite:0.1 alpha:0.9]; 62 | lotteryBgView.hidden=YES; 63 | 64 | UIButton *lotteryBt=[UIButton buttonWithType:UIButtonTypeCustom]; 65 | [self.view addSubview:lotteryBt]; 66 | lotteryBt.frame=CGRectMake(WScreen-70, 95, 50, 50); 67 | lotteryBt.layer.masksToBounds=YES; 68 | lotteryBt.layer.cornerRadius=25; 69 | lotteryBt.backgroundColor=[UIColor colorWithWhite:0.4 alpha:0.5]; 70 | [lotteryBt setTitle:@"每日\n抽奖" forState:UIControlStateNormal]; 71 | [lotteryBt setTitleColor:[UIColor colorWithRed:1 green:0.81 blue:0.18 alpha:1] forState:UIControlStateNormal]; 72 | // [lotteryBt setFont:[UIFont systemFontOfSize:13]]; 73 | 74 | lotteryBt.titleLabel.lineBreakMode=UILineBreakModeWordWrap; 75 | lotteryBt.titleLabel.font=[UIFont boldSystemFontOfSize:13]; 76 | [lotteryBt addTarget:self action:@selector(lotteryBtAction) forControlEvents:UIControlEventTouchUpInside]; 77 | 78 | lotteryView=[[UIView alloc] initWithFrame:CGRectMake((WScreen-260)/2, 160, 260, 260)]; 79 | [self.view addSubview:lotteryView]; 80 | lotteryView.hidden=YES; 81 | lotteryView.backgroundColor=[UIColor whiteColor]; 82 | UIButton *hideLotteryBt=[UIButton buttonWithType:UIButtonTypeCustom]; 83 | [lotteryView addSubview:hideLotteryBt]; 84 | hideLotteryBt.frame=CGRectMake(240, 0, 20, 20); 85 | [hideLotteryBt setImage:[UIImage imageNamed:@"l5"] forState:UIControlStateNormal]; 86 | [hideLotteryBt addTarget:self action:@selector(hideLotteryBtAction) forControlEvents:UIControlEventTouchUpInside]; 87 | 88 | UILabel *lotteryTitle=[[UILabel alloc] initWithFrame:CGRectMake((260-150)/2, 22, 150, 30)]; 89 | lotteryTitle.backgroundColor=[UIColor colorWithRed:0.99 green:0.78 blue:0.19 alpha:1]; 90 | lotteryTitle.text=@"每日抽奖"; 91 | lotteryTitle.textAlignment=NSTextAlignmentCenter; 92 | 93 | lotteryTitle.font=[UIFont boldSystemFontOfSize:14]; 94 | lotteryTitle.textColor=[UIColor whiteColor]; 95 | [lotteryView addSubview:lotteryTitle]; 96 | 97 | endTimerTotal = 5.0; 98 | float originX=15; 99 | float space=10; 100 | float cellWidth=50; 101 | float cellHeight=43; 102 | float orginY=75; 103 | lotteryCell1=[[YiLotteryCell alloc] initWithFrame:CGRectMake(originX, orginY, cellWidth, cellHeight)]; 104 | [lotteryView addSubview:lotteryCell1]; 105 | lotteryCell1.label.text=@"2"; 106 | lotteryCell2=[[YiLotteryCell alloc] initWithFrame:CGRectMake(originX+cellWidth+space, orginY, cellWidth, cellHeight)]; 107 | [lotteryView addSubview:lotteryCell2]; 108 | lotteryCell2.label.text=@"4"; 109 | lotteryCell3=[[YiLotteryCell alloc] initWithFrame:CGRectMake(originX+cellWidth*2+space*2, orginY, cellWidth, cellHeight)]; 110 | [lotteryView addSubview:lotteryCell3]; 111 | lotteryCell3.label.text=@"6"; 112 | lotteryCell4=[[YiLotteryCell alloc] initWithFrame:CGRectMake(originX+cellWidth*3+space*3, orginY, cellWidth, cellHeight)]; 113 | [lotteryView addSubview:lotteryCell4]; 114 | lotteryCell4.label.text=@"8"; 115 | lotteryCell5=[[YiLotteryCell alloc] initWithFrame:CGRectMake(originX+cellWidth*3+space*3, orginY+cellHeight+space, cellWidth, cellHeight)]; 116 | [lotteryView addSubview:lotteryCell5]; 117 | lotteryCell5.label.text=@"10"; 118 | 119 | lotteryCell6=[[YiLotteryCell alloc] initWithFrame:CGRectMake(originX+cellWidth*3+space*3, orginY+(cellHeight+space)*2, cellWidth, cellHeight)]; 120 | [lotteryView addSubview:lotteryCell6]; 121 | lotteryCell6.label.text=@"12"; 122 | 123 | lotteryCell7=[[YiLotteryCell alloc] initWithFrame:CGRectMake(originX+cellWidth*2+space*2, orginY+(cellHeight+space)*2, cellWidth, cellHeight)]; 124 | [lotteryView addSubview:lotteryCell7]; 125 | lotteryCell7.label.text=@"14"; 126 | 127 | lotteryCell8=[[YiLotteryCell alloc] initWithFrame:CGRectMake(originX+cellWidth*1+space*1, orginY+(cellHeight+space)*2, cellWidth, cellHeight)]; 128 | [lotteryView addSubview:lotteryCell8]; 129 | lotteryCell8.label.text=@"16"; 130 | 131 | lotteryCell9=[[YiLotteryCell alloc] initWithFrame:CGRectMake(originX+cellWidth*0+space*0, orginY+(cellHeight+space)*2, cellWidth, cellHeight)]; 132 | [lotteryView addSubview:lotteryCell9]; 133 | lotteryCell9.label.text=@"18"; 134 | 135 | lotteryCell10=[[YiLotteryCell alloc] initWithFrame:CGRectMake(originX+cellWidth*0+space*0, orginY+cellHeight+space, cellWidth, cellHeight)]; 136 | [lotteryView addSubview:lotteryCell10]; 137 | lotteryCell10.label.text=@"20"; 138 | 139 | 140 | startButton=[[YiLotteryButton alloc] initWithFrame:CGRectMake(originX+cellWidth+space, orginY+cellHeight+space, cellWidth*2+space, cellHeight)]; 141 | [lotteryView addSubview:startButton]; 142 | [startButton addTarget:self action:@selector(prepareLotteryAction) forControlEvents:UIControlEventTouchUpInside]; 143 | 144 | 145 | array = [[NSArray alloc] initWithObjects:lotteryCell1,lotteryCell2,lotteryCell3,lotteryCell4,lotteryCell5,lotteryCell6,lotteryCell7,lotteryCell8,lotteryCell9,lotteryCell10,nil]; 146 | int count = array.count; 147 | for (int i=0; i0.1) { 218 | intervalTime = intervalTime - 0.1; 219 | } 220 | NSLog(@"intttt is %f",intervalTime); 221 | timer = [NSTimer scheduledTimerWithTimeInterval:intervalTime target:self selector:@selector(startLotterry:) userInfo:currentView repeats:NO]; 222 | } 223 | 224 | //单元格移动一下 225 | -(void)moveCurrentView:(YiLotteryCell *)curView inArray:(NSArray *)views{ 226 | 227 | YiLotteryCell *preView = [self previewByCurrentView:curView inArray:views]; 228 | 229 | preView.label.textColor = [UIColor colorWithRed:0.74 green:0.46 blue:0.07 alpha:1]; 230 | preView.image=[UIImage imageNamed:@"l3"]; 231 | curView.label.textColor = [UIColor whiteColor]; 232 | curView.image=[UIImage imageNamed:@"l2"]; 233 | 234 | } 235 | 236 | -(void)endLotteryWithResultValue:(int)resultValue{ 237 | intervalTime=0.3; 238 | // accelerate = [self accelerateWithResultValue:resultValue]; 239 | 240 | int currentIndex = [array indexOfObject:currentView]; 241 | int count = array.count; 242 | 243 | int endLength; 244 | 245 | if (currentIndex+1>=resultValue) { 246 | endLength = count-(currentIndex+1-resultValue); 247 | }else{ 248 | endLength = resultValue-(currentIndex+1); 249 | } 250 | // intervalTime = (0.1+0.1*endLength)*endLength/2.0; 251 | accelerate = (2*endTimerTotal/endLength-2*intervalTime)/(endLength-1); 252 | 253 | 254 | // intervalTime=0.1*accelerate; 255 | [self moveToStopWithAccelerate]; 256 | } 257 | 258 | //减速至停止 259 | -(void)moveToStopWithAccelerate{ 260 | 261 | static float timeTotal = 0; 262 | int aaa=intervalTime/0.3; 263 | 264 | if (a<=accelerate) { 265 | 266 | a++; 267 | intervalTime = 0.3*a; 268 | NSLog(@"aaaaa is %f",intervalTime); 269 | 270 | // accelerate--; 271 | // timeTotal = timeTotal+intervalTime; 272 | [timer invalidate]; 273 | currentView = [self nextViewByCurrentView:currentView inArray:array]; 274 | [self moveCurrentView:currentView inArray:array]; 275 | timer = [NSTimer scheduledTimerWithTimeInterval:intervalTime target:self selector:@selector(moveToStopWithAccelerate) userInfo:nil repeats:NO]; 276 | } 277 | if (a>=accelerate) { 278 | 279 | [timer invalidate]; 280 | timeTotal = 0; 281 | UIAlertView *alert=[[UIAlertView alloc] initWithTitle:@"" message:[NSString stringWithFormat:@"恭喜你!抽中%d个积分",(currentView.tag+1)*2] delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]; 282 | [alert show]; 283 | 284 | 285 | startButton.enabled = YES; 286 | intervalTime=0.7; 287 | a=0; 288 | } 289 | 290 | } 291 | 292 | //得到上一个view 293 | -(UIView *)previewByCurrentView:(UIView *)curView inArray:(NSArray *)views{ 294 | int count = views.count; 295 | int curIndex = [views indexOfObject:curView]; 296 | int preIndex; 297 | if (curIndex==0) { 298 | preIndex = count-1; 299 | }else{ 300 | preIndex = curIndex-1; 301 | } 302 | return [views objectAtIndex:preIndex]; 303 | } 304 | 305 | //得到下一个view 306 | -(UIView *)nextViewByCurrentView:(UIView *)curView inArray:(NSArray *)views{ 307 | int count = views.count; 308 | int curIndex = [views indexOfObject:curView]; 309 | int nextIndex; 310 | if (curIndex==count-1) { 311 | nextIndex = 0; 312 | }else{ 313 | nextIndex = curIndex+1; 314 | } 315 | return [views objectAtIndex:nextIndex]; 316 | } 317 | 318 | //计算时间的加速度 319 | -(float)accelerateWithResultValue:(int)resultValue{ 320 | float a; 321 | int currentIndex = [array indexOfObject:currentView]; 322 | int count = array.count; 323 | 324 | int endLength; 325 | 326 | if (currentIndex+1>=resultValue) { 327 | endLength = count-(currentIndex+1-resultValue); 328 | }else{ 329 | endLength = resultValue-(currentIndex+1); 330 | } 331 | // intervalTime = (0.1+0.1*endLength)*endLength/2.0; 332 | a = (2*endTimerTotal/endLength-2*intervalTime)/(endLength-1); 333 | return endLength; 334 | 335 | } 336 | 337 | 338 | - (void)didReceiveMemoryWarning { 339 | [super didReceiveMemoryWarning]; 340 | // Dispose of any resources that can be recreated. 341 | } 342 | 343 | @end -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/xcuserdata/apple.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 24 | 36 | 37 | 38 | 40 | 52 | 53 | 54 | 56 | 68 | 69 | 70 | 72 | 84 | 85 | 86 | 88 | 100 | 101 | 102 | 104 | 116 | 117 | 118 | 120 | 132 | 133 | 134 | 136 | 148 | 149 | 150 | 152 | 164 | 165 | 166 | 168 | 180 | 181 | 182 | 184 | 196 | 197 | 198 | 200 | 212 | 213 | 214 | 216 | 228 | 229 | 230 | 232 | 244 | 245 | 246 | 248 | 260 | 261 | 262 | 264 | 276 | 277 | 278 | 280 | 292 | 293 | 294 | 296 | 308 | 309 | 310 | 312 | 324 | 325 | 326 | 328 | 340 | 341 | 342 | 344 | 356 | 357 | 358 | 360 | 372 | 373 | 374 | 376 | 388 | 389 | 390 | 392 | 404 | 405 | 406 | 407 | 408 | -------------------------------------------------------------------------------- /抽奖/YiLotteryDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 189254A71A8C865D00B5D180 /* l1.png in Resources */ = {isa = PBXBuildFile; fileRef = 189254A21A8C865D00B5D180 /* l1.png */; }; 11 | 189254A81A8C865D00B5D180 /* l2.png in Resources */ = {isa = PBXBuildFile; fileRef = 189254A31A8C865D00B5D180 /* l2.png */; }; 12 | 189254A91A8C865D00B5D180 /* l3.png in Resources */ = {isa = PBXBuildFile; fileRef = 189254A41A8C865D00B5D180 /* l3.png */; }; 13 | 189254AA1A8C865D00B5D180 /* l4.png in Resources */ = {isa = PBXBuildFile; fileRef = 189254A51A8C865D00B5D180 /* l4.png */; }; 14 | 189254AB1A8C865D00B5D180 /* l5.png in Resources */ = {isa = PBXBuildFile; fileRef = 189254A61A8C865D00B5D180 /* l5.png */; }; 15 | 18BE79031A8C516E00FC0188 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18BE79021A8C516E00FC0188 /* Foundation.framework */; }; 16 | 18BE79051A8C516E00FC0188 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18BE79041A8C516E00FC0188 /* CoreGraphics.framework */; }; 17 | 18BE79071A8C516E00FC0188 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18BE79061A8C516E00FC0188 /* UIKit.framework */; }; 18 | 18BE790D1A8C516E00FC0188 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 18BE790B1A8C516E00FC0188 /* InfoPlist.strings */; }; 19 | 18BE790F1A8C516E00FC0188 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 18BE790E1A8C516E00FC0188 /* main.m */; }; 20 | 18BE79131A8C516E00FC0188 /* YiAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 18BE79121A8C516E00FC0188 /* YiAppDelegate.m */; }; 21 | 18BE79161A8C516E00FC0188 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 18BE79141A8C516E00FC0188 /* Main.storyboard */; }; 22 | 18BE79191A8C516E00FC0188 /* YiViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18BE79181A8C516E00FC0188 /* YiViewController.m */; }; 23 | 18BE791B1A8C516E00FC0188 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 18BE791A1A8C516E00FC0188 /* Images.xcassets */; }; 24 | 18BE79221A8C516E00FC0188 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18BE79211A8C516E00FC0188 /* XCTest.framework */; }; 25 | 18BE79231A8C516E00FC0188 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18BE79021A8C516E00FC0188 /* Foundation.framework */; }; 26 | 18BE79241A8C516E00FC0188 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18BE79061A8C516E00FC0188 /* UIKit.framework */; }; 27 | 18BE792C1A8C516E00FC0188 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 18BE792A1A8C516E00FC0188 /* InfoPlist.strings */; }; 28 | 18BE792E1A8C516E00FC0188 /* YiLotteryDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 18BE792D1A8C516E00FC0188 /* YiLotteryDemoTests.m */; }; 29 | 18BE79411A8C51C100FC0188 /* YiLotteryButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 18BE79401A8C51C100FC0188 /* YiLotteryButton.m */; }; 30 | 18BE79441A8C51D700FC0188 /* YiLotteryCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 18BE79431A8C51D700FC0188 /* YiLotteryCell.m */; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXContainerItemProxy section */ 34 | 18BE79251A8C516E00FC0188 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = 18BE78F71A8C516E00FC0188 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = 18BE78FE1A8C516E00FC0188; 39 | remoteInfo = YiLotteryDemo; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | 189254A21A8C865D00B5D180 /* l1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = l1.png; sourceTree = ""; }; 45 | 189254A31A8C865D00B5D180 /* l2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = l2.png; sourceTree = ""; }; 46 | 189254A41A8C865D00B5D180 /* l3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = l3.png; sourceTree = ""; }; 47 | 189254A51A8C865D00B5D180 /* l4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = l4.png; sourceTree = ""; }; 48 | 189254A61A8C865D00B5D180 /* l5.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = l5.png; sourceTree = ""; }; 49 | 18BE78FF1A8C516E00FC0188 /* YiLotteryDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YiLotteryDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 18BE79021A8C516E00FC0188 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 51 | 18BE79041A8C516E00FC0188 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 52 | 18BE79061A8C516E00FC0188 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 53 | 18BE790A1A8C516E00FC0188 /* YiLotteryDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "YiLotteryDemo-Info.plist"; sourceTree = ""; }; 54 | 18BE790C1A8C516E00FC0188 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 55 | 18BE790E1A8C516E00FC0188 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 56 | 18BE79101A8C516E00FC0188 /* YiLotteryDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "YiLotteryDemo-Prefix.pch"; sourceTree = ""; }; 57 | 18BE79111A8C516E00FC0188 /* YiAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YiAppDelegate.h; sourceTree = ""; }; 58 | 18BE79121A8C516E00FC0188 /* YiAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YiAppDelegate.m; sourceTree = ""; }; 59 | 18BE79151A8C516E00FC0188 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 60 | 18BE79171A8C516E00FC0188 /* YiViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YiViewController.h; sourceTree = ""; }; 61 | 18BE79181A8C516E00FC0188 /* YiViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YiViewController.m; sourceTree = ""; }; 62 | 18BE791A1A8C516E00FC0188 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 63 | 18BE79201A8C516E00FC0188 /* YiLotteryDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = YiLotteryDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | 18BE79211A8C516E00FC0188 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 65 | 18BE79291A8C516E00FC0188 /* YiLotteryDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "YiLotteryDemoTests-Info.plist"; sourceTree = ""; }; 66 | 18BE792B1A8C516E00FC0188 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 67 | 18BE792D1A8C516E00FC0188 /* YiLotteryDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YiLotteryDemoTests.m; sourceTree = ""; }; 68 | 18BE793F1A8C51C100FC0188 /* YiLotteryButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YiLotteryButton.h; sourceTree = ""; }; 69 | 18BE79401A8C51C100FC0188 /* YiLotteryButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YiLotteryButton.m; sourceTree = ""; }; 70 | 18BE79421A8C51D700FC0188 /* YiLotteryCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YiLotteryCell.h; sourceTree = ""; }; 71 | 18BE79431A8C51D700FC0188 /* YiLotteryCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YiLotteryCell.m; sourceTree = ""; }; 72 | /* End PBXFileReference section */ 73 | 74 | /* Begin PBXFrameworksBuildPhase section */ 75 | 18BE78FC1A8C516E00FC0188 /* Frameworks */ = { 76 | isa = PBXFrameworksBuildPhase; 77 | buildActionMask = 2147483647; 78 | files = ( 79 | 18BE79051A8C516E00FC0188 /* CoreGraphics.framework in Frameworks */, 80 | 18BE79071A8C516E00FC0188 /* UIKit.framework in Frameworks */, 81 | 18BE79031A8C516E00FC0188 /* Foundation.framework in Frameworks */, 82 | ); 83 | runOnlyForDeploymentPostprocessing = 0; 84 | }; 85 | 18BE791D1A8C516E00FC0188 /* Frameworks */ = { 86 | isa = PBXFrameworksBuildPhase; 87 | buildActionMask = 2147483647; 88 | files = ( 89 | 18BE79221A8C516E00FC0188 /* XCTest.framework in Frameworks */, 90 | 18BE79241A8C516E00FC0188 /* UIKit.framework in Frameworks */, 91 | 18BE79231A8C516E00FC0188 /* Foundation.framework in Frameworks */, 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | /* End PBXFrameworksBuildPhase section */ 96 | 97 | /* Begin PBXGroup section */ 98 | 189254A11A8C865D00B5D180 /* image */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 189254A21A8C865D00B5D180 /* l1.png */, 102 | 189254A31A8C865D00B5D180 /* l2.png */, 103 | 189254A41A8C865D00B5D180 /* l3.png */, 104 | 189254A51A8C865D00B5D180 /* l4.png */, 105 | 189254A61A8C865D00B5D180 /* l5.png */, 106 | ); 107 | path = image; 108 | sourceTree = ""; 109 | }; 110 | 18BE78F61A8C516E00FC0188 = { 111 | isa = PBXGroup; 112 | children = ( 113 | 18BE79081A8C516E00FC0188 /* YiLotteryDemo */, 114 | 18BE79271A8C516E00FC0188 /* YiLotteryDemoTests */, 115 | 18BE79011A8C516E00FC0188 /* Frameworks */, 116 | 18BE79001A8C516E00FC0188 /* Products */, 117 | ); 118 | sourceTree = ""; 119 | }; 120 | 18BE79001A8C516E00FC0188 /* Products */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 18BE78FF1A8C516E00FC0188 /* YiLotteryDemo.app */, 124 | 18BE79201A8C516E00FC0188 /* YiLotteryDemoTests.xctest */, 125 | ); 126 | name = Products; 127 | sourceTree = ""; 128 | }; 129 | 18BE79011A8C516E00FC0188 /* Frameworks */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 18BE79021A8C516E00FC0188 /* Foundation.framework */, 133 | 18BE79041A8C516E00FC0188 /* CoreGraphics.framework */, 134 | 18BE79061A8C516E00FC0188 /* UIKit.framework */, 135 | 18BE79211A8C516E00FC0188 /* XCTest.framework */, 136 | ); 137 | name = Frameworks; 138 | sourceTree = ""; 139 | }; 140 | 18BE79081A8C516E00FC0188 /* YiLotteryDemo */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 189254A11A8C865D00B5D180 /* image */, 144 | 18BE79111A8C516E00FC0188 /* YiAppDelegate.h */, 145 | 18BE79121A8C516E00FC0188 /* YiAppDelegate.m */, 146 | 18BE79141A8C516E00FC0188 /* Main.storyboard */, 147 | 18BE79171A8C516E00FC0188 /* YiViewController.h */, 148 | 18BE79181A8C516E00FC0188 /* YiViewController.m */, 149 | 18BE793F1A8C51C100FC0188 /* YiLotteryButton.h */, 150 | 18BE79401A8C51C100FC0188 /* YiLotteryButton.m */, 151 | 18BE79421A8C51D700FC0188 /* YiLotteryCell.h */, 152 | 18BE79431A8C51D700FC0188 /* YiLotteryCell.m */, 153 | 18BE791A1A8C516E00FC0188 /* Images.xcassets */, 154 | 18BE79091A8C516E00FC0188 /* Supporting Files */, 155 | ); 156 | path = YiLotteryDemo; 157 | sourceTree = ""; 158 | }; 159 | 18BE79091A8C516E00FC0188 /* Supporting Files */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 18BE790A1A8C516E00FC0188 /* YiLotteryDemo-Info.plist */, 163 | 18BE790B1A8C516E00FC0188 /* InfoPlist.strings */, 164 | 18BE790E1A8C516E00FC0188 /* main.m */, 165 | 18BE79101A8C516E00FC0188 /* YiLotteryDemo-Prefix.pch */, 166 | ); 167 | name = "Supporting Files"; 168 | sourceTree = ""; 169 | }; 170 | 18BE79271A8C516E00FC0188 /* YiLotteryDemoTests */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | 18BE792D1A8C516E00FC0188 /* YiLotteryDemoTests.m */, 174 | 18BE79281A8C516E00FC0188 /* Supporting Files */, 175 | ); 176 | path = YiLotteryDemoTests; 177 | sourceTree = ""; 178 | }; 179 | 18BE79281A8C516E00FC0188 /* Supporting Files */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | 18BE79291A8C516E00FC0188 /* YiLotteryDemoTests-Info.plist */, 183 | 18BE792A1A8C516E00FC0188 /* InfoPlist.strings */, 184 | ); 185 | name = "Supporting Files"; 186 | sourceTree = ""; 187 | }; 188 | /* End PBXGroup section */ 189 | 190 | /* Begin PBXNativeTarget section */ 191 | 18BE78FE1A8C516E00FC0188 /* YiLotteryDemo */ = { 192 | isa = PBXNativeTarget; 193 | buildConfigurationList = 18BE79311A8C516E00FC0188 /* Build configuration list for PBXNativeTarget "YiLotteryDemo" */; 194 | buildPhases = ( 195 | 18BE78FB1A8C516E00FC0188 /* Sources */, 196 | 18BE78FC1A8C516E00FC0188 /* Frameworks */, 197 | 18BE78FD1A8C516E00FC0188 /* Resources */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | ); 203 | name = YiLotteryDemo; 204 | productName = YiLotteryDemo; 205 | productReference = 18BE78FF1A8C516E00FC0188 /* YiLotteryDemo.app */; 206 | productType = "com.apple.product-type.application"; 207 | }; 208 | 18BE791F1A8C516E00FC0188 /* YiLotteryDemoTests */ = { 209 | isa = PBXNativeTarget; 210 | buildConfigurationList = 18BE79341A8C516E00FC0188 /* Build configuration list for PBXNativeTarget "YiLotteryDemoTests" */; 211 | buildPhases = ( 212 | 18BE791C1A8C516E00FC0188 /* Sources */, 213 | 18BE791D1A8C516E00FC0188 /* Frameworks */, 214 | 18BE791E1A8C516E00FC0188 /* Resources */, 215 | ); 216 | buildRules = ( 217 | ); 218 | dependencies = ( 219 | 18BE79261A8C516E00FC0188 /* PBXTargetDependency */, 220 | ); 221 | name = YiLotteryDemoTests; 222 | productName = YiLotteryDemoTests; 223 | productReference = 18BE79201A8C516E00FC0188 /* YiLotteryDemoTests.xctest */; 224 | productType = "com.apple.product-type.bundle.unit-test"; 225 | }; 226 | /* End PBXNativeTarget section */ 227 | 228 | /* Begin PBXProject section */ 229 | 18BE78F71A8C516E00FC0188 /* Project object */ = { 230 | isa = PBXProject; 231 | attributes = { 232 | CLASSPREFIX = Yi; 233 | LastUpgradeCheck = 0510; 234 | ORGANIZATIONNAME = coderyi; 235 | TargetAttributes = { 236 | 18BE791F1A8C516E00FC0188 = { 237 | TestTargetID = 18BE78FE1A8C516E00FC0188; 238 | }; 239 | }; 240 | }; 241 | buildConfigurationList = 18BE78FA1A8C516E00FC0188 /* Build configuration list for PBXProject "YiLotteryDemo" */; 242 | compatibilityVersion = "Xcode 3.2"; 243 | developmentRegion = English; 244 | hasScannedForEncodings = 0; 245 | knownRegions = ( 246 | en, 247 | Base, 248 | ); 249 | mainGroup = 18BE78F61A8C516E00FC0188; 250 | productRefGroup = 18BE79001A8C516E00FC0188 /* Products */; 251 | projectDirPath = ""; 252 | projectRoot = ""; 253 | targets = ( 254 | 18BE78FE1A8C516E00FC0188 /* YiLotteryDemo */, 255 | 18BE791F1A8C516E00FC0188 /* YiLotteryDemoTests */, 256 | ); 257 | }; 258 | /* End PBXProject section */ 259 | 260 | /* Begin PBXResourcesBuildPhase section */ 261 | 18BE78FD1A8C516E00FC0188 /* Resources */ = { 262 | isa = PBXResourcesBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | 189254AA1A8C865D00B5D180 /* l4.png in Resources */, 266 | 189254A81A8C865D00B5D180 /* l2.png in Resources */, 267 | 189254AB1A8C865D00B5D180 /* l5.png in Resources */, 268 | 18BE791B1A8C516E00FC0188 /* Images.xcassets in Resources */, 269 | 18BE790D1A8C516E00FC0188 /* InfoPlist.strings in Resources */, 270 | 189254A71A8C865D00B5D180 /* l1.png in Resources */, 271 | 189254A91A8C865D00B5D180 /* l3.png in Resources */, 272 | 18BE79161A8C516E00FC0188 /* Main.storyboard in Resources */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | 18BE791E1A8C516E00FC0188 /* Resources */ = { 277 | isa = PBXResourcesBuildPhase; 278 | buildActionMask = 2147483647; 279 | files = ( 280 | 18BE792C1A8C516E00FC0188 /* InfoPlist.strings in Resources */, 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | }; 284 | /* End PBXResourcesBuildPhase section */ 285 | 286 | /* Begin PBXSourcesBuildPhase section */ 287 | 18BE78FB1A8C516E00FC0188 /* Sources */ = { 288 | isa = PBXSourcesBuildPhase; 289 | buildActionMask = 2147483647; 290 | files = ( 291 | 18BE79441A8C51D700FC0188 /* YiLotteryCell.m in Sources */, 292 | 18BE79191A8C516E00FC0188 /* YiViewController.m in Sources */, 293 | 18BE79411A8C51C100FC0188 /* YiLotteryButton.m in Sources */, 294 | 18BE79131A8C516E00FC0188 /* YiAppDelegate.m in Sources */, 295 | 18BE790F1A8C516E00FC0188 /* main.m in Sources */, 296 | ); 297 | runOnlyForDeploymentPostprocessing = 0; 298 | }; 299 | 18BE791C1A8C516E00FC0188 /* Sources */ = { 300 | isa = PBXSourcesBuildPhase; 301 | buildActionMask = 2147483647; 302 | files = ( 303 | 18BE792E1A8C516E00FC0188 /* YiLotteryDemoTests.m in Sources */, 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | }; 307 | /* End PBXSourcesBuildPhase section */ 308 | 309 | /* Begin PBXTargetDependency section */ 310 | 18BE79261A8C516E00FC0188 /* PBXTargetDependency */ = { 311 | isa = PBXTargetDependency; 312 | target = 18BE78FE1A8C516E00FC0188 /* YiLotteryDemo */; 313 | targetProxy = 18BE79251A8C516E00FC0188 /* PBXContainerItemProxy */; 314 | }; 315 | /* End PBXTargetDependency section */ 316 | 317 | /* Begin PBXVariantGroup section */ 318 | 18BE790B1A8C516E00FC0188 /* InfoPlist.strings */ = { 319 | isa = PBXVariantGroup; 320 | children = ( 321 | 18BE790C1A8C516E00FC0188 /* en */, 322 | ); 323 | name = InfoPlist.strings; 324 | sourceTree = ""; 325 | }; 326 | 18BE79141A8C516E00FC0188 /* Main.storyboard */ = { 327 | isa = PBXVariantGroup; 328 | children = ( 329 | 18BE79151A8C516E00FC0188 /* Base */, 330 | ); 331 | name = Main.storyboard; 332 | sourceTree = ""; 333 | }; 334 | 18BE792A1A8C516E00FC0188 /* InfoPlist.strings */ = { 335 | isa = PBXVariantGroup; 336 | children = ( 337 | 18BE792B1A8C516E00FC0188 /* en */, 338 | ); 339 | name = InfoPlist.strings; 340 | sourceTree = ""; 341 | }; 342 | /* End PBXVariantGroup section */ 343 | 344 | /* Begin XCBuildConfiguration section */ 345 | 18BE792F1A8C516E00FC0188 /* Debug */ = { 346 | isa = XCBuildConfiguration; 347 | buildSettings = { 348 | ALWAYS_SEARCH_USER_PATHS = NO; 349 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 350 | CLANG_CXX_LIBRARY = "libc++"; 351 | CLANG_ENABLE_MODULES = YES; 352 | CLANG_ENABLE_OBJC_ARC = YES; 353 | CLANG_WARN_BOOL_CONVERSION = YES; 354 | CLANG_WARN_CONSTANT_CONVERSION = YES; 355 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 356 | CLANG_WARN_EMPTY_BODY = YES; 357 | CLANG_WARN_ENUM_CONVERSION = YES; 358 | CLANG_WARN_INT_CONVERSION = YES; 359 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 361 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 362 | COPY_PHASE_STRIP = NO; 363 | GCC_C_LANGUAGE_STANDARD = gnu99; 364 | GCC_DYNAMIC_NO_PIC = NO; 365 | GCC_OPTIMIZATION_LEVEL = 0; 366 | GCC_PREPROCESSOR_DEFINITIONS = ( 367 | "DEBUG=1", 368 | "$(inherited)", 369 | ); 370 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 371 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 372 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 373 | GCC_WARN_UNDECLARED_SELECTOR = YES; 374 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 375 | GCC_WARN_UNUSED_FUNCTION = YES; 376 | GCC_WARN_UNUSED_VARIABLE = YES; 377 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 378 | ONLY_ACTIVE_ARCH = YES; 379 | SDKROOT = iphoneos; 380 | }; 381 | name = Debug; 382 | }; 383 | 18BE79301A8C516E00FC0188 /* Release */ = { 384 | isa = XCBuildConfiguration; 385 | buildSettings = { 386 | ALWAYS_SEARCH_USER_PATHS = NO; 387 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 388 | CLANG_CXX_LIBRARY = "libc++"; 389 | CLANG_ENABLE_MODULES = YES; 390 | CLANG_ENABLE_OBJC_ARC = YES; 391 | CLANG_WARN_BOOL_CONVERSION = YES; 392 | CLANG_WARN_CONSTANT_CONVERSION = YES; 393 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 394 | CLANG_WARN_EMPTY_BODY = YES; 395 | CLANG_WARN_ENUM_CONVERSION = YES; 396 | CLANG_WARN_INT_CONVERSION = YES; 397 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 398 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 399 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 400 | COPY_PHASE_STRIP = YES; 401 | ENABLE_NS_ASSERTIONS = NO; 402 | GCC_C_LANGUAGE_STANDARD = gnu99; 403 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 404 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 405 | GCC_WARN_UNDECLARED_SELECTOR = YES; 406 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 407 | GCC_WARN_UNUSED_FUNCTION = YES; 408 | GCC_WARN_UNUSED_VARIABLE = YES; 409 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 410 | SDKROOT = iphoneos; 411 | VALIDATE_PRODUCT = YES; 412 | }; 413 | name = Release; 414 | }; 415 | 18BE79321A8C516E00FC0188 /* Debug */ = { 416 | isa = XCBuildConfiguration; 417 | buildSettings = { 418 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 419 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 420 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 421 | GCC_PREFIX_HEADER = "YiLotteryDemo/YiLotteryDemo-Prefix.pch"; 422 | INFOPLIST_FILE = "YiLotteryDemo/YiLotteryDemo-Info.plist"; 423 | PRODUCT_NAME = "$(TARGET_NAME)"; 424 | WRAPPER_EXTENSION = app; 425 | }; 426 | name = Debug; 427 | }; 428 | 18BE79331A8C516E00FC0188 /* Release */ = { 429 | isa = XCBuildConfiguration; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 433 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 434 | GCC_PREFIX_HEADER = "YiLotteryDemo/YiLotteryDemo-Prefix.pch"; 435 | INFOPLIST_FILE = "YiLotteryDemo/YiLotteryDemo-Info.plist"; 436 | PRODUCT_NAME = "$(TARGET_NAME)"; 437 | WRAPPER_EXTENSION = app; 438 | }; 439 | name = Release; 440 | }; 441 | 18BE79351A8C516E00FC0188 /* Debug */ = { 442 | isa = XCBuildConfiguration; 443 | buildSettings = { 444 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/YiLotteryDemo.app/YiLotteryDemo"; 445 | FRAMEWORK_SEARCH_PATHS = ( 446 | "$(SDKROOT)/Developer/Library/Frameworks", 447 | "$(inherited)", 448 | "$(DEVELOPER_FRAMEWORKS_DIR)", 449 | ); 450 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 451 | GCC_PREFIX_HEADER = "YiLotteryDemo/YiLotteryDemo-Prefix.pch"; 452 | GCC_PREPROCESSOR_DEFINITIONS = ( 453 | "DEBUG=1", 454 | "$(inherited)", 455 | ); 456 | INFOPLIST_FILE = "YiLotteryDemoTests/YiLotteryDemoTests-Info.plist"; 457 | PRODUCT_NAME = "$(TARGET_NAME)"; 458 | TEST_HOST = "$(BUNDLE_LOADER)"; 459 | WRAPPER_EXTENSION = xctest; 460 | }; 461 | name = Debug; 462 | }; 463 | 18BE79361A8C516E00FC0188 /* Release */ = { 464 | isa = XCBuildConfiguration; 465 | buildSettings = { 466 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/YiLotteryDemo.app/YiLotteryDemo"; 467 | FRAMEWORK_SEARCH_PATHS = ( 468 | "$(SDKROOT)/Developer/Library/Frameworks", 469 | "$(inherited)", 470 | "$(DEVELOPER_FRAMEWORKS_DIR)", 471 | ); 472 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 473 | GCC_PREFIX_HEADER = "YiLotteryDemo/YiLotteryDemo-Prefix.pch"; 474 | INFOPLIST_FILE = "YiLotteryDemoTests/YiLotteryDemoTests-Info.plist"; 475 | PRODUCT_NAME = "$(TARGET_NAME)"; 476 | TEST_HOST = "$(BUNDLE_LOADER)"; 477 | WRAPPER_EXTENSION = xctest; 478 | }; 479 | name = Release; 480 | }; 481 | /* End XCBuildConfiguration section */ 482 | 483 | /* Begin XCConfigurationList section */ 484 | 18BE78FA1A8C516E00FC0188 /* Build configuration list for PBXProject "YiLotteryDemo" */ = { 485 | isa = XCConfigurationList; 486 | buildConfigurations = ( 487 | 18BE792F1A8C516E00FC0188 /* Debug */, 488 | 18BE79301A8C516E00FC0188 /* Release */, 489 | ); 490 | defaultConfigurationIsVisible = 0; 491 | defaultConfigurationName = Release; 492 | }; 493 | 18BE79311A8C516E00FC0188 /* Build configuration list for PBXNativeTarget "YiLotteryDemo" */ = { 494 | isa = XCConfigurationList; 495 | buildConfigurations = ( 496 | 18BE79321A8C516E00FC0188 /* Debug */, 497 | 18BE79331A8C516E00FC0188 /* Release */, 498 | ); 499 | defaultConfigurationIsVisible = 0; 500 | defaultConfigurationName = Release; 501 | }; 502 | 18BE79341A8C516E00FC0188 /* Build configuration list for PBXNativeTarget "YiLotteryDemoTests" */ = { 503 | isa = XCConfigurationList; 504 | buildConfigurations = ( 505 | 18BE79351A8C516E00FC0188 /* Debug */, 506 | 18BE79361A8C516E00FC0188 /* Release */, 507 | ); 508 | defaultConfigurationIsVisible = 0; 509 | defaultConfigurationName = Release; 510 | }; 511 | /* End XCConfigurationList section */ 512 | }; 513 | rootObject = 18BE78F71A8C516E00FC0188 /* Project object */; 514 | } 515 | --------------------------------------------------------------------------------