开发者

Customize Picker View in iPhone

How to create Customized UIPicker View in iphone.I want to customize the background Color,Style of wheel.I also want to customize the different row's selec开发者_高级运维tion.How it will be done. Can Anyone help me Thanks in advance.


You change change the view of the rows as Gypsa stated.

However if you want to change the appearance of the UIPickerView, laying out a transparent png on top of it is your best bet. Just make sure you disable user interactions on the png, so that you can interact with the wheel.

Below screenshots are from my latest app.

Good luck.

Nib without the skin:

Customize Picker View in iPhone

Nib with the skin:

Customize Picker View in iPhone

Final app:

Customize Picker View in iPhone


Hi Use this method to customize your pickerview:-

- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
{
}

This is the delegate method which is called when picker view loaded or reloads

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜