おんぷちゃん 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 までは問題なく表示されていたのだが。
これは一体?