Questions tagged [nsexception]

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

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

It is available in OS X v10.0 and later and is declared in NSException.h

259 questions
0
votes
2 answers

trying to reload table but giving exception 'NSInvalidArgumentException'

I am having a tableview which i created using iboutlet.and when i am trying to reload table it is giving this exception. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString objectAtIndex:]: unrecognized…
iosDev
  • 604
  • 3
  • 12
  • 28
0
votes
1 answer

tableview cell unable to load two tableviews

I have to two table view in my view if i am load only one table view it is working fine. But when i am trying to load both table view using below method it is giving below exception. uncaught exception 'NSRangeException', reason: '* -[NSArray…
iosDev
  • 604
  • 3
  • 12
  • 28
-1
votes
1 answer

table view keeps giving NSException and crashes

Hi i am newbie in iphone and following beginning with iphone i am stuck at table view my apps keeps giving NSException and crashes As soon as I add tableView in the xib app starts crashing Here is the code for TableViewController.m // // …
kun
  • 1
  • 1
  • 2
-1
votes
2 answers

[_LSDefaults sharedInstance]: unrecognized selector sent to class 0x20cbf3aa0

I recently up-graded the codebase to Xcode11.3, getting this error on launch without detailed logs: 2019-12-18 15:18:40.461627+0530 XXXXX[2485:622148] +[_LSDefaults sharedInstance]: unrecognized selector sent to class 0x20cbf3aa0 2019-12-18…
abhinavroy23
  • 3,630
  • 1
  • 14
  • 19
-1
votes
1 answer

NSException error when using Python, Flask, HTML

so I making a website to output projections of nba games. I currently have a dictionary with all of the team logo paths as the key value in the dictionary and the percentages of winning the game as the value. The dictionary called projec_d looks…
CarlosX2X
  • 193
  • 1
  • 1
  • 9
-1
votes
1 answer

'NSException' Error, Crashes after pressing rectangle button - Cocoa Touch

I've made a rectangle button, which, when the user taps it they go to their iPod. I get this error once I press the button when debugging. I've checked thoroughly on the iPod code and everything seems to be correct. Here is the error from the…
LAA
  • 1
  • 1
-1
votes
2 answers

Creating a path to the documentsDirectory results in a NSInvalidArgumentException and unrecognized selector issue

I am learning Obj-C, and I cannot for the life of me figure out why I am getting this crash. Here is the error message: 2018-01-22 16:10:00.009334-0500 ParkSmartObjC[1997:189530] Finished picking media 2018-01-22 16:10:00.163798-0500…
Cody Lucas
  • 682
  • 1
  • 6
  • 23
-1
votes
1 answer

Swift : Terminating app due to uncaught exception 'NSInvalidArgumentException', reason : unrecognized selector sent to instance 0x7fb179f12260'

I'm developing a simple app, but the problem stuck me a long long time! I try to transit a model with segue! The Upper one function is a UITextField as Action, however when I use it to open. Crash! The other one can open the Model. Not being crash!…
HungCLo
  • 442
  • 2
  • 6
  • 21
-1
votes
1 answer

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' setObjectForKey: key cannot be nil'

* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* setObjectForKey: key cannot be nil' *** I think i am trying to add an object (which is nil) to dictionary for key. I DO NOT KNOW HOW TO SOLVE THIS? …
Wenjun A Mao
  • 41
  • 1
  • 3
-1
votes
2 answers

Object cannot be nil for Un used NSUserDefaults key in project

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: client_id) In my current project (Swift) I am getting the above error, even when I haven't used that key anywhere in…
Avinash Jadhav
  • 491
  • 4
  • 17
-1
votes
3 answers

Swift Error - "Unrecognized selector sent to instance"

I am working on a Swift project in Xcode v6.1.1, and I am getting the following error that I don't understand. I believe there is a problem with a couple of the Labels in my Main.storyboard and/or the UILabel variable I have them connected to. I…
MAX
  • 11
  • 1
  • 1
-1
votes
1 answer

Data-core NSException

I don't know where is my problem because the entity "Utente" exist. Error code: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+entityForName: nil is not a legal NSManagedObjectContext parameter searching for…
Luca Briganti
  • 101
  • 2
  • 4
  • 12
-1
votes
2 answers

Coredata + CollectionView

I'm trying to create an iOS app which has a collectionview that takes information from a website (with JSON) and stores the info on CoreData. I have 2 entities on CoreData. 1 Called Regions (wich will be the collection header texts). 1 Called…
Miguel
  • 558
  • 6
  • 21
-1
votes
1 answer

Terminating app due to uncaught exception NSInvalidArgumentException , reason: The index is invalid

I'm new to IOS development. When i run my app ,i got the following error. Could anyone help me.. I have placed an UITextView inside a TableViewCell. And i have set 'one\n' as text of the UITextView. My Code : - (id)initWithFrame:(CGRect)frame…
Kirubachari
  • 688
  • 11
  • 27
-2
votes
1 answer

XCode Thread 1: signal SIGABRT error terminating with uncaught exception of type NSException (lldb)

I ve searched many but couldnt find so here is my related screenshots: https://postimg.cc/image/hyrkzet5z/ https://postimg.cc/image/wj8ntpdon/ Saying: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable…
1 2 3
17
18