摘要: 补充: 后来iphone6又不显示启动图片了。发现不是由于这个问题引起的,或者是不全是由于这个问题引起的。将启动图片名字改为Default.png后就显示正常了 Launch Screen File 为“ LaunchScreen”(默认),LaunchScreen.storyboard添加imag 阅读全文
posted @ 2016-07-22 16:49 火星的蝈蝈 阅读(6109) 评论(0) 推荐(0) 编辑
摘要: 1、tableView.backgroundColor = [UIColor clearColor]; 2、self.backgroundColor = dGray;(uitableviewcell) 注: 如果设置为self.contentView.backgroundColor = dGray; 阅读全文
posted @ 2016-07-15 18:17 火星的蝈蝈 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 本文参考与http://stackoverflow.com/questions/26295277/wkwebview-equivalent-for-uiwebviews-scalespagetofit 阅读全文
posted @ 2016-07-13 09:29 火星的蝈蝈 阅读(8630) 评论(1) 推荐(1) 编辑
摘要: 1、网络请求应该建一个请求model 根据http://www.cocoachina.com/ios/20160509/16146.html整理 好处:1、可以看出来RequestDataModel属性都是网络请求发起和返回的必要参数,这样做的好处真的是太大了,不知道大家有没有这样的场景:因为请求参 阅读全文
posted @ 2016-05-09 10:51 火星的蝈蝈 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 第一步导入头文件 第二步,实现方法 阅读全文
posted @ 2016-05-09 10:12 火星的蝈蝈 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 点击效果 最终效果 .h文件 阅读全文
posted @ 2016-05-05 17:34 火星的蝈蝈 阅读(305) 评论(0) 推荐(0) 编辑
摘要: blackView.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5]; 阅读全文
posted @ 2016-02-01 16:43 火星的蝈蝈 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 4个collectionview分别显示抽奖信息,4个数据源,个数分别为(9,9,7,5),最后结果是只是显示5个,数据源正常。 尝试1、- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellF 阅读全文
posted @ 2016-01-28 11:00 火星的蝈蝈 阅读(436) 评论(0) 推荐(0) 编辑
摘要: - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtI... 阅读全文
posted @ 2016-01-06 10:55 火星的蝈蝈 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 1、系统键盘跟第三方输入法都可以用这个方法// //增加监听,当键盘出现或改变时收出消息 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeybo... 阅读全文
posted @ 2015-12-11 08:39 火星的蝈蝈 阅读(356) 评论(0) 推荐(0) 编辑