摘要: 地址:https://developer.apple.com/library/prerelease/ios/releasenotes/General/iOS80APIDiffs/index.html#//apple_ref/doc/uid/TP40014455 阅读全文
posted @ 2015-03-07 08:51 AllenChan 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 在IOS8 中 可以这样打开系统设置:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];但是在ios8 以下是不能的,会导致闪退; 阅读全文
posted @ 2015-02-28 12:48 AllenChan 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 选择一个CategoryAVAudioSessionCategoryAmbient或kAudioSessionCategory_AmbientSound——用于非以语音为主的应用,使用这个category的应用会随着静音键和屏幕关闭而静音。并且不会中止其它应用播放声音,可以和其它自带应用如iPod,... 阅读全文
posted @ 2015-02-14 15:44 AllenChan 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 一、单例是什么二、为什么要用单例三、单例怎么用 阅读全文
posted @ 2015-01-21 12:52 AllenChan 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 2015 继续努力有3种方式生成开发文档:介绍其中一种利用 appledoc 生成一、安装appledoc打开终端在命令行里面:git clone git://github.com/tomaz/appledoc.gitcd ./appledocsudo sh install-appledoc.sh安... 阅读全文
posted @ 2015-01-19 16:48 AllenChan 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 一、利用openURL(tel)特点: 直接拨打, 不弹出提示。IOS 7 不能回到应用的。IOS 8 中能回到应用本身- (void)callPhone:(NSString *)phoneNumber{//phoneNumber = "18369......"NSMutableString * s... 阅读全文
posted @ 2014-08-01 15:40 AllenChan 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 转至:http://www.sufeinet.com/thread-2488-1-1.html如何使用讯飞的语音SDK加入到你的iPhone应用中吧!1.首先请先到讯飞官方网站的开发者专区(http://open.voicecloud.cn/developer.php)。如果你还没有注册,那么需要先... 阅读全文
posted @ 2014-05-09 15:43 AllenChan 阅读(637) 评论(0) 推荐(0) 编辑
摘要: NSIndexPath*indexPath_1=[NSIndexPathindexPathForRow:1inSection:0];NSArray*indexArray=[NSArrayarrayWithObject:indexPath_1];[myTableViewreloadRowsAtIndexPaths:indexArraywithRowAnimation:UITableViewRowAnimationAutomatic]; 阅读全文
posted @ 2014-04-10 14:02 AllenChan 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 方法 1在项目的plist中 添加 2 项首先设置key:Status bar is initially hidden 为YES然后设置key:View controller-based status bar appearance 为NO方法 2 在 viewController 子类中添加 if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) { // iOS 7 [selfprefersStatusBarHidden]; [self performSelector:@sel... 阅读全文
posted @ 2014-04-08 14:30 AllenChan 阅读(283) 评论(0) 推荐(0) 编辑