步骤:1.在info.plist里加入UIBackgroundModes键,其值为数组,数组之一为voip字符串:UIBackgroundModesvoip2.在程序启动的时候调用- (void)setupBackgroundHandler函数,函数体如下:#pragma mark - VoIP- ...
分类:
移动开发 时间:
2014-09-12 11:33:43
阅读次数:
176
Core Data 类似hibernate和.net的Entity Framework, 是iOS的ORM框架Persistent Store Coordinator 作为managed object context的facade,coordinator可以关联多个数据持久层(.plist文件,do...
分类:
其他好文 时间:
2014-09-11 22:08:42
阅读次数:
187
问题描述最近苹果发布了IOS7.1。话说苹果每次发布都牵动开发者的心哈。苹果从ios7.1开始,用户安装app,需要使用https协议,来下载plist文件。也就说,在安装app的第一步,下载.plist文件,需要使用https协议。https协议如下:这里不详细描述https协议。简单描述,用户使用http..
分类:
移动开发 时间:
2014-09-10 19:44:11
阅读次数:
213
iOS7中我们通过ViewController重载方法返回枚举值的方法来控制状态栏的隐藏和样式。setStatusBarHidden在iOS7中不起作用了。
需要在Info.plist配置文件中,增加键:UIViewControllerBasedStatusBarAppearance,并设置为YES;
然后,在UIViewController子类中实现以下两个方法:
- (B...
分类:
移动开发 时间:
2014-09-10 17:46:50
阅读次数:
192
通过itunes把文件放入app的document目录反向也是可以的。仅仅需要添加plist中一项:Application supports iTunesfile sharing,value YES即可!
分类:
移动开发 时间:
2014-09-10 15:37:10
阅读次数:
202
iOS7中修改StatusBar的显示颜色效果图如下:在iOS7中想手动修改statusBar的颜色,第一步需要做的就是在plist文件中设置View controller-based status bar appearance值为NO第二步就是在代码中实现了,如下所示://// RootView....
分类:
移动开发 时间:
2014-09-09 17:59:09
阅读次数:
241
Q:In my iPhone application built with Xcode 5 for iOS 7 I set UIViewControllerBasedStatusBarAppearance=YES in info.plist, and in my ViewController I h...
分类:
移动开发 时间:
2014-09-09 17:55:59
阅读次数:
209
读取 1 // 1.读取沙盒中plist文件 2 3 // 1.1.获得沙盒根路径 4 5 NSString *home = NSHomeDirectory(); 6 7 // 1.2.拼接Documents路径 8 9 NSString *docPath ...
分类:
其他好文 时间:
2014-09-09 15:19:08
阅读次数:
172
最近做了个有关阅读的应用,使用了自定义字体,学习了一下这方面的知识。1.首先是最简单也普遍的做法,打包内置字符库文件:把字体库文件添加到工程,如font1.ttf添加到工程,然后在工程plist添加一项Fonts provided by application,这是个数组,然后添加key item1...
分类:
移动开发 时间:
2014-09-09 10:28:08
阅读次数:
359
看了http://blog.csdn.net/today520/article/details/36378805的文章,终于在真机上面测试成功。由于没有开发者账号,不能发布应用到机器上面。所以就用了网易新闻的客户端来测试首先得到bundleId。在应用的Info.plist文件中可以找到测一把,看看...
分类:
移动开发 时间:
2014-09-06 21:10:23
阅读次数:
344