开发者

How to center text label in iPhone Settings application

开发者 https://www.devze.com 2022-12-19 13:35 出处:网络
When you look at Settings - General - Keyboard you can see text \"Double tapping the space bar will insert a period followed by a space\".

When you look at Settings - General - Keyboard you can see text "Double tapping the space bar will insert a period followed by a space".

Question: how can I do something similar in my own app settings?

Got pretty close by using PSGroupSpecifier for text, but can't figure out how to 开发者_StackOverflow社区center the text. Centering is the missing feature I'm now looking for.


No, you can't do that with AppStore Settings bundles.

You can fake centering by inserting a lot of spaces at the beginning.

(Centering the text is restricted to internal "preference bundles".)


changed for ios 4.0 - > make use for the footerText field of a group specifier.

follow: http://developer.apple.com/library/ios/#documentation/PreferenceSettings/Conceptual/SettingsApplicationSchemaReference/Articles/PSGroupSpecifier.html#//apple_ref/doc/uid/TP40007009-SW1

all you will need is in there.

0

精彩评论

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