selectRow

Discussion in 'iPhone/iPad Programming' started by chhoda, May 18, 2010.

  1. macrumors 6502

    Joined:
    Oct 25, 2008
    #1
    I am using a UIPickerView and want its middle item to be selected by default when screen shows up. I am tryingto achieve that by calling "selectRow inSection animated "method, but i get a warning this control may not respond to this method !

    --CH
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Post your code. In particular the variable definition that you are using to hold the pointer. Or if you are getting a pointer to the picker via a method call then post that method call. Most likely you are either using a superclass type in your variable definition, or the method returns something like UIView*.
     

Share This Page