摘要:
FMDB打印错误[db lasterrorMessage]创建数据库 -->sqlite3 zpp.db 创建叫zzp的数据库创建数据库里的表-->create table if not exists zzp1 (ID integer primary key autoincrement, Age i... 阅读全文
posted @ 2015-10-10 17:37
上官元空
阅读(133)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2015-10-10 17:36
上官元空
阅读(144)
评论(0)
推荐(0)
摘要:
当automaticallyAdjustsScrollViewInsets 为 YES 时,也是默认行为,表现就比较正常了,和edgesForExtendedLayout =UIRectEdgeNone 有啥区别? 不注意可能很难觉察设计师可能一眼就看穿。。。automaticallyAdjusts... 阅读全文
posted @ 2015-10-10 17:33
上官元空
阅读(352)
评论(0)
推荐(0)
摘要:
步骤1、在ViewController中loadView#if__IPHONE_OS_VERSION_MAX_ALLOWED>=70000if(IOS7_OR_LATER){self.edgesForExtendedLayout=UIRectEdgeNone;self.extendedLayoutI... 阅读全文
posted @ 2015-10-10 17:33
上官元空
阅读(210)
评论(0)
推荐(0)
摘要:
在IOS7以后 ViewController 开始使用全屏布局的,而且是默认的行为通常涉及到布局。就离不开这个属性edgesForExtendedLayout,它是一个类型为UIExtendedEdge的属性,指定边缘要延伸的方向,它的默认值很自然地是UIRectEdgeAll,四周边缘均延伸,就是... 阅读全文
posted @ 2015-10-10 17:32
上官元空
阅读(186)
评论(0)
推荐(0)
摘要:
设置自定义按钮的文字大小[submit.titleLabel setFont:[UIFont boldSystemFontOfSize:16]];设置按钮选中状态的颜色[btn setTintColor:[UIColor clearColor]];设置按钮文字内容的水平对齐方式btn setCont... 阅读全文
posted @ 2015-10-10 17:29
上官元空
阅读(380)
评论(0)
推荐(0)
摘要:
中文转码 str = [str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 图片编码 NSData *data;NSData -->UIImage UIImage *image = [UIImage imageWi... 阅读全文
posted @ 2015-10-10 17:18
上官元空
阅读(208)
评论(0)
推荐(0)
摘要:
接收响应头content-Length content-Type- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response{ NSHTTPURLResponse* res ... 阅读全文
posted @ 2015-10-10 17:18
上官元空
阅读(247)
评论(0)
推荐(0)
摘要:
设置图片边界的颜色[_iconImage.layer setBorderColor:bolderColor.CGColor];设置图片边界的宽度[_iconImage.layer setBorderWidth:3]; 阅读全文
posted @ 2015-10-10 17:17
上官元空
阅读(213)
评论(0)
推荐(0)
摘要:
注意:接受通知要写在 viewDidLoad 方法里面取得系统全局的唯一广播站NSNotificationCenter *notification = [NSNotificationCenter defaultCenter];设置广播的名字和 参数等。。。[notification postNoti... 阅读全文
posted @ 2015-10-10 17:16
上官元空
阅读(192)
评论(0)
推荐(0)

浙公网安备 33010602011771号