Multiple methods named “count” found with mismatched result, parameter type or attributes

后端 未结 6 2134
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-19 04:10

Since the update to Xcode 5.1 I can\'t archive my project any more. Xcode always says \"Multiple methods named \"count\" found with mismatched result, parameter type or attr

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-19 04:34

    Just a cast like:

    float a = [[_myArray objectForKey:@"myKey"] count] / 5.0;

    float a = [(NSArray *)[_myArray objectForKey:@"myKey"] count] / 5.0;

提交回复
热议问题