does using try catch block in xcode show error on real device?

does using try catch block in xcode show error on real device?

my application is running fine in simulator...but not on real device....and i have jailbroken iphone so i am unable to debug through device...if i use try catch something like this

@try { Statements }  @catch (NSException *ex) { 	UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:[NSString stringWithFormat:@"%@",ex] 												   delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil]; 	[alert show]; } 

will my application show error on alertview before crashing?

if not how could i find where is the bug?

SubViewTwoController undeclared (first use in this function) (obj-c)


UITableView+UINavigationBar+UITabbar in windows based application template using interface Builder?
Catching the exception means you are doing any thing in response to this "error" coming around and it wont crash the application , thats the point of catching exceptions-to tell how to handle cases where errors arrise so your app wont crash, so yes the alert view will show.... Core Data: Quickest way to delete all instances of an entity
Is there a portable OpenGL UI Library (Buttons, Lists, Windows, Dropdown etc)?Downloading images from a server iPhone SDK


iPhone touch cancelling in OS 3.0
That will job so long as your @catch block doesn't throw any exceptions while endeavor to build the UIAlertView. UIPasteboard - cannot copy text Make sure you release or autorelease it, and support the UIAlertViewDelegate protocol.. Websites for the iPhone - but what about other platforms?


Try this:.
UIAlertView *alert = [[UIAlertView alloc]  initWithTitle:[ex name]  message:[ex reason]  delegate:self  cancelButtonTitle:@"OK"  otherButtonTitles: nil]; 

60 out of 100 based on 35 user ratings 270 reviews