iboutletcollection - Swift outlet collection - 'IBOutlet' property cannot be an array of non-'@objc' class type -
i'm trying setup outlet collection in swift. problem getting following error :
'iboutlet' property cannot array of non-'@objc' class type '[badge]'
here code :
import uikit class badgemodulecell: uitableviewcell { @iboutlet var badges: [badge]! }
is there doing wrong ? seems same in apple documentation (here).
i figured out going wrong. had class called "badge" custom uiview. fine. renamed "badgeview" allow me declare new class called "badge" scratched. here outlet collection supposed contain object not outlet, has no sense. renamed @iboutlet var badges: [badge]!
@iboutlet var badges: [badgeview]!
, working now.
Comments
Post a Comment