开发者

Customizing UIPickerView in xcode

开发者 https://www.devze.com 2022-12-26 10:42 出处:网络
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 simula

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

精彩评论

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

关注公众号