摘要: #import -(void)checkDeviceLockScreenState { int notify_token; notify_register_dispatch("com.apple.springboard.lockstate", &notify_token,dispatch_get_main_queue(), ^(int token) { ... 阅读全文
posted @ 2017-02-20 13:59 曹县三胖暴打大猩猩 阅读(1607) 评论(0) 推荐(0) 编辑
摘要: #import @interface TestCell : UITableViewCell @property(nonatomic,copy)NSString *content; /** * 标记行是否被选中 */ @property(nonatomic,assign)BOOL isChecked; @end #import "TestCell.h" @interface TestCe... 阅读全文
posted @ 2016-08-26 17:12 曹县三胖暴打大猩猩 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 1:自定义Cell中的代码 #import <UIKit/UIKit.h> @interface TestCell : UITableViewCell @property(nonatomic,copy)NSString *content; /** * 标记行是否被选中 */ @property(no 阅读全文
posted @ 2016-08-26 16:32 曹县三胖暴打大猩猩 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 效果图: 参考案例: http://www.lcode.org/%E3%80%90react-native%E5%BC%80%E5%8F%91%E3%80%91react-native%E6%8E%A7%E4%BB%B6%E4%B9%8Bnavigator%E7%BB%84%E4%BB%B6%E8% 阅读全文
posted @ 2016-08-15 16:43 曹县三胖暴打大猩猩 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 效果演示图: 参考案例http://www.lcode.org/%E3%80%90react-native%E5%BC%80%E5%8F%91%E3%80%91react-native%E6%8E%A7%E4%BB%B6%E4%B9%8Brefreshcontrol%E7%BB%84%E4%BB%B 阅读全文
posted @ 2016-08-15 12:00 曹县三胖暴打大猩猩 阅读(3927) 评论(0) 推荐(0) 编辑
摘要: //单例方法1 class SingleTonOne{ static var sharedInstanceOne:SingleTonOne{ struct SingleTonStruct { static var onceToken:dispatch_once_t = 0 static var staticInstanceOne:SingleTonOne? ... 阅读全文
posted @ 2016-04-18 15:14 曹县三胖暴打大猩猩 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 1:它引入了一种新的概念,抛弃传统意义上我们适配时所谓的具体宽高尺寸,把屏幕的宽和高分别分成两种情况:Compact-紧凑, Regular-正常(Any-任意,其实就是这2种的组合,所以我没分成3种情况).搭配起来是3*3,也就是无论如何变化,加起来也就9种。 2: iPhone4S,iPhone 阅读全文
posted @ 2016-03-31 10:35 曹县三胖暴打大猩猩 阅读(458) 评论(0) 推荐(0) 编辑
摘要: __block int timeout = 60; dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0); dispatch_source_t source_t = dispatch_source_create(DISPATCH_SOURCE_... 阅读全文
posted @ 2016-03-22 11:23 曹县三胖暴打大猩猩 阅读(226) 评论(0) 推荐(0) 编辑
摘要: @interface ViewController (){ NSLayoutConstraint *yellowViewTopConstraint; NSLayoutConstraint *blueViewLeadConstraint; }@end@implementation Vie... 阅读全文
posted @ 2016-01-20 16:52 曹县三胖暴打大猩猩 阅读(2930) 评论(0) 推荐(1) 编辑
摘要: 模拟器实现3dtouch参考以下网站:http://my.oschina.net/u/2340880/blog/511509- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictio... 阅读全文
posted @ 2015-11-24 17:43 曹县三胖暴打大猩猩 阅读(351) 评论(0) 推荐(0) 编辑