Jump to content

[Tutorial] How To Add PSLinkListCell in Your Preference Bundle


27 posts in this topic

Recommended Posts

Updated

Hey guys, today I am going to show you how to make a PSLinkListCell in preference bundle ... If someone doesn't know what this means you can have look at the pictures below : 
 
a7d635315714c315f03a72fb978a2fe1.png9ea50962f7d7bf5de6623ac7f9f92afa.png
 
 
Okey lets start : 
 
 
1. You need first to make the tweak and the preference bundle so you can check SUPERGIU tutorial and learn how to make the first basic steps : link here
 
2. After you have made the preference bundle , go to resources file and open the .plist file inside .
 
3. Add this code in your plist file:

<?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>items</key>
<array>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Main</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<true/>
<key>defaults</key>
<string>com.iOSGods.frederic13578</string>
<key>key</key>
<string>enabled</string>
<key>label</key>
<string>Enable</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Colors</string>
</dict>
<dict>
<key>cell</key>
<string>PSLinkListCell</string>
<key>defaults</key>
<string>com.iOSGods.frederic13578</string>
<key>detail</key>
<string>PSListItemsController</string>
<key>key</key>
<string>color</string>
<key>label</key>
<string>Color</string>
<key>validTitles</key>
<array>
<string>dida</string>
<string>frederic13578</string>
<string>Kenny808</string>
<string>Cr4zyas4d</string>
<string>whatever</string>
<string>Green</string>
</array>
<key>validValues</key>
<array>
<string>dida</string>
<string>frederic13578</string>
<string>Kenny808</string>
<string>Cr4zyas4d</string>
<string>whatever</string>
<string>Green</string>
</array>
</dict>
</array>
<key>title</key>
<string>test colors</string>
</dict>
</plist>

Another example:

<dict>
            <key>cell</key>
            <string>PSGroupCell</string>
            <key>label</key>
            <string>Select your amount of currency in-game:</string>
        </dict>
	<dict>
		<key>cell</key>
		<string>PSLinkListCell</string>
		<key>detail</key>
		<string>PSListItemsController</string>
		<key>defaults</key>
		<string>iosgods.com.spoodermanunlimited</string>
		<key>default</key>
		<integer>0</integer>
		<key>key</key>
		<string>key1</string>
		<key>label</key>
		<string>Amount</string>
		<key>validValues</key>
            <array>
			<integer>10000</integer>
			<integer>50000</integer>
			<integer>2000000</integer>
			<integer>500000</integer>
            </array>
                <key>validTitles</key>
            <array>
			<string>10k</string>
			<string>50k</string>
			<string>2000k</string>
			<string>500k</string>
            </array>
	</dict> 

 
4. After you have copied the text above just save it and CD into your project folder and make the package.
 
Now just go to your settings and your PSLinkListCell is ready to use .
 
More information on PSLinkListCell: http://iphonedevwiki.net/index.php/Preferences_specifier_plist#PSLinkListCell_.26_PSSegmentCell


Plz tell me what did you think in the comment below and thx :D
 
 
Credits : frederic13578

Posted

Pretty simple tutorial. :)

 

Nice job! :thumbsup:

 

If you can supply a project folder for the tutorial, that would help users out a lot! :)

Posted

Pretty simple tutorial. :)

 

Nice job! :thumbsup:

 

If you can supply a project folder for the tutorial, that would help users out a lot! :)

 

like put more details and pics ? i will do it tomorow :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines