简体   繁体   English

PhoneGap:iOS 7中的UIPickerView不会像在iOS 6中那样自动调整字体大小。如何在iOS 7中实现的任何解决方案?

[英]PhoneGap : UIPickerView in iOS 7 does not adjust font size automatically as it does in iOS 6. Any solution for how can I achieve in iOS 7?

PhoneGap : UIPickerView in iOS 7 does not adjust font size automatically as it does in iOS 6. Any solution for how can I achieve in iOS 7? PhoneGap:iOS 7中的UIPickerView不会像在iOS 6中那样自动调整字体大小。如何在iOS 7中实现的任何解决方案?

iOS 7 UIPickerView出现Phonegap问题

Add optgroup at last and it works... :) 最后添加optgroup ,它可以工作... :)

<select>
  <option selected="" disabled="">Select a value</option>
  <option>Grumpy wizards make toxic brew for the evil Queen and Jack</option>
  <option>Quirky spud boys can jam after zapping five worthy Polysixes</option>
  <option>The wizard quickly jinxed the gnomes before they vaporized</option>
  <option>All questions asked by five watched experts amaze the judge</option>
  <optgroup label=""></optgroup>
</select>

Check this :- UIKitUICatalog/UIPickerView 检查一下: -UIKitUICatalog / UIPickerView

You cannot customize the appearance of picker views.

But you can go for an alternative. 但是您可以选择其他方法。 You can return a custom UILabel in this delegate method:- 您可以在此委托方法中返回自定义UILabel :-

- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
{
UILabel *label = [[UILabel alloc] init];
// Set frame, font color, font size, text, etc properties here.
return label;

}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我的iOS应用程序中的键盘在iPhone 6上太高。如何在XCode中调整键盘的分辨率? - The keyboard in my iOS app is too tall on the iPhone 6. How can I adjust the resolution of the keyboard in XCode? 如何在iOS 7中更改UIPickerView中的文本字体? - How can I change text font in UIPickerView in iOS 7? 如何在数字的字符串中扫描以调整iOS应用程序中的字体大小? - How can I scan a string for numbers to adjust the font size in an iOS app? UIPickerView在iOS 7中不显示数据 - UIPickerView does not display data in iOS 7 iOS 7和iOS 6中UIPickerview选择器值的默认字体名称和大小是什么 - What is the default font name and size for UIPickerview picker values in iOS 7 and iOS 6 iOS 7 UIPickerView没有显示应该显示的内容,iOS 6 UIPickerView可以显示 - iOS 7 UIPickerView not showing what it should, iOS 6 UIPickerView does 字体大小在ios中的意义何在? - What does font size really mean in ios? 如何在iOS中为各种iPhone屏幕尺寸调整字体大小? - How to adjust font size for various iPhone screen sizes in iOS? 如何选择一种可以在iOS中以任何字母显示文本的字体? - How does one choose a font that can display text in any alphabet in iOS? 我如何知道 Swift 的 iOS 字体大小(或百分比)? - How can I know the font size (or percent) of the iOS with Swift?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM