Setting up firebase auth and the app keeps crashing once the Sign Up button is tapped, I have the button linked to #IBAction for firebase signup and all classes are correct for each view controller (login and signup), I also have the correct #IBOutlets for the text fields.
2019-03-03 18:50:06.225729+0000 Spring[40363:3684981] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Spring.registerView loginViewControllerButton:]: unrecognized selector sent to instance 0x7f7f39407ec0'
For anyone else experiencing this issue, I resolved it by checking for any extra outlets on my UIButton where I had two that weren't necessary, removing these solved the issue for me.
After googling I found this page helped with my issue:
Solution
I am getting a crash while adding uiimageView in a containerView inside uitableView. I am performing lazy loading, the images loads successfully but when i scroll the table upwards, application crashes, Please guide me what i am doing wrong.
'NSInvalidArgumentException', reason: '-[UIImage superview]: unrecognized selector sent to instance
Thanks
Somewhere you're using UIImage where it should be UIImageView.
I have an XIB that I present as a modal view. I have a button that calls the following -
(IBAction)dismissVC:(id)sender {
[self.parentViewController dismissModalViewControllerAnimated: YES];
}
When I press it the app crashes with this notice -
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewController dismissVC:]: unrecognized selector sent to instance 0x8379350'
The thing I noticed is that I have a ViewController.xib file and I have this MapView.xib that is a modal VC I want to dismiss. It's presented from a ViewController.xib
What could be the possible issue? I've hooked up all the actions and the File Onwer thing as well.
Thanks in advance!
Try this:
unrecognized selector sent to instance
that might be your solution.
Im trying to work with UISearchDisplay controller
the application is launching correctly. When i start typing in the UISearchbarController its showing the following exception and exiting the application.
The exception is as follows:
[BrowserViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x5b4ccc0
2010-08-13 11:59:58.469 MixedApplication[7297:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[BrowserViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x5b4ccc0'
Can you post your code for the tableView:numberOfRowsInSection?
EDIT: UISearchBar will not work for a UIWebView
I have a problem with my application for the iPhone.
It's a tab based application. In one of the tabs, I have a Table View. I have set it up to load in data from a PLIST.
My problem is that when I try to build and run it, the application either crashes, or stays at a black screen with the error message "Terminating app due to uncaught exception".
I looked in the console, and found that the error probably laid in this string:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return workouts.count;
}
(error message:)
2010-02-06 21:50:54.733 Mudo[52439:207] *** -[FirstViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x39101a0
2010-02-06 21:50:54.735 Mudo[52439:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[FirstViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x39101a0'
2010-02-06 21:50:54.736 Mudo[52439:207] Stack: (
29344859,
2569487625,
29726779,
29296246,
29148866,
4413562,
4420938,
4419935,
3136474,
3076985,
3118420,
3106975,
55857840,
55857263,
55855302,
55854394,
2780921,
2804616,
2787027,
2814133,
37441233,
29129600,
29125704,
2780777,
2818051
)
Building the app does not generate any errors.
Please help me? Thanks :)
If you look at the actual text of the exception, 'NSInvalidArgumentException', reason: '*** -[FirstViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x39101a0', you can see the root of the problem. Somewhere in your code you're calling tableView:numberOfRowsInSection: on a FirstViewController, which doesn't implement that method.
Exceptions are not caught at compile-time, but rather thrown at runtime. You may want to read up on them if you aren't familiar, as they're a fairly important part of many programming languages.
http://en.wikipedia.org/wiki/Exception_handling
I'm guessing, since FirstViewController is one of the standard example classes created when starting a new Tab Bar based application in Xcode that you haven't changed its super class or implemented the methods of UITabeViewDelegate and UITableViewDataSource.
Either that or you've implemented the methods from those protocols in another class, but set FirstViewController as the table view's delegate/datasource.
We need more information to know for sure.