Objective-C Language Methods Return values

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

Example

When you want to return a value from a method, you put the type you want to return in the first set of parentheses.

- (NSString)returnHello {
  return @"Hello World";
}

The value you want to return goes after the return keyword;



Got any Objective-C Language Question?