Xcode开发,在.m文件中写了个方法后一直报错:“missing context for method declaration” 如图: 后来发现,原来一时激动,未将方法写在@implementation与@end之间,改了之后问题解决!