摘要: // // JKStackLayout.m // CollectionViewCustomerLayout // // Created by Jack on 2017/6/26. // Copyright © 2017年 buakaw.lee.com.www. All rights reserved 阅读全文
posted @ 2017-09-04 08:59 Emerys 阅读(122) 评论(0) 推荐(0) 编辑
摘要: // // JKCoverFlowLayout.m // CollectionViewCustomerLayout // // Created by Jack on 2017/6/30. // Copyright © 2017年 buakaw.lee.com.www. All rights reserved. // #import "JKCoverFlowLayout.h" @imp... 阅读全文
posted @ 2017-09-04 08:57 Emerys 阅读(164) 评论(0) 推荐(0) 编辑
摘要: #define FileHashDefaultChunkSizeForReadingData 1024*8 +(NSString*)md5WithFile:(NSString*)path { return (__bridge_transfer NSString *)FileMD5HashCreateWithPath((__bridge CFStringRef)path, FileHash... 阅读全文
posted @ 2017-05-11 08:52 Emerys 阅读(184) 评论(0) 推荐(0) 编辑
摘要: // // JLKeyboardListener.h // Keyboard // // Created by Jack on 2017/4/11. // Copyright © 2017年 buakaw. All rights reserved. // #import @protocol JLKeyboardListenerDelegate @required - (void... 阅读全文
posted @ 2017-04-11 14:17 Emerys 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 1 - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { 2 UIView *view = [super hitTest:point withEvent:event]; 3 if (view == nil) { 4 5 for (UIView *subView i... 阅读全文
posted @ 2017-02-23 16:58 Emerys 阅读(197) 评论(0) 推荐(0) 编辑
摘要: // // JKExceptionHandler.h // JKExceptionHandler // // Created by Jack on 16/9/7. // Copyright © 2016年 mini1. All rights reserved. // #import @interface JKExceptionHandler : NSObject { BOO... 阅读全文
posted @ 2016-09-07 16:12 Emerys 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 在AppDelegate.m文件中实现函数 然后在 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 方法中调用 就可以获取应用的C 阅读全文
posted @ 2016-09-07 16:00 Emerys 阅读(891) 评论(0) 推荐(0) 编辑
摘要: 1 #import 2 3 @interface JKTimerManager : NSObject 4 5 + (instancetype)sharedTimerManager; 6 7 /** 8 * 启动一个timer,默认精度为0.1秒 9 * 10 * @param name timer的名称,作为唯一标识 11 * @par... 阅读全文
posted @ 2016-08-02 17:08 Emerys 阅读(359) 评论(0) 推荐(0) 编辑
摘要: Runtime 首先需要导入<objc/runtime.h> 一、Class 获取类的成员变量 Ivar *class_copyIvarList(Class cls,int *outCount); unsigned int count; Ivar *ivars = class_copyIvarLis 阅读全文
posted @ 2016-08-01 14:20 Emerys 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Socket 一、Server int server_fd,client_fd; // 地址蔟、socket类型、通信协议 server_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (server_fd < 0) { printf("sock 阅读全文
posted @ 2016-08-01 14:19 Emerys 阅读(141) 评论(0) 推荐(0) 编辑