返回值

如果要从方法返回值,请将要返回的类型放在第一组括号中。

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

你要返回的值位于 return 关键字之后;