ios - Can't set custom class for cell in table view controller -
i'm going crazy: i can't set custom class uitableviewcell , don't know why.
my project
in storyboard have table view controller set use manageliststvc.swift.
i want use custom cell dynamic prototypes create custom class listtvcell:
import uikit class listtvcell: uitableviewcell { override func awakefromnib() { super.awakefromnib() // initialization code } override func setselected(selected: bool, animated: bool) { super.setselected(selected, animated: animated) // configure view selected state } }
so, clean, build, go in ib, select table view controller, select cell and...
i can't see custom class! why? really, waste time stupid problem , don't know what's wrong.
what tried
- empty cache in ~/library/developer/xcode/deriveddata
- restart xcode
- clean project
- check if listtvcell.swift appears in compiled sources
i'm using xcode 6.3.1.
--> incredibly after complete reboot of mac works , can set custom class.
really strange decide reply post, maybe can helpful else.
Comments
Post a Comment