2015年11月26日

产生随机数

摘要: 利用arc4random_uniform()产生随机数Objective-C 中有个arc4random()函数用来生成随机数且不需要种子,但是这个函数生成的随机数范围比较大,需要用取模的算法对随机值进行限制,有点麻烦。其实Objective-C有个更方便的随机数函数arc4random_unifo... 阅读全文

posted @ 2015-11-26 14:10 Baymax01 阅读(143) 评论(0) 推荐(0) 编辑

2015年11月3日

ios 读取通讯录

摘要: 1.获取通讯录列表+(NSMutableDictionary*)getAddressPeopleArray{ BOOL granted = [AddressEngine getAccessGranted];// NSMutableArray*addArray=[NSMutableArra... 阅读全文

posted @ 2015-11-03 09:14 Baymax01 阅读(254) 评论(0) 推荐(0) 编辑

2015年10月26日

隐藏多余的分割线

摘要: _tableView.tableFooterView = [[UIView alloc] init]; 阅读全文

posted @ 2015-10-26 16:27 Baymax01 阅读(128) 评论(0) 推荐(0) 编辑

2015年10月20日

Cell高亮时设置cell内容

摘要: 重写setHighlighted方法 阅读全文

posted @ 2015-10-20 19:11 Baymax01 阅读(144) 评论(0) 推荐(0) 编辑

2015年10月17日

iOS录音

摘要: 1.导入头文件,声明属性#import @property (nonatomic,strong) AVAudioPlayer * audioPlayerSend;@property (nonatomic,strong) AVAudioSession * audioSession;@property ... 阅读全文

posted @ 2015-10-17 11:20 Baymax01 阅读(220) 评论(0) 推荐(0) 编辑

2015年10月10日

iOS发送信息功能(生成信息内容)

摘要: //先判断是否支持信息发送+(BOOL) canSmsWithText{ BOOL isTrue = NO; NSString *model=[[NSString alloc]initWithString:[Device machineName]]; if( [model ... 阅读全文

posted @ 2015-10-10 10:19 Baymax01 阅读(246) 评论(0) 推荐(0) 编辑

2015年9月30日

iOS颜色选择器

摘要: 1.导入ANImageBitmapRep库(或者文件下的ColorPickerClasses)2.用法FColorPickerView.h//// FColorPickerView.h// Foowwphone//// Created by Jacky-MAC on 15/7/7.// Co... 阅读全文

posted @ 2015-09-30 14:57 Baymax01 阅读(750) 评论(0) 推荐(0) 编辑

2015年9月29日

iOS缓存

摘要: 1.SDImageCache缓存@property (nonatomic,strong)SDImageCache * houseImageCache;[_houseImageCache storeImage:imgBig imageData:imgBigData forKey:imagePathBi... 阅读全文

posted @ 2015-09-29 16:02 Baymax01 阅读(119) 评论(0) 推荐(0) 编辑

2015年9月25日

二维码扫描

摘要: 1.制作扫描框#define ScannerHeight 200#define ScannerWidth 200#define SCREENWIDTH [UIScreen mainScreen].bounds.size.width#de... 阅读全文

posted @ 2015-09-25 15:03 Baymax01 阅读(189) 评论(0) 推荐(0) 编辑

2015年9月23日

梵讯笔记

摘要: 1.iOS9新特性:Bitcode 当运行之前的项目报错时,我们可以在”Build Settings”->”Enable Bitcode”中设置属性为NO 2.获取设备名字 [Device machineName] 3.获取沙盒Documents路径 NSArray *paths = NSSearc 阅读全文

posted @ 2015-09-23 16:31 Baymax01 阅读(231) 评论(0) 推荐(0) 编辑

导航