开发者

UIPicker font size for a certain column and row

开发者 https://www.devze.com 2023-03-23 03:16 出处:网络
I\'m looking to change the 开发者_开发技巧font size of a certain column and row in a UIPicker. Basically there\'s too much text that runs off the view and I\'d like to size just that particular row in

I'm looking to change the 开发者_开发技巧font size of a certain column and row in a UIPicker. Basically there's too much text that runs off the view and I'd like to size just that particular row in the 2nd column down so it fits?

thanks for any help.


If you want to customize label font size, implement delegate method called :

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

to return a well configured UILabel (you can change font property or set adjustsFontSizeToFitWidth property to YES).

0

精彩评论

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