iOS Swift Xcode 8.0 [duplicate]

0 votes
asked Sep 11, 2017 by abba-musa

This question already has an answer here:

2 Answers

0 votes
answered Sep 11, 2017 by prabodhprakash

As per the error description:

UIViewController is missing function LoginButton:, and some part of your code is trying to invoke this function. Thus, crash is happening. I am not able to read the crash properly (since its not formatted well) - but, from what I can understand - its a touch event (probably on a UIControl, like UIButton) that's triggering the invocation of LoginButton: method. Since the method is not available, its crashing.

unrecognized selector sent to instance - specifically means that a function is being invoked which is not available. Also, check connection to this function from your XIB

0 votes
answered Sep 11, 2017 by nilesh

Check the connection of your login Button in the storyBoard.. Check if you have any deleted IBoutlets or multiple actions connected.

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter

...