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

Getting NSException error

Getting an NSException error. Looked around and it may be how I am calling the method but can't troubleshoot it, I'm a beginner so a good explanation is very much appreciated. Here is my AddListingViewController.h #import #import…
suntzu
  • 65
  • 3
  • 13
0
votes
1 answer

NSRange changes itself inside for loop

I have an NSDictionary of NSRange objects, with keys for their index in the array. I am attempting to use each of these ranges to create substrings of a larger string, and place each of these substrings in the array. I basically have this completed,…
arc4randall
  • 3,275
  • 3
  • 27
  • 40
0
votes
1 answer

why crash this code at boundingRectWithSize?

- (CGSize)sizeOfLabel:(UILabel *)label withText:(NSString *)text { CGSize maximumLabelSize = CGSizeMake(308,9999); UIFont *font=[UIFont systemFontOfSize:14]; CGRect textRect = [text boundingRectWithSize:maximumLabelSize …
0
votes
1 answer

Changing the name of an IBACTION now gives an uncaught exception error

OK this one is hopefully really simple I thought I had it figured out once but can't remember what I did In any app I go in and create a connection to a button or whatever and I give it a name like "PressThisButtonWhenDone" this is all good and it…
Jeff Janes
  • 885
  • 1
  • 8
  • 22
0
votes
1 answer

Assertion failure second time adding/deleting

I have a strange problem: I got a DetailViewController inside a SplitViewController which holds a button. This button has a Popover segue to a NavigationController and UITableViewController which acts as a notepad. The first time I open the popover,…
user3653447
  • 19
  • 1
  • 6
0
votes
1 answer

Why does a simple push UIStoryboardSegue fail?

UIStoryboardSegue, NSException App has storyboard with around 25 viewControllers. All segues work except this one. This is with Mavericks and Xcode 5.1 App terminates with an Exception: 2014-05-15 21:16:17.004 iHungryMePlus[18768:60b]…
mbarron
  • 285
  • 4
  • 15
0
votes
2 answers

Error message when launching my app

EDIT : I found the solution, here is the answer : UITableViewCell indexPath crash in iOS7 Thanks ! I am using Xcode 5.1.1, on the simulator 7.0. When I launch my application, I have an error that crashes my app. Here is the error message…
ΩlostA
  • 2,501
  • 5
  • 27
  • 63
0
votes
1 answer

How to handle exception or write custom exception class in static library?

I am creating static ios library, and want to throw system generated exception as well as custom exception with code and message to user on request failure. User will import my header files and .a file and call static library methods. Can somebody…
Abbas Mulani
  • 703
  • 2
  • 8
  • 19
0
votes
2 answers

NSException: how to add userData and rethrow?

I'm trying to write a global exception handling routine for my app. The idea is it will temporarily store the exception in memory and eventually report it to the server, rather than bothering the user. I want to gather as much information as…
Matthew Exon
  • 467
  • 4
  • 16
0
votes
1 answer

is it possible to check condition based on expression,objective c

My arrays arroriginally contains following [A,B,C,D,E,F,G]; Now I want to remove A and B and C and I could do it like following [arr enumerateObjectsUsingBlock:^(NSString *name, NSUInteger idx, BOOL *stop) { if ( [name isEqualToString:@"A"] ||…
tranvutuan
  • 6,089
  • 8
  • 47
  • 83
0
votes
0 answers

after i've upgraded to iOS version 7.1 my iOS app crashing on iPad 2 only, works fine on all other devices

I've an iOS app for iPad & iPhone. My app worked fine on all devices until now . Now (after i've upgraded to iOS version 7.1) it crashes on ipad2 only. On all other devices it has no problem. At the startup of the app (and before calling viewDidLoad…
ottorottok
  • 181
  • 1
  • 3
  • 11
0
votes
1 answer

NSPredicate predicateWithFormat dropping $ symbol from key

I am using NSPredicate to filter the contents of an NSArray of NSDictionary objects. Nothing crazy. I want to check three different values in the dictionary for the same search string. Here is the string I am passing to [NSPredicate…
itslittlejohn
  • 1,808
  • 3
  • 20
  • 33
0
votes
1 answer

Enabling restrictions for camera in iPad throws NSException while opening camera

I've enabled the restrictions and disallowed the camera and FaceTime in the settings of iPad and in the privacy tab, I disabled the access to photos for my application. I'm opening the camera and photo library using below code, //For…
Nazik
  • 8,696
  • 27
  • 77
  • 123
0
votes
1 answer

int value not passing, unrecognized selector sent to instance Terminating app due to uncaught exception 'NSInvalidArgumentException'

I'm trying to pass two integer values between different files but getting a error as mentioned in title. Error at this line: - (NSString *) lookup: (NSString *)in get:(int)dictio get1:(int)dictio1; Error File: 2014-02-05 13:27:48.019…
0
votes
0 answers

Getting error Terminating app due to uncaught exception of class 'nil'

I'm tring to throw the exception here where the values is set in other class .but im getting the error as Terminating app due to uncaught exception of class 'nil' .can any one tell what is wrong with my code ? if ([someNameArray…
lreddy
  • 449
  • 6
  • 19