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

Popular posts from this blog

python - How to create jsonb index using GIN on SQLAlchemy? -

PHP DOM loadHTML() method unusual warning -

c# - TransactionScope not rolling back although no complete() is called -