SQLite语句小结

摘要: 一、创建数据库:1、点击connection,选择SQLite2、输入“连接名”和“选择保存数据库的路径”3、选择完路径之后,双击“连接名”,出来main(如图)4、右击main,选择New Query...,(打开一个新窗口)5、SQ语句:PS:先明白几个名词概念:a、表名:t_people(格式... 阅读全文
posted @ 2015-11-29 23:43 森code 阅读(518) 评论(0) 推荐(0) 编辑

面试题

摘要: 1. 什么是arc?(arc是为了解决什么问题诞生的?)2. 请解释以下keywords的区别: assign vs weak, __block vs __weak3. __block在arc和非arc下含义一样吗?4. 使用atomic一定是线程安全的吗?5. 描述一个你遇到过的retain cy... 阅读全文
posted @ 2015-11-27 13:10 森code 阅读(168) 评论(0) 推荐(0) 编辑

UITableView的plain和group

摘要: 1、这是两种style。不管选择哪一种,都可以返回多组,多行。 阅读全文
posted @ 2015-11-27 00:41 森code 阅读(229) 评论(0) 推荐(0) 编辑

运行时探究

摘要: http://toutiao.com/a6221023277097713921/ 阅读全文
posted @ 2015-11-26 18:20 森code 阅读(87) 评论(0) 推荐(0) 编辑

加载更多时,判断tableView快要滑动到底部的时候在去请求更多数据的公式

摘要: - (void)scrollViewDidScroll:(UIScrollView *)scrollView{ /* // 判断是否需要加载更多 // 判断等于0可以防止没有数据就显示加载更多控件 // 判断底部视图是否隐藏可以防止重复加载 if (self.s... 阅读全文
posted @ 2015-11-26 16:15 森code 阅读(1179) 评论(0) 推荐(0) 编辑

edgesForExtendedLayout属性的使用

摘要: edgesForExtendedLayout是一个类型为UIExtendedEdge的属性,指定边缘要延伸的方向。因为iOS7鼓励全屏布局,它的默认值很自然地是UIRectEdgeAll,四周边缘均延伸,就是说,如果即使视图中上有navigationBar,下有tabBar,那么视图仍会延伸覆盖到四... 阅读全文
posted @ 2015-11-26 14:49 森code 阅读(154) 评论(0) 推荐(0) 编辑

iOS开发之 数据库SQLite

摘要: http://blog.csdn.net/xyz_lmn/article/details/8968203http://blog.csdn.net/xyz_lmn/article/details/9312837 阅读全文
posted @ 2015-11-26 10:19 森code 阅读(118) 评论(0) 推荐(0) 编辑

iOS文件管理NSFileManager

摘要: http://blog.csdn.net/xyz_lmn/article/details/8968213 阅读全文
posted @ 2015-11-26 10:16 森code 阅读(130) 评论(0) 推荐(0) 编辑

字典、数组、JSON之间的转化小demo

摘要: /** * 数组转JSON. */- (void)testJsonAndArray{ NSArray *arr = [NSArray arrayWithObjects:@"a",@"b",@"c",@"d",@"e",@"f", nil]; NSLog(@"arrar = %@... 阅读全文
posted @ 2015-11-25 16:51 森code 阅读(430) 评论(0) 推荐(0) 编辑

较复杂的日期时间处理

摘要: 1、如何如何将一个字符串如“ 20110826134106”装化为任意的日期时间格式,下面列举两种类型:NSString* string = @"20110826134106";NSDateFormatter *inputFormatter = [[[NSDateFormatter alloc] i... 阅读全文
posted @ 2015-11-25 11:43 森code 阅读(418) 评论(0) 推荐(0) 编辑