![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
叶露小荷
这个作者很懒,什么都没留下…
展开
-
修改CollectionView的背景色
self.view.backgroundColor = [UIColor whiteColor]; self.collectionView.backgroundColor = [UIColor whiteColor];一开始在CollectionView的viewDidLoad方法中打算修改背景色发现没有效果。 后来发现应该是第二行的写法。 CollectionView好像是在View上原创 2015-12-14 21:55:21 · 1702 阅读 · 0 评论 -
创建UICollectionView时出错UICollectionView must be initialized with a non-nil layout parameter
以前没怎么用过ConllectionView,因为突然要用所以, 像往常一样安习惯创建了一个ConllectionView UICollectionViewController *note = [[UICollectionViewController alloc]init];[self.navigationController pushViewController:note animated:Y原创 2015-12-14 21:47:50 · 2536 阅读 · 0 评论 -
iOS CollectionView交互,CollectionViewCell点击操作
简单方法- (BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath { return YES;}-(void)collectionView:(UICollectionView *)collectionView didSelectI原创 2015-12-16 03:55:12 · 491 阅读 · 0 评论 -
iOS 中 cell下载图片思路 ,图解
UITableViewCell下载多个图片进行显示时的实现思路原创 2015-12-13 11:42:32 · 280 阅读 · 0 评论 -
iOS 编辑页面的实现方法,从一个页面跳转(push)到下一页面时怎么传递数据
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{ //这是一个包含text属性的模型 PGAddText *model = self.data[indexPath.row]; //创建第二个控制器 PG原创 2015-12-16 03:28:46 · 798 阅读 · 0 评论 -
iOS 重用 collectionViewCell时出现文字层叠
重用出现问题,把老的Cell里控件全部清除- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { PGNoteCollectionViewCell *cell = [collectionView de原创 2015-12-16 04:02:18 · 632 阅读 · 0 评论 -
关于设置推送证书的心得
推送证书,申请推送证书的时候证书只与AppID和本机的证书颁发机构相关。 推送证书只需要下载到本机,导出后然后上传到后台就行了,其他就没有用了。 这个证书设置是个人证书,不能用企业证书。也不需要推送证书,推送证书只要在本机存在就行。 pp文件要是对应个人证书和推送设备的。 这个地方也是需要个人的账号。原创 2016-05-04 12:36:32 · 352 阅读 · 0 评论