开发者

Customizing UIPickerView in xcode

I developed an application which consists of UI开发者_Python百科PickerView....It displays as default size in height of the UIPickerView.I want to display the UIPickerView as 320x480 size(iphone simulator size)..so the whole screen has the picker view without using transorm property,because it will stretched the whole view....its not looking good...even with selection indicator also stretched...I need not stretchable picker view..but need to show the picker view with the whole screen..We can control the width of the UIPickerView..But how can we control the height of the UIPickerView.....

Thanks & Regards...


Apparently with sdk 3.0 you can call setFrame: or initWithFrame: on the UIPickerView to make it any size you like. Would that work for you?


I'm sorry to say, but I'm pretty sure that you cannot adjust the UIPickerView. There are a few hacks you might be able to perform to achieve the results you are looking for as well as changing the color, transparency, etc., but I'm pretty sure that there are not part of the public API and that your app will not be approved.

Good luck.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜