cityingMa

2016年11月2日

textField和textView限制输入条件

摘要: textField和textView限制输入条件 阅读全文

posted @ 2016-11-02 18:08 cityingMa 阅读(428) 评论(0) 推荐(0) 编辑

2016年9月21日

FMDB的使用

摘要: FMDB的使用 一:了解FMDB的三个重要类 1.1 FMDataBase:提供SQLite数据库的类,用来执行SQL语句 1.2 FMResultSet: 用在FMDatabase中执行查询结果的类 1.3 FMDatabaseQueue:在多线程下查询和更新数据库用到的类 二:使用FMDB 2. 阅读全文

posted @ 2016-09-21 16:51 cityingMa 阅读(256) 评论(0) 推荐(0) 编辑

2016年8月22日

Xcode7以后 使用空模板

摘要: Xcode7以后的版本没有空模板可以选择 习惯使用空模版的 可以自己拷贝空模版文件夹 放到模版的位置 重启就可以使用了 1:首先 需要有一个空模版 没有空模板的可以在下面路径下下载一个 并解压 http://pan.baidu.com/s/1slVGSeL 进入该路径 选择下载 2:按以下步骤 进入 阅读全文

posted @ 2016-08-22 10:57 cityingMa 阅读(227) 评论(1) 推荐(0) 编辑

2016年6月14日

MJPhotoBrowser BUG修复

摘要: 崩溃在loading.progress = (float)receivedSize/expectedSize; 分析:MJPhotoView 执行了hide移除了MJPhotoLoadingView,然而SDWebimage 仍然执行了下载进度的设置。 解决方法:写个bool值,当执行hide方法的 阅读全文

posted @ 2016-06-14 12:06 cityingMa 阅读(250) 评论(0) 推荐(0) 编辑

2016年5月4日

获得通讯录的访问权

摘要: 1 ABAddressBookRef abRef = ABAddressBookCreateWithOptions(NULL, NULL); 2 if (ABAddressBookGetAuthorizationStatus() == kABAuthorizationStatusNotDetermined) { 3 ABAddres... 阅读全文

posted @ 2016-05-04 12:19 cityingMa 阅读(326) 评论(0) 推荐(0) 编辑

2016年5月3日

正则运算校验手机号码

摘要: 1 //校验手机号码 2 - (BOOL)checkTel:(NSString *)str{ 3 if ([str length] == 0||self.phoneNumberTf.text.length != 11) 4 { 5 return NO; 6 } 7 NSString *regex = @"1[3-8][0-9]{9... 阅读全文

posted @ 2016-05-03 17:37 cityingMa 阅读(383) 评论(0) 推荐(0) 编辑

项目中生产模式和开发模式的切换

摘要: 1 #ifndef NetMacro_h 2 #define NetMacro_h 3 4 5 #define TEST_ENVIRONMENT // 当前为开发模式,若注释到这行代码即为生产模式 6 7 #ifndef TEST_ENVIRONMENT 8 // 这里写开发模式下需要用到的URL 9 // 如: 10 #define HTTP_PORTAL @"10.... 阅读全文

posted @ 2016-05-03 12:34 cityingMa 阅读(631) 评论(0) 推荐(0) 编辑

2016年4月14日

自定义的进度条

摘要: /** 初始化一个progress, aFrame 外层的大小 aFrameColor 外层的颜色 aBarColor 里层的颜色 gapSize 里层和外层的间隙 **/ - (id)initWithFrame:(CGRect)aFrame frameColor:... 阅读全文

posted @ 2016-04-14 12:00 cityingMa 阅读(382) 评论(2) 推荐(0) 编辑

2016年2月22日

用数组取到当前栈内的ViewController 并根据下标取某个ViewController

摘要: NSArray *navArray = self.navigationController.viewControllers; TabsViewController *tabsVC = [[TabsViewController alloc]init]; tabsVC = [navArray objec 阅读全文

posted @ 2016-02-22 10:53 cityingMa 阅读(529) 评论(0) 推荐(0) 编辑

2016年2月18日

下拉tableView实现类似微信中带图的灰色背景

摘要: UIView *topView = [[UIView alloc]initWithFrame:CGRectMake(0, -480, ScreenWidth, 480)]; UIImageView *iconImage = [[UIImageView alloc]initWithFrame:CGRe 阅读全文

posted @ 2016-02-18 16:21 cityingMa 阅读(1148) 评论(2) 推荐(0) 编辑

导航