CollectionViewCell's IBoutlet is nil in Custom Keyboard Extension

萝らか妹 提交于 2019-12-13 03:13:09

问题


Well, it'd day 5, I have tried everything to make this work. Setup is simple I am trying to write a custom keyboard. Which is having the CollectionView, CollectionViewCell is powered by xib I have one label, which would hold the emoji when running.

I did ready every single article here where IBOutlet is nil. Nothing is pointing to the direction that I haven't tried.

class CategoryCollectionCell: UICollectionViewCell {

    @IBOutlet weak var emojiLabel: UILabel!    

    override func awakeFromNib() {
        super.awakeFromNib()
    }
   }

Outlet is connected to the class. KeyboardViewController is CollectionViewData source and delegate.

I am able to write the same code and UIViewController is able to get the collectionView Cells and showing the emojis. I have run out of options. So I am posting here. There is nothing extraordinary that I am doing here. Except its a keyboard extension. Also, SIGQUIT is the biggest problem, any suggestions what is causing that. as I haven't able to put a finger on it.

来源:https://stackoverflow.com/questions/50904906/collectionviewcells-iboutlet-is-nil-in-custom-keyboard-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!