kiran kumar
kiran kumar

Reputation: 1359

warning in NSMutableArray

warning: (Messages without a matching method signature

warning: no '-eventListArray' method found

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

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

}

@Thanks in advance

Upvotes: 0

Views: 84

Answers (2)

Dave DeLong
Dave DeLong

Reputation: 243156

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.

Upvotes: 3

Simone D'Amico
Simone D'Amico

Reputation: 2345

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.

Upvotes: 0

Related Questions