iOS
缘来是马大哈
这个作者很懒,什么都没留下…
展开
-
导航控制器Navigation
1、控制器的初始化,为控制器添加导航控制器 ViewController *rootViewController = [[ViewControlleralloc]init]; UINavigationController *navigation = [[UINavigationControlleralloc]initWithRootViewController:rootView原创 2015-10-30 16:28:14 · 367 阅读 · 0 评论 -
Objective-C中的@property和@synthesize用法
@代表“Objective-C”的标志,证明您正在使用Objective-C语言 Objective-C语言关键词,@property与@synthesize配对使用。 功能:让编译好器自动编写一个与数据成员同名的方法声明来省去读写方法的声明。 如:1、在头文件中:C代码 @property int coun转载 2015-10-31 08:44:35 · 267 阅读 · 0 评论 -
利用后台播放音乐来长时间后台工作
第一步:开启后台任务,让程序在后台运行- (void)applicationDidEnterBackground:(UIApplication *)application{ //让应用在后台运行 [application beginBackgroundTaskWithExpirationHandler:nil];}第二步:在Su转载 2015-10-30 16:40:00 · 692 阅读 · 0 评论