Repository: LiYueChun/LYCStatusBarAlertHUD Branch: master Commit: b87a62a745cf Files: 19 Total size: 41.7 KB Directory structure: gitextract_5_kt83fp/ ├── LYCStatusBarAlertDemo/ │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj/ │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets/ │ │ └── AppIcon.appiconset/ │ │ └── Contents.json │ ├── Info.plist │ ├── LYCStatusBarAlertHUD/ │ │ ├── LYCStatusBarAlertHUD.h │ │ └── LYCStatusBarAlertHUD.m │ ├── ViewController.h │ ├── ViewController.m │ └── main.m ├── LYCStatusBarAlertDemo.xcodeproj/ │ ├── project.pbxproj │ ├── project.xcworkspace/ │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata/ │ │ │ └── LYCStatusBarAlertDemo.xccheckout │ │ └── xcuserdata/ │ │ └── qianfeng.xcuserdatad/ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata/ │ └── qianfeng.xcuserdatad/ │ └── xcschemes/ │ ├── LYCStatusBarAlertDemo.xcscheme │ └── xcschememanagement.plist └── LYCStatusBarAlertDemoTests/ ├── Info.plist └── LYCStatusBarAlertDemoTests.m ================================================ FILE CONTENTS ================================================ ================================================ FILE: LYCStatusBarAlertDemo/AppDelegate.h ================================================ // // AppDelegate.h // LYCStatusBarAlertDemo // // Created by 北京千锋互联科技有限公司 on 15-2-5. // Copyright (c) 2015年 黎跃春. All rights reserved. // #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow* window; @end ================================================ FILE: LYCStatusBarAlertDemo/AppDelegate.m ================================================ // // AppDelegate.m // LYCStatusBarAlertDemo // // Created by 北京千锋互联科技有限公司 on 15-2-5. // Copyright (c) 2015年 黎跃春. All rights reserved. // #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { // Override point for customization after application launch. return YES; } - (void)applicationWillResignActive:(UIApplication*)application { // 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. // 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. } - (void)applicationDidEnterBackground:(UIApplication*)application { // 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. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } - (void)applicationWillEnterForeground:(UIApplication*)application { // 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. } - (void)applicationDidBecomeActive:(UIApplication*)application { // 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. } - (void)applicationWillTerminate:(UIApplication*)application { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } @end ================================================ FILE: LYCStatusBarAlertDemo/Base.lproj/LaunchScreen.xib ================================================ ================================================ FILE: LYCStatusBarAlertDemo/Base.lproj/Main.storyboard ================================================ ================================================ FILE: LYCStatusBarAlertDemo/Images.xcassets/AppIcon.appiconset/Contents.json ================================================ { "images" : [ { "idiom" : "iphone", "size" : "29x29", "scale" : "2x" }, { "idiom" : "iphone", "size" : "29x29", "scale" : "3x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "2x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "3x" }, { "idiom" : "iphone", "size" : "60x60", "scale" : "2x" }, { "idiom" : "iphone", "size" : "60x60", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: LYCStatusBarAlertDemo/Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier com.1000phone.$(PRODUCT_NAME:rfc1034identifier) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType APPL CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1 LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UIRequiredDeviceCapabilities armv7 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight ================================================ FILE: LYCStatusBarAlertDemo/LYCStatusBarAlertHUD/LYCStatusBarAlertHUD.h ================================================ // // LYCStatusBarAlertHUD.h // LYCStatusBarAlertDemo // // Created by 北京千锋互联科技有限公司 on 15-2-5. // Copyright (c) 2015年 黎跃春. All rights reserved. // #import #import @class LYCStatusBarAlertHUD; @interface LYCStatusBarAlertHUD : NSObject { UIWindow* _window; UILabel* _label; UIImage* _backgroundImage; UIImageView* _backgroundImageView; NSString* _displayString; } @property (nonatomic, retain) UIWindow* window; @property (nonatomic, retain) UILabel* label; @property (nonatomic, retain) UIImage* backgroundImage; @property (nonatomic, retain) UIImageView* backgroundImageView; @property (nonatomic, copy) NSString* displayString; + (LYCStatusBarAlertHUD*)sharedInstance; - (void)showWithString:(NSString*)string; - (void)hide; @end ================================================ FILE: LYCStatusBarAlertDemo/LYCStatusBarAlertHUD/LYCStatusBarAlertHUD.m ================================================ // // LYCStatusBarAlertHUD.m // LYCStatusBarAlertDemo // // Created by 北京千锋互联科技有限公司 on 15-2-5. // Copyright (c) 2015年 黎跃春. All rights reserved. // #import "LYCStatusBarAlertHUD.h" /** * 状态栏高度 */ static const CGFloat kStatusBarHeight = 20.0; /** * 屏幕宽度 */ #define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width /** * 屏幕高度 */ #define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height static LYCStatusBarAlertHUD* instance = nil; @interface LYCStatusBarAlertHUD () - (void)setupViewsAndDatas; - (void)removeViewsAndDatas; @end @implementation LYCStatusBarAlertHUD @synthesize window = _window; @synthesize label = _label; @synthesize backgroundImage = _backgroundImage; @synthesize backgroundImageView = _backgroundImageView; @synthesize displayString = _displayString; - (void)dealloc { [self removeViewsAndDatas]; } #pragma mark - Setter & Getter - (NSString*)displayString { if (_label == nil) { NSLog(@"label == nil"); return nil; } return _label.text; } - (void)setDisplayString:(NSString*)displayString { if (![displayString isEqualToString:_displayString]) { _displayString = [displayString copy]; if (_label != nil) { _label.text = displayString; _window.windowLevel = UIWindowLevelAlert; [_window makeKeyAndVisible]; } } } - (void)setBackgroundImage:(UIImage*)backgroundImage { if (![backgroundImage isEqual:_backgroundImageView]) { _backgroundImage = backgroundImage; if (_backgroundImageView != nil) { _backgroundImageView.image = backgroundImage; } } } #pragma mark - Initialize - (id)init { self = [super init]; if (self) { [self setupViewsAndDatas]; } return self; } + (LYCStatusBarAlertHUD*)sharedInstance { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ instance = [[super allocWithZone:NULL] init]; }); return instance; } #pragma mark -Instance Methods - (void)setupViewsAndDatas { CGRect statusBarFrame = CGRectMake(0, 0, SCREEN_WIDTH, kStatusBarHeight); // windows _window = [[UIWindow alloc] initWithFrame:CGRectMake(0, -kStatusBarHeight, SCREEN_WIDTH, kStatusBarHeight)]; _window.tag = 1; _window.windowLevel = UIWindowLevelAlert; _window.backgroundColor = [UIColor blackColor]; // backgroundImage self.backgroundImage = [[UIImage imageNamed:@"statusbar_background.png"] stretchableImageWithLeftCapWidth:2 topCapHeight:0]; // backgroundImageView _backgroundImageView = [[UIImageView alloc] initWithFrame:statusBarFrame]; _backgroundImageView.image = _backgroundImage; // label _label = [[UILabel alloc] initWithFrame:statusBarFrame]; _label.textAlignment = NSTextAlignmentCenter; _label.textColor = [UIColor blackColor]; _label.backgroundColor = [UIColor clearColor]; _label.adjustsFontSizeToFitWidth = YES; _label.minimumScaleFactor = 5.0; // views struct [_window addSubview:_backgroundImageView]; [_window addSubview:_label]; [_window makeKeyAndVisible]; } - (void)removeViewsAndDatas { _window.windowLevel = UIWindowLevelNormal; self.backgroundImage = nil; self.displayString = nil; self.label = nil; self.backgroundImageView = nil; self.window = nil; } - (void)showWithString:(NSString*)string { self.displayString = string; if (_window) { _window.windowLevel = UIWindowLevelAlert; } if ((_window && _window.frame.origin.y == 0)) { //|| [string isEqualToString:_displayString]) { return; } if (!_window) { [self setupViewsAndDatas]; self.displayString = string; } [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(hide) object:nil]; // animation [UIView animateWithDuration:0.6 animations:^{ _window.frame = CGRectMake(0, 0, SCREEN_WIDTH, kStatusBarHeight); }]; } - (void)hide { [UIView animateWithDuration:0.6 animations:^{ _window.frame = CGRectMake(0, -kStatusBarHeight, SCREEN_WIDTH, kStatusBarHeight); }]; UIApplication* app = [UIApplication sharedApplication]; UIWindow* window = nil; for (UIWindow* win in app.windows) { if (win.tag == 0) { window = win; [window makeKeyAndVisible]; } } } @end ================================================ FILE: LYCStatusBarAlertDemo/ViewController.h ================================================ // // ViewController.h // LYCStatusBarAlertDemo // // Created by 北京千锋互联科技有限公司 on 15-2-5. // Copyright (c) 2015年 黎跃春. All rights reserved. // #import @interface ViewController : UIViewController @end ================================================ FILE: LYCStatusBarAlertDemo/ViewController.m ================================================ // // ViewController.m // LYCStatusBarAlertDemo // // Created by 北京千锋互联科技有限公司 on 15-2-5. // Copyright (c) 2015年 黎跃春. All rights reserved. // #import "ViewController.h" #import "LYCStatusBarAlertHUD.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [[LYCStatusBarAlertHUD sharedInstance] showWithString:@"正在载入,请稍后....."]; dispatch_queue_t queue = dispatch_queue_create("com.1000phone.liyuechun", DISPATCH_QUEUE_CONCURRENT); dispatch_async(queue, ^{ for (int i = 0; i < 10000; i++) { NSLog(@"%d", i); } dispatch_async(dispatch_get_main_queue(), ^{ [[LYCStatusBarAlertHUD sharedInstance] hide]; }); }); } - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end ================================================ FILE: LYCStatusBarAlertDemo/main.m ================================================ // // main.m // LYCStatusBarAlertDemo // // Created by qianfeng on 15-2-5. // Copyright (c) 2015年 黎跃春. All rights reserved. // #import #import "AppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } } ================================================ FILE: LYCStatusBarAlertDemo.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ BC522BEF1A834A230029795D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = BC522BEE1A834A230029795D /* main.m */; }; BC522BF21A834A230029795D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = BC522BF11A834A230029795D /* AppDelegate.m */; }; BC522BF51A834A230029795D /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BC522BF41A834A230029795D /* ViewController.m */; }; BC522BF81A834A230029795D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BC522BF61A834A230029795D /* Main.storyboard */; }; BC522BFA1A834A230029795D /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BC522BF91A834A230029795D /* Images.xcassets */; }; BC522BFD1A834A230029795D /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC522BFB1A834A230029795D /* LaunchScreen.xib */; }; BC522C091A834A230029795D /* LYCStatusBarAlertDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BC522C081A834A230029795D /* LYCStatusBarAlertDemoTests.m */; }; BC522C191A834B160029795D /* LYCStatusBarAlertHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = BC522C181A834B160029795D /* LYCStatusBarAlertHUD.m */; }; BC522C1B1A834F960029795D /* statusbar_background.png in Resources */ = {isa = PBXBuildFile; fileRef = BC522C1A1A834F960029795D /* statusbar_background.png */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ BC522C031A834A230029795D /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = BC522BE11A834A230029795D /* Project object */; proxyType = 1; remoteGlobalIDString = BC522BE81A834A230029795D; remoteInfo = LYCStatusBarAlertDemo; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ BC522BE91A834A230029795D /* LYCStatusBarAlertDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LYCStatusBarAlertDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; BC522BED1A834A230029795D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; BC522BEE1A834A230029795D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; BC522BF01A834A230029795D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; BC522BF11A834A230029795D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; BC522BF31A834A230029795D /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; BC522BF41A834A230029795D /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; BC522BF71A834A230029795D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; BC522BF91A834A230029795D /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; BC522BFC1A834A230029795D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; BC522C021A834A230029795D /* LYCStatusBarAlertDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LYCStatusBarAlertDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; BC522C071A834A230029795D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; BC522C081A834A230029795D /* LYCStatusBarAlertDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LYCStatusBarAlertDemoTests.m; sourceTree = ""; }; BC522C171A834B160029795D /* LYCStatusBarAlertHUD.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYCStatusBarAlertHUD.h; sourceTree = ""; }; BC522C181A834B160029795D /* LYCStatusBarAlertHUD.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYCStatusBarAlertHUD.m; sourceTree = ""; }; BC522C1A1A834F960029795D /* statusbar_background.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = statusbar_background.png; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ BC522BE61A834A230029795D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; BC522BFF1A834A230029795D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ BC522BE01A834A230029795D = { isa = PBXGroup; children = ( BC522BEB1A834A230029795D /* LYCStatusBarAlertDemo */, BC522C051A834A230029795D /* LYCStatusBarAlertDemoTests */, BC522BEA1A834A230029795D /* Products */, ); sourceTree = ""; }; BC522BEA1A834A230029795D /* Products */ = { isa = PBXGroup; children = ( BC522BE91A834A230029795D /* LYCStatusBarAlertDemo.app */, BC522C021A834A230029795D /* LYCStatusBarAlertDemoTests.xctest */, ); name = Products; sourceTree = ""; }; BC522BEB1A834A230029795D /* LYCStatusBarAlertDemo */ = { isa = PBXGroup; children = ( BC522C161A834B160029795D /* LYCStatusBarAlertHUD */, BC522BF01A834A230029795D /* AppDelegate.h */, BC522BF11A834A230029795D /* AppDelegate.m */, BC522BF31A834A230029795D /* ViewController.h */, BC522BF41A834A230029795D /* ViewController.m */, BC522BF61A834A230029795D /* Main.storyboard */, BC522BF91A834A230029795D /* Images.xcassets */, BC522BFB1A834A230029795D /* LaunchScreen.xib */, BC522BEC1A834A230029795D /* Supporting Files */, ); path = LYCStatusBarAlertDemo; sourceTree = ""; }; BC522BEC1A834A230029795D /* Supporting Files */ = { isa = PBXGroup; children = ( BC522BED1A834A230029795D /* Info.plist */, BC522BEE1A834A230029795D /* main.m */, ); name = "Supporting Files"; sourceTree = ""; }; BC522C051A834A230029795D /* LYCStatusBarAlertDemoTests */ = { isa = PBXGroup; children = ( BC522C081A834A230029795D /* LYCStatusBarAlertDemoTests.m */, BC522C061A834A230029795D /* Supporting Files */, ); path = LYCStatusBarAlertDemoTests; sourceTree = ""; }; BC522C061A834A230029795D /* Supporting Files */ = { isa = PBXGroup; children = ( BC522C071A834A230029795D /* Info.plist */, ); name = "Supporting Files"; sourceTree = ""; }; BC522C161A834B160029795D /* LYCStatusBarAlertHUD */ = { isa = PBXGroup; children = ( BC522C1A1A834F960029795D /* statusbar_background.png */, BC522C171A834B160029795D /* LYCStatusBarAlertHUD.h */, BC522C181A834B160029795D /* LYCStatusBarAlertHUD.m */, ); path = LYCStatusBarAlertHUD; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ BC522BE81A834A230029795D /* LYCStatusBarAlertDemo */ = { isa = PBXNativeTarget; buildConfigurationList = BC522C0C1A834A230029795D /* Build configuration list for PBXNativeTarget "LYCStatusBarAlertDemo" */; buildPhases = ( BC522BE51A834A230029795D /* Sources */, BC522BE61A834A230029795D /* Frameworks */, BC522BE71A834A230029795D /* Resources */, ); buildRules = ( ); dependencies = ( ); name = LYCStatusBarAlertDemo; productName = LYCStatusBarAlertDemo; productReference = BC522BE91A834A230029795D /* LYCStatusBarAlertDemo.app */; productType = "com.apple.product-type.application"; }; BC522C011A834A230029795D /* LYCStatusBarAlertDemoTests */ = { isa = PBXNativeTarget; buildConfigurationList = BC522C0F1A834A230029795D /* Build configuration list for PBXNativeTarget "LYCStatusBarAlertDemoTests" */; buildPhases = ( BC522BFE1A834A230029795D /* Sources */, BC522BFF1A834A230029795D /* Frameworks */, BC522C001A834A230029795D /* Resources */, ); buildRules = ( ); dependencies = ( BC522C041A834A230029795D /* PBXTargetDependency */, ); name = LYCStatusBarAlertDemoTests; productName = LYCStatusBarAlertDemoTests; productReference = BC522C021A834A230029795D /* LYCStatusBarAlertDemoTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ BC522BE11A834A230029795D /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 0610; ORGANIZATIONNAME = "黎跃春"; TargetAttributes = { BC522BE81A834A230029795D = { CreatedOnToolsVersion = 6.1.1; }; BC522C011A834A230029795D = { CreatedOnToolsVersion = 6.1.1; TestTargetID = BC522BE81A834A230029795D; }; }; }; buildConfigurationList = BC522BE41A834A230029795D /* Build configuration list for PBXProject "LYCStatusBarAlertDemo" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); mainGroup = BC522BE01A834A230029795D; productRefGroup = BC522BEA1A834A230029795D /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( BC522BE81A834A230029795D /* LYCStatusBarAlertDemo */, BC522C011A834A230029795D /* LYCStatusBarAlertDemoTests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ BC522BE71A834A230029795D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( BC522BF81A834A230029795D /* Main.storyboard in Resources */, BC522BFD1A834A230029795D /* LaunchScreen.xib in Resources */, BC522BFA1A834A230029795D /* Images.xcassets in Resources */, BC522C1B1A834F960029795D /* statusbar_background.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; BC522C001A834A230029795D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ BC522BE51A834A230029795D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( BC522BF51A834A230029795D /* ViewController.m in Sources */, BC522BF21A834A230029795D /* AppDelegate.m in Sources */, BC522BEF1A834A230029795D /* main.m in Sources */, BC522C191A834B160029795D /* LYCStatusBarAlertHUD.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; BC522BFE1A834A230029795D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( BC522C091A834A230029795D /* LYCStatusBarAlertDemoTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ BC522C041A834A230029795D /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = BC522BE81A834A230029795D /* LYCStatusBarAlertDemo */; targetProxy = BC522C031A834A230029795D /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ BC522BF61A834A230029795D /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( BC522BF71A834A230029795D /* Base */, ); name = Main.storyboard; sourceTree = ""; }; BC522BFB1A834A230029795D /* LaunchScreen.xib */ = { isa = PBXVariantGroup; children = ( BC522BFC1A834A230029795D /* Base */, ); name = LaunchScreen.xib; sourceTree = ""; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ BC522C0A1A834A230029795D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.1; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; }; name = Debug; }; BC522C0B1A834A230029795D /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = YES; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.1; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; name = Release; }; BC522C0D1A834A230029795D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = LYCStatusBarAlertDemo/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; BC522C0E1A834A230029795D /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = LYCStatusBarAlertDemo/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; BC522C101A834A230029795D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; FRAMEWORK_SEARCH_PATHS = ( "$(SDKROOT)/Developer/Library/Frameworks", "$(inherited)", ); GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); INFOPLIST_FILE = LYCStatusBarAlertDemoTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LYCStatusBarAlertDemo.app/LYCStatusBarAlertDemo"; }; name = Debug; }; BC522C111A834A230029795D /* Release */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; FRAMEWORK_SEARCH_PATHS = ( "$(SDKROOT)/Developer/Library/Frameworks", "$(inherited)", ); INFOPLIST_FILE = LYCStatusBarAlertDemoTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LYCStatusBarAlertDemo.app/LYCStatusBarAlertDemo"; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ BC522BE41A834A230029795D /* Build configuration list for PBXProject "LYCStatusBarAlertDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( BC522C0A1A834A230029795D /* Debug */, BC522C0B1A834A230029795D /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; BC522C0C1A834A230029795D /* Build configuration list for PBXNativeTarget "LYCStatusBarAlertDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( BC522C0D1A834A230029795D /* Debug */, BC522C0E1A834A230029795D /* Release */, ); defaultConfigurationIsVisible = 0; }; BC522C0F1A834A230029795D /* Build configuration list for PBXNativeTarget "LYCStatusBarAlertDemoTests" */ = { isa = XCConfigurationList; buildConfigurations = ( BC522C101A834A230029795D /* Debug */, BC522C111A834A230029795D /* Release */, ); defaultConfigurationIsVisible = 0; }; /* End XCConfigurationList section */ }; rootObject = BC522BE11A834A230029795D /* Project object */; } ================================================ FILE: LYCStatusBarAlertDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: LYCStatusBarAlertDemo.xcodeproj/project.xcworkspace/xcshareddata/LYCStatusBarAlertDemo.xccheckout ================================================ IDESourceControlProjectFavoriteDictionaryKey IDESourceControlProjectIdentifier DC9E0C90-C7C2-4ADE-9536-EC00EF96B105 IDESourceControlProjectName LYCStatusBarAlertDemo IDESourceControlProjectOriginsDictionary F429146EEA29C2CCAEF01FED9A7179EBDB07F076 https://github.com/LiYueChun/LYCStatusBarAlertHUD.git IDESourceControlProjectPath LYCStatusBarAlertDemo.xcodeproj IDESourceControlProjectRelativeInstallPathDictionary F429146EEA29C2CCAEF01FED9A7179EBDB07F076 ../.. IDESourceControlProjectURL https://github.com/LiYueChun/LYCStatusBarAlertHUD.git IDESourceControlProjectVersion 111 IDESourceControlProjectWCCIdentifier F429146EEA29C2CCAEF01FED9A7179EBDB07F076 IDESourceControlProjectWCConfigurations IDESourceControlRepositoryExtensionIdentifierKey public.vcs.git IDESourceControlWCCIdentifierKey F429146EEA29C2CCAEF01FED9A7179EBDB07F076 IDESourceControlWCCName LYCStatusBarAlertDemo ================================================ FILE: LYCStatusBarAlertDemo.xcodeproj/xcuserdata/qianfeng.xcuserdatad/xcschemes/LYCStatusBarAlertDemo.xcscheme ================================================ ================================================ FILE: LYCStatusBarAlertDemo.xcodeproj/xcuserdata/qianfeng.xcuserdatad/xcschemes/xcschememanagement.plist ================================================ SchemeUserState LYCStatusBarAlertDemo.xcscheme orderHint 0 SuppressBuildableAutocreation BC522BE81A834A230029795D primary BC522C011A834A230029795D primary ================================================ FILE: LYCStatusBarAlertDemoTests/Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier com.1000phone.$(PRODUCT_NAME:rfc1034identifier) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType BNDL CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1 ================================================ FILE: LYCStatusBarAlertDemoTests/LYCStatusBarAlertDemoTests.m ================================================ // // LYCStatusBarAlertDemoTests.m // LYCStatusBarAlertDemoTests // // Created by qianfeng on 15-2-5. // Copyright (c) 2015年 黎跃春. All rights reserved. // #import #import @interface LYCStatusBarAlertDemoTests : XCTestCase @end @implementation LYCStatusBarAlertDemoTests - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the class. [super tearDown]; } - (void)testExample { // This is an example of a functional test case. XCTAssert(YES, @"Pass"); } - (void)testPerformanceExample { // This is an example of a performance test case. [self measureBlock:^{ // Put the code you want to measure the time of here. }]; } @end