Error after upgrading to xcode 4.6 and iOS 6.1 “used as the name of the previous parameter rather than as part of the selector”

后端 未结 3 485
走了就别回头了
走了就别回头了 2020-12-03 14:41

After updating to xcode 4.6 and ios6.1, I get this new error \"\'objectType\' used as the name of the previous parameter rather than as part of the selector

3条回答
  •  攒了一身酷
    2020-12-03 15:39

    Your method is declaring the selector With spaces,

    -(NSString *)testMethod:(double)price :(BOOL)flag;
    

    Note mention .h and .m both are same and equal spaces

    When retrive methode, that time careful about method and its arguments. like [self testMethod:4.5(space):TRUE];

提交回复
热议问题