开发者

xCode 4.2, UIPickerView, Where is the File's Owner?

开发者 https://www.devze.com 2023-04-13 06:49 出处:网络
After some searching I know how to set the UIPickerView and its C开发者_StackOverflowontent. The only problem is that i can\'t connect the UIPickerViews datasource and delegate Outlet to the File`s Ow

After some searching I know how to set the UIPickerView and its C开发者_StackOverflowontent. The only problem is that i can't connect the UIPickerViews datasource and delegate Outlet to the File`s Owner because since 4.2 i can't find the File's Owner. Because of that, the Content isn't displayed on the UIPickerView.

Can anyone help me?

Image: http://i.stack.imgur.com/t0EXa.png


Came here looking for an answer to this but managed to find it on my own. Obvious once you know what to look for.

Ctrl-click the UIPickerView component and drag from data source to the view controller icon in the bar below the view in storyboard (be sure that you set your custom controller for the view). Do the same for delegate and you're all set.

0

精彩评论

暂无评论...
验证码 换一张
取 消