Saturday, February 7, 2015

Making iOS Setting Bundle in Delphi !

Hi,

For making setting bundle in your Delphi iOS apps, you must be make a xml file named : Root.plist
and write some code like this:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"     "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">
<dict>
    <key>PreferenceSpecifiers</key>
    <array>
        <dict>
            <key>Title</key>
            <string>D.P.F iOS Native Components</string>
            <key>Type</key>
            <string>PSGroupSpecifier</string>
            <key>FooterText</key>
            <string>Copyright, 2013-2015 D.P.F.&#xA;All rights reserved.</string>
        </dict>

        <dict>
            <key>DefaultValue</key>
            <string>7.9.5</string>
            <key>Key</key>
            <string>version_preference</string>
            <key>Title</key>
            <string>Version</string>
            <key>Type</key>
            <string>PSTitleValueSpecifier</string>
        </dict>

        <dict>
            <key>DefaultValue</key>
            <string>Babak Yaghoobi</string>
            <key>Key</key>
            <string>developed_preference</string>
            <key>Title</key>
            <string>Developed by</string>
            <key>Type</key>
            <string>PSTitleValueSpecifier</string>
        </dict>

        <dict>
            <key>DefaultValue</key>
            <string>bayaghoobi@gmail.com</string>
            <key>Key</key>
            <string>developed_preference</string>
            <key>Title</key>
            <string>eMail : </string>
            <key>Type</key>
            <string>PSTitleValueSpecifier</string>
        </dict>

        <dict>
            <key>DefaultValue</key>
            <string>Babak Yaghoobi</string>
            <key>Key</key>
            <string>Enabled_preference</string>
            <key>Title</key>
            <string>Enabled</string>
            <key>Type</key>
            <string>PSToggleSwitchSpecifier</string>
        </dict>
    </array>

    <key>StringsTable</key>
    <string>Root</string>
</dict>
</plist>


Now open Deployment windows and add this file in your deploy list, then change remote path :
\Settings.bundle\



Deploy project into Device or Simulator and press home button for closing app,
Go Phone Setting icon and scroll down to bottom, you must be see your app there !





No comments:

Post a Comment