Whats this warning? (noobie)

Discussion in 'iOS Programming' started by ryans79, Jun 6, 2009.

  1. ryans79 macrumors regular

    Joined:
    Apr 12, 2009
    #1
    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)

    [​IMG]


    °°
     
  2. neoserver macrumors 6502

    Joined:
    Apr 24, 2003
    #2
    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! :)
     
  3. ryans79 thread starter macrumors regular

    Joined:
    Apr 12, 2009
    #3
    I blame gremlins.... and thats it 5am!

    Thanks and goodnite mate!
     

Share This Page