Warning: control reaches end of non-valid function - iPhone

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-03-13T22:47:48Z Indexed on 2010/03/13 22:55 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

I keep getting 'warning: control reaches end of non-void function' with this code:

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

 if (section ==0)

 {
  return [comparativeList count];
 }

 if (section==1) 
 {
  return [generalList count];
 }

 if (section==2)
 {

  return [contactList count];

How can I get rid of this warning?

Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk