摘要: 求数组中的最大值 int main(int argc, const char * argv[]) { int nums [5] = {-3,-4,-5,-6,-7}; int length = sizeof(nums) / sizeof(nums[0]); int max = arrayMax(nu 阅读全文
posted @ 2016-07-29 13:55 偷吃的喵 阅读(132) 评论(0) 推荐(0) 编辑
摘要: C语言补充 2016年6月28日 星期二17:39 ++temp 就等于 先+1 在用 tem++ 就等于 先用一次temp 然后在+1 加加在前边是先加再用, 加加在后边是先用,再加 Continue 跳过本次循环 继续下次循环 (只能在循环中使用) 类型说明符 Char 类型的值,(在c语言中c 阅读全文
posted @ 2016-07-29 13:48 偷吃的喵 阅读(236) 评论(0) 推荐(0) 编辑
摘要: UitableView 一般的情况都是在 (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [t 阅读全文
posted @ 2016-06-03 18:16 偷吃的喵 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 懒加载是用到的时候再去加载比如 -(UITableView *)tableview{ if (!_tableview) { _tableview = [[UITableView alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.table 阅读全文
posted @ 2016-06-03 18:11 偷吃的喵 阅读(117) 评论(0) 推荐(0) 编辑
摘要: <!--StartFragment-->Isequal 是判断对象相等 <!--EndFragment--> <!--StartFragment--> 返回一个bool值判断两个对象是否相等 IsequalToString 返回一个bool值判断给出的字符串是否与已有的Unicode字符相同 <!- 阅读全文
posted @ 2016-05-20 10:07 偷吃的喵 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1.手机端向蓝牙设备发送写入数据后会有一个回调方法 //写入数据后的回调 - (void)peripheral:(CBPeripheral *)peripheral didWriteValueForCharacteristic:(CBCharacteristic *) characteristic 阅读全文
posted @ 2016-05-17 22:09 偷吃的喵 阅读(9449) 评论(0) 推荐(0) 编辑
摘要: 关于IOS客户端向蓝牙设备发送数据的坑,近几天本小白在做公司一个项目是关于蓝牙的。卡到了客户端向蓝牙设备发送十六进制数据这里,先说一下向蓝牙发送数据的时候遇到的问题。 1.向蓝牙的哪个特征发送数据 2.数据转换的问题 3.蓝牙设备发送数据后的回调 1.向蓝牙的哪个特征发送数据 我们在向蓝牙设备发送数 阅读全文
posted @ 2016-05-16 21:41 偷吃的喵 阅读(7646) 评论(0) 推荐(0) 编辑
摘要: FDrugsPath =[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0] stringByAppendingPathComponent:@"favoriteDrug.plist"] 阅读全文
posted @ 2016-04-26 23:38 偷吃的喵 阅读(113) 评论(0) 推荐(0) 编辑
摘要: <!--StartFragment--> IOS 上蓝牙协议只支持4.0以上 如果需要调用蓝牙协议需要添加<CoreBluetooth/CoreBluetooth.h>框架 1.中心管理者 IOS中的蓝牙分为: 中心管理设计模式和外设管理设计模式 /** * 中心管理者 */ @property(n 阅读全文
posted @ 2016-04-22 14:14 偷吃的喵 阅读(524) 评论(0) 推荐(0) 编辑