1.xlbファイルにPickerViewを追加
2.UIPickerViewDelegateとUIPickerViewDataSourceを実装、xlbファイルのFileOwnerであるViewControllerに実装しても可。
3.xlb上で、PickerViewのDataSourceとDelegateに関連づける

datasourceとdelegateの設定
4.ViewControllerにPickerViewのOutletを追加。初期値の設定や選択された値の取得はこのOutletで行う。
This entry was posted on 2012年7月1日 at 2:39 午後 and is filed under Dev, iPhone apps. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
コメントを残す