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