1.方法上加修饰符static 2.在项目【Build Settings】->【Missing Function Prototypes】中,修改配置值Yes->No
转载来源:http://blog.csdn.net/lengshengren/article/details/12622589