2016年7月20日

摘要: //获得队列 dispatch_queue_t queue = dispatch_get_global_queue(0, 0); //创建一个定时器(dispatch_source_t本质还是一个OC对象,需要用强引用) self.timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, ... 阅读全文
posted @ 2016-07-20 15:39 骑蜗牛溜溜弯 阅读(92) 评论(0) 推荐(0) 编辑

2016年7月15日

摘要: 1. TableView不显示没内容的Cell怎么办? 类似于图1,我不想让下面的那些空显示。很简单,添加“self.tableView.tableFooterView = [[UIView alloc] init];”试过都说好,加完这句之后就变成了图2的样子。 2. 自定义了leftBarbut 阅读全文
posted @ 2016-07-15 15:51 骑蜗牛溜溜弯 阅读(165) 评论(0) 推荐(0) 编辑
摘要: http://developers.facebook.com/blog/post/532/ https://github.com/carlbrown/PDKeychainBindingsController http://www.clingmarks.com/?p=612 https://githu 阅读全文
posted @ 2016-07-15 10:40 骑蜗牛溜溜弯 阅读(503) 评论(0) 推荐(0) 编辑

2016年6月3日

摘要: 跳转系统设置相关界面的方法 跳转系统设置界面,例如提示用户打开定位、蓝牙或者WIFI,提醒用户打开推送或者位置权限等 在iOS6之后,第三方应用需要跳转系统设置界面,需要在URL type中添加一个prefs值,如下图: 跳转系统设置根目录中的项目使用下面的方法 1 _array = @[ 2 @{ 阅读全文
posted @ 2016-06-03 11:39 骑蜗牛溜溜弯 阅读(154) 评论(0) 推荐(0) 编辑

2016年5月23日

摘要: 首先要在微信开放平台申请 AppID(我第一天晚上申请的,第二天中午就通过了),接着导入 SDK,也就是3个 .h 和一个 .a 文件,详情见这里 如果你是 copy 在自建 group 里面, 1.需要在 Build Phases - Link Binary With Libraries 里面 . 阅读全文
posted @ 2016-05-23 13:48 骑蜗牛溜溜弯 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 一 . JSONModel (三方类库会有更新,建议大家在线下载) http://pan.baidu.com/s/1i5ybP1z 二.AFNetworkiong http://pan.baidu.com/s/1eSi8U0U 三.MJRefresh http://pan.baidu.com/s/1 阅读全文
posted @ 2016-05-23 11:43 骑蜗牛溜溜弯 阅读(100) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad { [super viewDidLoad]; UIImage *image = [self drawImageAtImageContext]; UIImageView *imageView = [[UIImageView alloc]initWithImage 阅读全文
posted @ 2016-05-23 11:34 骑蜗牛溜溜弯 阅读(89) 评论(0) 推荐(0) 编辑

2016年2月17日

摘要: UILocalNotification *notification=[[UILocalNotification alloc] init]; if (notification!=nil) { NSDate *now=[NSDate new]; //notification.fireDate=[now 阅读全文
posted @ 2016-02-17 11:54 骑蜗牛溜溜弯 阅读(157) 评论(0) 推荐(0) 编辑

2015年11月16日

摘要: 1、首先需要引用系统Framework – AVFoundation,然后在AppDelegate的应用启动事件里面添加以下代码:AVAudioSession *session = [AVAudioSession sharedInstance];[session setCategory:AVAudi... 阅读全文
posted @ 2015-11-16 19:06 骑蜗牛溜溜弯 阅读(503) 评论(0) 推荐(0) 编辑

2015年11月15日

摘要: 在我们开发的app中, 不可避免的, 有时候用户使用软件会崩溃. 我们就需要捕获异常, 可以在入口类中加入相应的代码, 可以在每次用户打开程序的时候, 检查一下沙盒中是否有崩溃日志, 如果有, 可以发送给服务器, 方便改进软件. - (BOOL)application:(UIApplicati... 阅读全文
posted @ 2015-11-15 21:51 骑蜗牛溜溜弯 阅读(172) 评论(0) 推荐(0) 编辑

导航