Reputation: 7808
I wanted to implement tags in an app I'm developing in swift. So I decided to use this library as it is up to date on swift 3.
In my super.viewDidLoad
of the class I'm using this tagView
I've added as per the documentation given on the github page of this third party library:
myTagListView.textFont = UIFont.systemFont(ofSize: 24)
myTagListView.alignment = .center
And as this view controller is pushed in the stack the app crashes with this message:
-[UIView setTextFont:]: unrecognized selector sent to instance
What seems to be the problem?
Upvotes: 0
Views: 2073
Reputation: 82759
ensure that are you added the custom class name as TagListView
on storyboard or not once
for e.g
Upvotes: 2