摘要:
#import -(void)checkDeviceLockScreenState { int notify_token; notify_register_dispatch("com.apple.springboard.lockstate", ¬ify_token,dispatch_get_main_queue(), ^(int token) { ... 阅读全文
摘要:
#import @interface TestCell : UITableViewCell @property(nonatomic,copy)NSString *content; /** * 标记行是否被选中 */ @property(nonatomic,assign)BOOL isChecked; @end #import "TestCell.h" @interface TestCe... 阅读全文
摘要:
1:自定义Cell中的代码 #import <UIKit/UIKit.h> @interface TestCell : UITableViewCell @property(nonatomic,copy)NSString *content; /** * 标记行是否被选中 */ @property(no 阅读全文
摘要:
效果图: 参考案例: 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% 阅读全文
摘要:
效果演示图: 参考案例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 阅读全文
摘要:
//单例方法1 class SingleTonOne{ static var sharedInstanceOne:SingleTonOne{ struct SingleTonStruct { static var onceToken:dispatch_once_t = 0 static var staticInstanceOne:SingleTonOne? ... 阅读全文
摘要:
1:它引入了一种新的概念,抛弃传统意义上我们适配时所谓的具体宽高尺寸,把屏幕的宽和高分别分成两种情况:Compact-紧凑, Regular-正常(Any-任意,其实就是这2种的组合,所以我没分成3种情况).搭配起来是3*3,也就是无论如何变化,加起来也就9种。 2: iPhone4S,iPhone 阅读全文
摘要:
__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_... 阅读全文
摘要:
@interface ViewController (){ NSLayoutConstraint *yellowViewTopConstraint; NSLayoutConstraint *blueViewLeadConstraint; }@end@implementation Vie... 阅读全文
摘要:
模拟器实现3dtouch参考以下网站:http://my.oschina.net/u/2340880/blog/511509- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictio... 阅读全文