views:

44

answers:

1
 @try {
  NSString *a = [NSString string];
  [a ggg];
 }
 @catch (NSException * e) {
  self.user_name = nil;
 }

why I can not catch the NSInvalidArgumentException in iphone os?

A: 
 @try {
  NSString *a = [NSString string];
  [a ggg];
 }
 @catch (NSException * e) {
 }

why I can not catch the NSInvalidArgumentException in iphone os?

ggg is not a method.
Edit the question, don't post a re-edited answer.
bbum