Warning-used as the name of the previous parameter rather than as part of the selector

后端 未结 3 744
一个人的身影
一个人的身影 2021-02-15 13:13

I am using a function in a class as below

- (void) uploadMorePic:(NSDictionary *) MuliPics: (NSData *)file  

It shows the warning - Muli

3条回答
  •  甜味超标
    2021-02-15 13:34

    It's a poor message, but it's because you didn't provide a name for the first parameter to your method. Try this:

    -(void)uploadMorePic:(NSDictionary *)dict muliPics:(NSData *)file
    

    I also fixed a style issue; the name of the second part of the method name should start with a lower-case letter. I don't know what your method does, so you may be able to come up with a better name.

提交回复
热议问题