摘要: 在viewDidLoad中加入self.automaticallyAdjustsScrollViewInsets = NO; 阅读全文
posted @ 2015-03-13 14:57 墨_守 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 如今iOS8下,使用Storyboards开发十分方便,搭配上Size Class后,并且适配更加便捷。但是突然由代码写界面或者xib转向故事板,难免有一些疑惑。由于故事板下,基本使用连续来跳转页面,但有些情况下总会用到代码控制页面跳转,这个时候传统的初始化ViewController后push过去... 阅读全文
posted @ 2015-01-07 22:53 墨_守 阅读(929) 评论(0) 推荐(0) 编辑
摘要: 在解析JSON时候,很多人会将解析后的数据赋给NSDictionary,通过key值取到相应的value。有时候我们会对数据进行增删。面对要删除某一个key下的数据,第一反应是使用可变字典,将解析后的数据赋给其,但在使用过程中发现,执行removeObjectForKey方法后,程序不断崩溃。但在正... 阅读全文
posted @ 2015-01-03 10:57 墨_守 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Cell分割线取消右移状态[tableView setSeparatorInset:UIEdgeInsetsMake(0,0,0,0)];隐藏多余的Cell分割线self.tableView.tableFooterView = [[UIView alloc] init]; 阅读全文
posted @ 2014-12-27 21:47 墨_守 阅读(102) 评论(0) 推荐(0) 编辑
摘要: iOS 时区:1 //先是将指定时区的日期转换为当前时区时间: 2 NSDateFormatter *formatter = [[NSDateFormatter alloc] init];3 [formatter setDateFormat:@"yyyy-MM-dd HH:mm:... 阅读全文
posted @ 2014-12-10 23:54 墨_守 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 使用终端,cd到项目下find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.h" -or -name "*.rss" ")" -print | xargs wc -l 阅读全文
posted @ 2014-11-18 11:13 墨_守 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1 - (UIImage *)addImage:(UIImage *)image1 withImage:(UIImage *)image2 rect1:(CGRect)rect1 rect2:(CGRect)rect2 { 2 CGSize size = CGSizeMake(rect1.... 阅读全文
posted @ 2014-10-19 17:09 墨_守 阅读(133) 评论(0) 推荐(0) 编辑
摘要: cell 滑动效果 阅读全文
posted @ 2014-05-14 11:19 墨_守 阅读(97) 评论(0) 推荐(0) 编辑
摘要: xib中添加辅助线com+shift+ |com+shift+ - 阅读全文
posted @ 2014-05-13 16:52 墨_守 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1用命令行(Terminal)下的svn命令svn addlibzbar.asvn commit -m "add static liblibzbar.a"2用第三方svn工具,别用Xcode自带的,比如CornerStone, Versions等(第三方工具需要进行设置后,才能提交.a文件) 阅读全文
posted @ 2014-04-29 19:26 墨_守 阅读(335) 评论(0) 推荐(0) 编辑