views:

627

answers:

1

Hello, I am developing a iPhone (Utility Application) app using Xcode and Interface Builder (IB). I am using a UIPickerView in my app using IB. But I dont know how to connect UIPickerView in my app. Its show a empty picker. How can I connect data in UIPickerView? Plz tell me details...

+2  A: 

You have to implement the UIPickerViewDataSource and UIPickerViewDelegate protocols to get data into your picker and know when the user makes a selection. Then in IB make the connection from the picker to the object that implements these protocols.

Bill Dudney
Thanks 4 ur answer. can u send me some sample code.
Nahid
Take a look at the LocateMe example
Bill Dudney