开发者

Best way to present 5 choices and still fit in the screen

I have a field that has 5 different formatting options. In the app's settings I was originally using a UISegmentedControl inside a grouped style UITableViewCell. Back when it only had 3 options. But now that there are 5 even with abbreviated text the text won't fit on iPhone sized screen in portrait. They fit fine in landscape, but since the rest of the app works best in portrait it seems really bad practice to force only 开发者_JAVA百科the settings to be landscape. Also the only way I see to force landscape on only the settings table view is to use [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeLeft]; which seems to be a undocumented/private API so I shouldn't use it. I have various other settings cells with UISegmentedControls in them, and they work fine. If I change the UISegmentedControl's style to UISegmentedControlStyleBar it fits properly. I'm just not sure that that is a good fit. What way do you think I should go with this? I'm not 100% sure on the % or Over 12 text but I need something similar. Is there some way to adjust the font size with the standard UISegmentedControl?

Best way to present 5 choices and still fit in the screen

Best way to present 5 choices and still fit in the screen

Best way to present 5 choices and still fit in the screen

Best way to present 5 choices and still fit in the screen


The way I usually handle this is to navigate to another view when the table cell is selected. Apple's iOS "Settings" app is a prime example of this.


I would use a picker view or a separate table view instead of a segmented control.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜