Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS Application Settings and Text/HTML

Hi I am trying to show a large amount of static text within the applications settings on the iPhone. I have seen an iPhone app accomplish this and I am trying to achieve the same result. The goal being if the user navigates to the applications settings page, and they can view the terms and conditions.

Any pointers? I can show a Title or MultiValue strings - but these only allow short strings to display. Ideally it should open a full page formatted perhaps with HTML - or line breaks.

I would like this to be available from the iPhone settings for the app (outside of the app iteself). Presumably using the settings bundle & Root.plist.

like image 824
marcusb Avatar asked Nov 21 '11 05:11

marcusb


1 Answers

Thanks Rog - i used iExplorer to look at the Settings.bundle file in the purchased app that had this working: It is complex but here is how it is laid out.

Root.plist:

    <dict>
        <key>Type</key>
        <string>PSGroupSpecifier</string>
        <key>Title</key>
        <string>Terms &amp; Conditions</string>
    </dict>
    <dict>
        <key>Type</key>
        <string>PSChildPaneSpecifier</string>
        <key>Title</key>
        <string>Your Terms heading</string>
        <key>File</key>
        <string>Terms</string>
    </dict>

Terms.plist

<dict>
<key>StringsTable</key>
<string>Root</string>
<key>PreferenceSpecifiers</key>
<array>
    <dict>
        <key>Type</key>
        <string>PSGroupSpecifier</string>
        <key>Title</key>
        <string>Terms1</string>
    </dict>
    <dict>
        <key>Type</key>
        <string>PSGroupSpecifier</string>
        <key>Title</key>
        <string>Terms2</string>
    </dict>
    <dict>
        <key>Type</key>
        <string>PSGroupSpecifier</string>
        <key>Title</key>
        <string>Terms3</string>
    </dict>
    </array>
</dict>

en.lproj/Root.strings

"Terms1" = "iPhone Application Terms";
"Terms2" = "These terms blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah ";
"Terms3" = "The blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah .";
like image 192
marcusb Avatar answered Sep 22 '22 21:09

marcusb