Class has no initializers Swift

后端 未结 7 1283
迷失自我
迷失自我 2020-11-28 22:17

I have a problem with Swift class. I have a swift file for UITableViewController class and UITableViewCell class. My problem is the UITableViewCell class, and outlets. This

7条回答
  •  迷失自我
    2020-11-28 22:24

    In my case I have declared a Bool like this:

    var isActivityOpen: Bool 
    

    i.e. I declared it without unwrapping so, This is how I solved the (no initializer) error :

    var isActivityOpen: Bool!
    

提交回复
热议问题