11 2015 档案

SQLite语句小结
摘要:一、创建数据库:1、点击connection,选择SQLite2、输入“连接名”和“选择保存数据库的路径”3、选择完路径之后,双击“连接名”,出来main(如图)4、右击main,选择New Query...,(打开一个新窗口)5、SQ语句:PS:先明白几个名词概念:a、表名:t_people(格式... 阅读全文

posted @ 2015-11-29 23:43 森code 阅读(528) 评论(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

UITableView的plain和group
摘要:1、这是两种style。不管选择哪一种,都可以返回多组,多行。 阅读全文

posted @ 2015-11-27 00:41 森code 阅读(241) 评论(0) 推荐(0)

运行时探究
摘要:http://toutiao.com/a6221023277097713921/ 阅读全文

posted @ 2015-11-26 18:20 森code 阅读(93) 评论(0) 推荐(0)

加载更多时,判断tableView快要滑动到底部的时候在去请求更多数据的公式
摘要:- (void)scrollViewDidScroll:(UIScrollView *)scrollView{ /* // 判断是否需要加载更多 // 判断等于0可以防止没有数据就显示加载更多控件 // 判断底部视图是否隐藏可以防止重复加载 if (self.s... 阅读全文

posted @ 2015-11-26 16:15 森code 阅读(1191) 评论(0) 推荐(0)

edgesForExtendedLayout属性的使用
摘要:edgesForExtendedLayout是一个类型为UIExtendedEdge的属性,指定边缘要延伸的方向。因为iOS7鼓励全屏布局,它的默认值很自然地是UIRectEdgeAll,四周边缘均延伸,就是说,如果即使视图中上有navigationBar,下有tabBar,那么视图仍会延伸覆盖到四... 阅读全文

posted @ 2015-11-26 14:49 森code 阅读(183) 评论(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 阅读(123) 评论(0) 推荐(0)

iOS文件管理NSFileManager
摘要:http://blog.csdn.net/xyz_lmn/article/details/8968213 阅读全文

posted @ 2015-11-26 10:16 森code 阅读(135) 评论(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 阅读(438) 评论(0) 推荐(0)

较复杂的日期时间处理
摘要:1、如何如何将一个字符串如“ 20110826134106”装化为任意的日期时间格式,下面列举两种类型:NSString* string = @"20110826134106";NSDateFormatter *inputFormatter = [[[NSDateFormatter alloc] i... 阅读全文

posted @ 2015-11-25 11:43 森code 阅读(430) 评论(0) 推荐(0)

较简单的date转化成格式化的timeString
摘要:- (NSString *)timeStringWithDate:(NSDate *)date{ NSDateFormatter *dateForm = [[NSDateFormatter alloc] init]; dateForm.dateFormat = @"yyy... 阅读全文

posted @ 2015-11-25 11:41 森code 阅读(262) 评论(0) 推荐(0)

字符串截取的用法
摘要:typedef NSRange *NSRangePointer;NS_INLINE NSRange NSMakeRange(NSUInteger loc, NSUInteger len) {NSRange r;r.location = loc;r.length = len;return r;}NSM... 阅读全文

posted @ 2015-11-25 10:53 森code 阅读(476) 评论(0) 推荐(0)

UIImageView的图片轮播属性
摘要:imageV.animationImages = imageArr; imageV.animationDuration = imageArr.count; imageV.animationRepeatCount = 0; [imageV startA... 阅读全文

posted @ 2015-11-24 20:02 森code 阅读(213) 评论(0) 推荐(0)

label.lineBreakMode设置lable中文字过长时的显示格式,其中可以有末尾以省略号显示。
摘要:iOS4.0版本:label.lineBreakMode = NSLineBreakByCharWrapping;以字符为显示单位显示,后面部分省略不显示。label.lineBreakMode = NSLineBreakByClipping;剪切与文本宽度相同的内容长度,后半部分被删除。label... 阅读全文

posted @ 2015-11-24 19:10 森code 阅读(814) 评论(0) 推荐(0)

UIImageView的contentMode属性
摘要:ContentMode中需要注意:1.但凡取值中包含Scale单词的值都会拉伸图片.2.但是取值中包含Aspect单词的值都会按照图片的宽高比拉伸(不会变形)UIViewContentModeScaleToFill, // 默认 (会变形)ScaleToFill: 会按照ImageView的宽高比拉... 阅读全文

posted @ 2015-11-21 01:40 森code 阅读(466) 评论(0) 推荐(0)

iOS开发----关于导航条的研究
摘要:http://m.blog.csdn.net/blog/yuxikuo_1/42151837 阅读全文

posted @ 2015-11-20 11:07 森code 阅读(121) 评论(0) 推荐(0)

iOS 开发对图片进行处理
摘要:http://www.open-open.com/lib/view/open1375933073921.html 阅读全文

posted @ 2015-11-19 12:57 森code 阅读(204) 评论(0) 推荐(0)

设置按钮中的图片的旋转,并且旋转之后不变形
摘要:1、设置按钮属性: self.titleBtn.imageView.contentMode = UIViewContentModeCenter; self.titleBtn.imageView.clipsToBounds = NO;2、处理点击事件- (void)titleBtn... 阅读全文

posted @ 2015-11-18 00:50 森code 阅读(821) 评论(0) 推荐(0)

调整按钮的子控件titleLable和imageView的间距的属性和用法
摘要:self.titleBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; self.titleBtn.contentEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0); s 阅读全文

posted @ 2015-11-18 00:41 森code 阅读(602) 评论(0) 推荐(0)

ios开发之--数据库开发
摘要:1、封装FMDBhttp://www.cnblogs.com/sxwangjiadong/p/4968536.html 阅读全文

posted @ 2015-11-16 12:42 森code 阅读(138) 评论(0) 推荐(0)

UILable根据文字内容,自适应高度
摘要://UILabel自适应文本的高度 UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 100, 300, 100)]; label.numberOfLines = 0; label.lineBreakMode = NSLi... 阅读全文

posted @ 2015-11-10 00:02 森code 阅读(242) 评论(0) 推荐(0)

集成支付宝、
摘要:http://www.cnblogs.com/canghaixiaoyuer/p/4838186.html 阅读全文

posted @ 2015-11-07 01:36 森code 阅读(102) 评论(0) 推荐(0)

自动布局
摘要:http://www.cnblogs.com/canghaixiaoyuer/p/4943625.html 阅读全文

posted @ 2015-11-07 01:19 森code 阅读(134) 评论(0) 推荐(0)