Posted in iOS, Swift

iOS, Swift | Button click action issue

Environment

Xcode Version 9.0.1

 

Symptom

 

Button click action makes error

unrecognized selector sent to instance

 

Resolution

Select View Controller instead of other objects as an object when connecting UIButton action

Advertisements

Author:

HOiT Creator

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s