Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ryans79

macrumors regular
Original poster
Apr 12, 2009
226
0
Hello,
I copied the code exactly as it was written in "Beginning iphone development" but i am still getting a warning (two actually, the other one is not showing)

Can someone have a look and tell me what it means? because i even went into the docs and it seems to have been written the same :(

(click the image below for the full size image)




°°
 
you have a problem with your second parameter. tableview:numberOfRowsInSection expects an NSInteger as the second parameter not a pointer to an NSInteger (which is expressed as NSInteger *).

You need to remove the asterisk from your second parameter.

Documentation is your friend! :)
 
I blame gremlins.... and thats it 5am!

Thanks and goodnite mate!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.