问题
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