selectRow

macrumors 6502

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 !

Moderator emeritus

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*.

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.