Top "Nsexception" questions

NSException is a Mac Developer Library class used to implement exception handling and contains information about an exception.

@try - catch block in Objective-C

Why doesn't @try block work? It crashed the app, but it was supposed to be caught by the @try block. …

iphone objective-c try-catch-finally nsexception
Terminating with uncaught exception of type NSException?

My application crashes when clicking a button to go to segue into a new view. This comes up: int main(…

objective-c nsexception
Xcode doesn't show the line that causes a crash

Every time my app crashes Xcode highlights the UIApicationMain() call in the main() function as the line that caused the …

objective-c ios xcode cocoa-touch nsexception
NSUnknownKeyException setValue:forUndefinedKey:

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the …

iphone ios5 uitableview nsexception
libc abi.dylib: terminating with uncaught exception of type NSException CollectionView

when i run my app, i received this error : 2014-08-11 10:52:10.546 ControlViewTest[918:60b] -[UIViewController collectionView:numberOfItemsInSection:]: unrecognized selector sent …

ios objective-c nsexception
Catching NSException in Swift

The following code in Swift raises NSInvalidArgumentException exception: task = NSTask() task.launchPath = "/SomeWrongPath" task.launch() How can I catch the …

swift cocoa-touch exception foundation nsexception
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_.AppDelegate add:]: unrecognized selector

I created a storyboard called Main.storyboard and created a AddBtnViewController with storyboard ID "addBtnVC". In the App Delegate, I …

ios swift appdelegate nsexception
Exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 19 beyond bounds [0 .. 18]'

I haver already looked for the other similar post, but none has solved my problem. I get this error: *** Terminating …

ios nsarray parse-platform searchbar nsexception
An -observeValueForKeyPath:ofObject:change:context: message was received but not handled

I am relatively new to KVO, so there is a good chance that I am violating some fundamental rule. I …

iphone key-value-observing nsexception
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM itemName]: unrecognized selector sent to instance

This is my code for loading data from sqlite file - (void) loadInitialData{ // Form the query. NSString *query = @"select * from …

ios sqlite nsexception