zoukankan      html  css  js  c++  java
  • 常见问题

    1.UICollectionViewDemo1[1249:398101] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set

     出现错误的的原因是没有给你的StoryBoard设置默认显示的controller,在属性检查器面板上的view controller那把“ is install View controller”勾上。

     

    2.Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UICollectionViewCell label]: unrecognized selector sent to instance 

    UICollectionViewCell不能被实例化,将CollectionViewCell改成自定义类即可

    例如:

    错误:[self.collectionView registerClass:[CollectionViewCell class] forCellWithReuseIdentifier:reuseIdentifier];

    正确:[self.collectionView registerClass:[CustomCollectionViewCell classforCellWithReuseIdentifier:reuseIdentifier];

     

     

     

     

  • 相关阅读:
    第4周课前测试考试题
    第3周课前测试考试题
    200行自定义异步非阻塞Web框架
    Web框架之Tornado
    redis总结
    Django之ModelForm组件
    Rabbitmq队列
    Git分布式版本控制系统
    Django REST framework
    python之路1
  • 原文地址:https://www.cnblogs.com/lianghe01/p/5238655.html
Copyright © 2011-2022 走看看