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

后端 未结 3 743
一个人的身影
一个人的身影 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:24

    Because you haven't separately specified the parameter name and the selector definition. Basically, you're missing a space and/or a word. Try:

    -(void)uploadMorePictures:(NSDictionary *)pics withFile:(NSData *)file
    

    Which separately names and specifies both parameters to the method.

提交回复
热议问题