2017年3月7日

iOS 蓝牙获取MAC地址

摘要: 援引:http://www.jianshu.com/p/1d6a8fc8134f iOS要获取蓝牙设备的MAC地址有两种:一是硬件工程师开通的服务特征下有MAC的信息,我们就从通道中获取;二是硬件工程师在扫描中设备信息中放置MAC信息,我们从有RSSI的函数中获取 1.形如你所在其他网站上看到的在某 阅读全文

posted @ 2017-03-07 11:35 高彰 阅读(3423) 评论(0) 推荐(0)

2017年2月28日

Mac mac MAC 以太网失效,连接了网络 打不开网页 上不了网。

摘要: 援引:http://www.cnbeta.com/articles/tech/479465.htm 阅读全文

posted @ 2017-02-28 10:34 高彰 阅读(513) 评论(0) 推荐(0)

2017年2月27日

[Graphics] UIColor created with component values far outside the expected range, Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.

摘要: 用了别人的代码,一直总有一个报错,一开始没注意,最近项目快完期了,得处理下警告之类的东西, 后面发现之前那个大神代码是这样写的 援引:http://www.cnblogs.com/songxing10000/p/6297542.html 阅读全文

posted @ 2017-02-27 11:41 高彰 阅读(804) 评论(0) 推荐(0)

2017年2月21日

iOS macOS背景色 圆切角 边框色

摘要: UIColor *color1=[UIColor colorWithRed:155/255 green:255/255 blue:255/255 alpha:1];//方法1,使用 静态方法创建color _view1.backgroundColor=color1; UIColor *color2= 阅读全文

posted @ 2017-02-21 16:03 高彰 阅读(355) 评论(0) 推荐(0)

2017年1月17日

has no restore identifier but the delegate implements the centralManager:willRestoreState: method. Restoring will not be supported

摘要: http://stackoverflow.com/questions/20956880/corebluetoothwarning-has-no-restore-identifier-but-the-delegate-implements 就是说:要么删掉。 要么保留。 阅读全文

posted @ 2017-01-17 16:48 高彰 阅读(1193) 评论(0) 推荐(0)

五.oc文件操作

摘要: 1. NSFileManager的使用 文件和文件夹的创建、删除、改变、遍历,读取等操作 2. NSFileHandle的使用 3. 如何获取沙盒路径 4. NSURL的使用 5. NSBundle的使用 1. NSFileManager的使用:文件和文件夹的创建、删除、改变、遍历,读取等操作 题目 阅读全文

posted @ 2017-01-17 11:21 高彰 阅读(295) 评论(0) 推荐(1)

2017年1月11日

iOS数据类型转换

摘要: iOS中,将NSData转NSString的一般方法为[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];但是当data中包含00时,所获得的新字符就会为nil,这时我们应该这样转 [NSString stringWi 阅读全文

posted @ 2017-01-11 15:12 高彰 阅读(572) 评论(0) 推荐(0)

2016年12月20日

十六进制高低位分离转换拆分

摘要: http://www.cocoachina.com/bbs/read.php?tid=1706049同行解答。 十六进制高低位分离转换拆分 以2016为例:2016(十进制)->0x7E0(十六进制),按照硬件方面要求拆分成0x07,0xE0。 阅读全文

posted @ 2016-12-20 19:13 高彰 阅读(9394) 评论(0) 推荐(0)

2016年12月15日

蓝牙开发笔记

摘要: 【链接】LightBlue基础使用教程http://www.jianshu.com/p/2bfde2ba8a99 【链接】iOS蓝牙入门http://www.jianshu.com/p/ae8c44b166d7 【链接】『CoreBluetooth』1.初识http://www.saitjr.com 阅读全文

posted @ 2016-12-15 13:54 高彰 阅读(525) 评论(0) 推荐(0)

2016年12月6日

六.(二)oc分类-category(范畴、非正式协议)

摘要: 11 阅读全文

posted @ 2016-12-06 09:27 高彰 阅读(168) 评论(0) 推荐(0)

导航