Jump to content

[help]How i can make another link in my preference bundle and a logo


Go to solution Solved by castix,

11 posts in this topic

Recommended Posts

Posted

@DIDA IS this a icon ?

I tough it was a logo or symbole

Sorry

What is?

Posted

I'm confused by your questions. Do you want a logo an icon or a link ? What do you even mean with a link ?!

  • Solution
Posted

#import <Preferences/Preferences.h>
 
@interface PreferencesListController: PSListController {
}
@end

@implementation PreferencesListController
- (id)specifiers {
        if(_specifiers == nil) {
                _specifiers = [[self loadSpecifiersFromPlistName:@"Preferences" target:self] retain];
        }
        return _specifiers;
}
- (void)twitter { 
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://twitter.com/user"]]; 
}
- (void)facebook { 
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://facebook.com/user"]]; 
}
- (void)iosgods { 
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://iosgods.com"]]; 
}
@end
<dict>
        <key>cell</key>
          <string>PSButtonCell</string>
        <key>label</key>
          <string>Twitter</string>
        <key>action</key>
          <string>twitter</string>
        <key>icon</key>
          <string></string>
 </dict>
<dict>
        <key>cell</key>
          <string>PSButtonCell</string>
        <key>label</key>
          <string>Facebook</string>
        <key>action</key>
          <string>facebook</string>
        <key>icon</key>
          <string></string>
 </dict>
<dict>
        <key>cell</key>
          <string>PSButtonCell</string>
        <key>label</key>
          <string>Visit iOSGods</string>
        <key>action</key>
          <string>iosgods</string>
        <key>icon</key>
          <string></string>
 </dict>
In icon you can add the name of the .png file you want for the switch.

 

For an icon in the preference pane look in your entry.plist to see the name of the .png file you need (You can change it).

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