Home > DeveloperSection > Interviews > Difference between @throw and raise?

Posted on    October-26-2015 1:15 AM

 iPhone iPhone  Ios  Objective C 
 1 Answer(s)
  660  View(s)
Rate this:

Tarun Kumar

Total Post:107

Posted on    October-26-2015 1:15 AM

raise- this will send only NSException object.
where as,
@throw- this can take NSString Objects in its argument and also take NSException Object. (Cocoa applications should @throw only NSException objects).

Don't want to miss updates? Please click the below button!

Follow MindStick