06 2015 档案
摘要:第一步:1、点击Image.xcassets 进入图片管理,然后右击,弹出"New Launch Image"2、如图,右侧的勾选可以让你选择是否要对ipad,横屏,竖屏,以及低版本的ios系统做支持.这边我选了ios8.0,ios7.0,ios6没有做支持.第二步:将规定尺寸的图片从你的文件中拖动...
阅读全文
摘要:当要背景颜色透明的时候,alpha导致subView也透明的解决方法1、 xib中的backgroundColor中选others 里面有个opacity,用这个设置透明程度,不用alpha2、代码:backgroundColor = [uicolor colorwithRed:xx green:x...
阅读全文
摘要:cell.selectedBackgroundView.backgroundColor = [UIColor whiteColor];//选中后变换,色彩的变换 cell.textLabel.highlightedTextColor = [UIColor colorWi...
阅读全文
摘要:- (void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; NSIndexPath *selectCell = [NSIndexPath indexPathForRow:0 inSection:0]; ...
阅读全文
摘要:在大多数情况下,给UILabel进行动态数据绑定的时候,往往需要根据字符串的多少,动态调整UILabel的宽度或高度下面分两种情况:1、 UILabel的宽度不变,根基字体的多少,自动调整UILabel的高度,并折行显示UILabel *label = [[UILabel alloc] initWi...
阅读全文
摘要:今天在熟悉使用AFNetworking时发现一个问题,就是我用get请求数据时可以得到结果,而用post测试登陆时则会返回error,错误信息为:failed: unacceptable content-type: text/html这是因为HTTP响应头中的Content-Type字段对不上号需要...
阅读全文

浙公网安备 33010602011771号