摘要: - (UIViewController *)topViewController { UIViewController *resultVC; resultVC = [self _topViewController:[[UIApplication sharedApplication].keyWindow rootViewController]]; while (resultV... 阅读全文
posted @ 2017-09-13 17:35 Mr.pengge 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 4.1连接蓝牙设备发送数据,蓝牙设备收不到,具体原因是不清楚需要连接的硬件具体的服务以及服务对应的特征; 4.2 发送数据是需要发送先把当前的16进制数据转byte,然后转NSData类型数据; 4.2.1 获取到门锁上15位ID号,15位ID字符转16进制数据: - (NSString *)hex 阅读全文
posted @ 2017-09-13 17:33 Mr.pengge 阅读(383) 评论(0) 推荐(0) 编辑
摘要: There are two kinds of object copying: shallow copies and deep copies. The normal copy is a shallow copy that produces a new collection that shares ow 阅读全文
posted @ 2017-09-13 17:20 Mr.pengge 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 由于NSUserDefaults存储类型有限(NSNumber(NSInteger、float、double),NSString,NSDate,NSArray,NSDictionary,BOOL.),不支持直接存储对象,如果想要存储自定义对象,需要先转成NSData再存储。 首先在自定义的实体对象里 阅读全文
posted @ 2017-09-13 17:06 Mr.pengge 阅读(594) 评论(0) 推荐(0) 编辑