Return values
suggest changeWhen 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;
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents