开发者

warning in NSMutableArray

开发者 https://www.devze.com 2023-02-05 22:12 出处:网络
warning: (Messages without a matching method signature warning: no \'-eve开发者_StackOverflowntListArray\' method found

warning: (Messages without a matching method signature

warning: no '-eve开发者_StackOverflowntListArray' method found

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    return [[[popularListArray objectAtIndex:section]eventListArray]count];

}

@Thanks in advance


Your problem is most likely that you need to #import the header file in which the -eventListArray method is declared.

Files are compiled one at a time, so if you don't import the header, the compiler won't know about the method when compiling this file and will therefore issue a warning.


If you want to silence compiler you have to cast the object you retrieve by popularListArray because objectAtIndex return an (id) which is a (*void) equivalent.

0

精彩评论

暂无评论...
验证码 换一张
取 消