xcode 编译报错too many arguments to function call expected 1 have 2 解决办法:
1.首先检查是否是自己的编码错误引起的,
eg.[PromptView showMessage:@"即将上传数据的大小为:%@",tipStr];
showMessage:方法可以接受的参数为字符串,但是如上述所写,xcode 编译时就会报 too many arguments to function call expected 1 have 2 错误。仔细检查,发现编码不规范导致的应为:[PromptView showMessage:[NSString stringWithFormat:@"即将上传数据的大小为:%@",tipStr]];
2.在 interface builder -build setting 中将如下图所示三项置为NO(不推荐此种解决办法)