iOS开发小点之启动广告界面
来源:互联网 发布:mac可以玩守望先锋吗 编辑:程序博客网 时间:2024/05/18 04:25
1.若是想让程序延迟几秒,完全展示程序启动界面可以这样做
- (BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions{ //延迟3秒 [NSThread sleepForTimeInterval:3];}
2.很多APP启动的时候,需要动态的更换启动页面
ADView 设为全局变量
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self.window makeKeyAndVisible]; ADView = [[NSBundle mainBundle ]loadNibNamed:@"LaunchScreen" owner:nil options:nil][0]; ADView.frame = CGRectMake(0, 0, self.window.screen.bounds.size.width, self.window.screen.bounds.size.height); [self.window addSubview:ADView]; UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)]; NSString *str = @"http://pic.nipic.com/2008-04-01/20084113367207_2.jpg"; [imageV sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@"new_feature_1"]]; [ADView addSubview:imageV]; [self.window bringSubviewToFront:ADView]; [NSTimer scheduledTimerWithTimeInterval:15 target:self selector:@selector(removeADView) userInfo:nil repeats:NO]; return YES;}#pragma mark - 移除广告View-(void)removeADView { [ADView removeFromSuperview]; }
0 0
- iOS开发小点之启动广告界面
- IOS之启动界面
- iOS开发 动态加载广告界面
- iOS开发小点之--使用Keychain保存用户名密码
- 标签:ios开发 界面启动
- iOS移动开发启动图广告植入
- iOS开发——启动广告页
- IOS使用Launch Screen.storyboard制作广告启动界面
- iOS开发之iAd苹果广告
- IOS开发之登录界面
- IOS界面开发之UIView
- IOS界面开发之UILabel
- IOS界面开发之UIImageView
- IOS界面开发之UIButton
- iOS开发之界面间传值
- iOS 启动页广告
- iOS App启动广告
- iOS广告启动页
- PendingIntent和Intent
- codeforces 671B
- Codeforces Round #197 (Div. 2) D. Xenia and Bit Operations(线段树)
- Ajax跨域请求——jsonp技术
- 96.苹果企业证书过期与Appstore证书与描述文件过期解决方案-描述文件过期的方案
- iOS开发小点之启动广告界面
- git 命令
- 素数筛模板
- 【Codeforces Round 362 (Div 2)A】【简单讨论】Pineapple Incident
- 蘑菇街TeamTalk源码流程思维导图
- org.hibernate.InvalidMappingException: Unable to read XML 错误分析
- nyoj513 A+B Problem IV
- 一种CoverFlow风格相册的Android实现
- char,short ,int ,long,long long,unsigned long long数据范围