Jump to content

MobileSubstrate - Put an icon next to the settings label


Go to solution Solved by Rook,

11 posts in this topic

Recommended Posts

Posted

Hello

 

When i put the icon 50x50 in my prefences. it does not show the icon next to the label like this

1VROKWA.png

 

 

What i did is take out the icon from appshopper website, resize it to 50x50 and save it as PNG, name it to exampleicon.png excatly name from "entry.plist" file and place the png file on the prefences folder.

{
    entry = {
    bundle = example;
    cell = PSLinkCell;
    detail = exampleListController;
    icon = exampleicon.png;
    isController = 1;
    label = "Example";
    };
}
Posted

You need to resize your icon to 32x32 or 29x29 for it to display like the others.

 

You also need more than one icon for each device screensize.

 

[email protected] [email protected].

so should the entry.plist look like this?

{
    entry = {
    bundle = example;
    cell = PSLinkCell;
    detail = exampleListController;
    icon = Example2x.png [email protected];
    isController = 1;
    label = "Example";
    };
}
Posted

so should the entry.plist look like this?

 

{
    entry = {
    bundle = example;
    cell = PSLinkCell;
    detail = exampleListController;
    icon = Example2x.png [email protected];
    isController = 1;
    label = "Example";
    };
}

I'm not sure, I've never fully tried this because I only had 1 device and used a 86x86 icon for everything. :p

Posted

ok so i will not use an icon until i find out

Just use a 29x29 one for the settings. :)

 

It might look a bit pixelated but it's the same size as the other ones.

  • Solution
Posted

still not working...

What's not working??

 

Does your icon not show at all???

 

You can try the Template posted in tools also.

Posted

The icon is also in your resources preferencebundle.plist

<key>entry</key>
<dict>
     <key>cell</key>
     <string>PSLinkCell</string>
     <key>icon</key>
     <string>icon.png</string>
     <key>label</key>
     <string>Example</string>
</dict>

Edit the icon name in this block to whatever you called it.

Posted

What's not working??

 

Does your icon not show at all???

 

You can try the Template posted in tools also.

i tried your template and it worked prefectly. now i found out that the icon must be placed in "Resources" folder...

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