Skip to content
Guest Big Announcement

MobileSubstrate - Put an icon next to the settings label

Featured Replies

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";
    };
}

Solved by Rook

  • Author

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";
    };
}

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

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.

  • Author

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.