[iOS SDK] UIPickerView の文字が表示されない

おんぷちゃん for iPad のiOS7対応をしているときに遭遇した問題。

UIPopover の中に UIPickerView を入れているのだが、なぜかiOS7にしてから文字列が表示されなくなってしまった。

試行錯誤していたところ、

- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component

を使うと表示されず、

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

の方を使うと表示される。

iOS6 までは問題なく表示されていたのだが。

これは一体?

返信を残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

This site uses Akismet to reduce spam. Learn how your comment data is processed.