- 博客(7)
- 收藏
- 关注
原创 this class is not key value coding-compliant for the key xx
这种情况有5种:1,加载自定义的tableViewCell的时候总是死在: XInstrumentOpenCell *cell = [tableViewdequeueReusableCellWithIdentifier:CellTableIdentifier];log里面报错:this class is not key value codi
2015-05-21 11:40:16
1713
原创 NSString转换为UIImageView类型
//就是获取沙盒文件夹里的图片的路径(想当于把NSString转换为UIImageView类型吧!!!!!!!) NSString* path =_cyModel.modelImgUrl; NSArray * paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDo
2015-05-04 11:24:34
386
原创 获取外设蓝牙设别的MAC地址
1,先导入BLE包2,导入头文件 #import"KRBeaconFinder.h"3,定义CBPeripheral *mPeripheral;4,蓝牙地址:NSString* path = mPeripheral.identifier.UUIDString;注意:你得必须有BLE这个包和KRBeaconFinder头文件才行,至于其他的方法我也无能为力了。
2015-04-30 11:30:55
3091
原创 UIAlertController
注意:我这里的仅仅限于OC,不适用与SWIFT1首先创建UIAlertController,这里的UIAlertControllerStyleActionSheet是从底部弹出来的效果样式 UIAlertController* alertController = [UIAlertControlleralertControllerWithTitle:@"please sel
2015-04-28 12:00:52
375
原创 蓝牙协议
1 首先我带入了BLE包,实现蓝牙协议2 扫描周围的蓝牙设备 self.beaconFinder = [KRBeaconFindersharedFinder]; __weak typeof(self) weakSelf =self; [_beaconFindersetBleScanningEnumerator:^(CBPer
2015-04-24 14:29:13
707
转载 初了解BLE
建立中心角色—扫描外设(discover)—连接外设(connect)—扫描外设中的服务和特征(discover)—与外设做数据交互(explore and interact)—断开连接(disconnect)。首先在我自己类的头文件中要包含CoreBluetooth的头文件,并继承两个协议
2015-04-22 14:47:48
294
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人