簡體   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:iOS 7中的UIPickerView不會像在iOS 6中那樣自動調整字體大小。如何在iOS 7中實現的任何解決方案?

iOS 7 UIPickerView出現Phonegap問題

最后添加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>

檢查一下: -UIKitUICatalog / UIPickerView

You cannot customize the appearance of picker views.

但是您可以選擇其他方法。 您可以在此委托方法中返回自定義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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM