Table of Contents

SBCustomIcon

SBCustomIcon is a MobileSubstrate-based extension that allows iPhone applications to easily change their icon in SpringBoard.

Requirements

How it Works

SBCustomIcon adds the following methods to the UIApplication class for customizing the app icon:

The app will also need the following keys in it's Info.plist:

You can determine if SBCustomIcon is available before calling any of its methods with the SBCustomIconAvailable macro, or check if the methods exists with respondsToSelector:. Like that your application can work even if the extension isn't installed.

Header

To use SBCustomIcon in your project, include this header file:

UIApplication-SBCustomIcon.h

#import <UIKit/UIKit.h>
#import <objc/runtime.h>
 
#define SBCustomIconAvailable (class_respondsToSelector(objc_getClass("UIApplication"), @selector(hasCustomIcon)))
 
@interface UIApplication (SBCustomIcon)
- (BOOL)hasCustomIcon;
- (BOOL)setCustomIcon:(UIImage*)customIcon;
- (BOOL)setCustomIconFile:(NSString*)customIconPath;
- (void)removeCustomIcon;
@end

Installation

You can find SBCustomIcon in the BigBoss & Planet-iPhones repository in Cydia, or download the deb here and install it manually:

SBCustomIcon sbcustomicon-1.0.deb (13 KiB) SHA1 c187a6663913cbf7746605376259d6813b748afa

License

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You are free to use the functionality of SBCustomIcon in your own software. The source code is provided as reference, but distribution of modified versions is not allowed, since it could create conflicts.

Source Code