Skip to content

SKListControllerProtocol

Elijah Frederickson edited this page Jun 17, 2014 · 3 revisions

This is a view of SKListControllerProtocol and its available methods. Note they are all optional.

-(NSString*)plistName;

This specifies the plist file to load specifiers from, a plist like old/standard preference bundles.

-(NSArray*)customSpecifiers;

This is where the awesome happens! You can return Objective-C defined specifiers here. See other places for examples ;P.

-(NSString*)customTitle;

This is the title to show on the top in the Navigation Controller.

-(BOOL) showHeartImage;

Whether to show a heart in the top right corner for easy sharing or not.

-(BOOL) shiftHeartImage;

Shifts the heart to the right a little, making it look better/more aligned.

-(NSString*) shareMessage;

The message to share! Make sure you change this.

-(UIColor*) heartImageColor;

A custom color for the heart image. Defaults to navigationTintColor, tintColor, or the system blue color.

-(BOOL) tintNavigationTitleText;

Whether to tint the navigation title text (customTitle).

-(BOOL) tintSwitches;

Whether to tint UISwitches

-(UIColor*) tintColor;

The global tint color for the page, used as a back up for other tint colors too.

-(UIColor*) navigationTintColor;

Navigation bar tint color (such as the <Settings and heart)

-(UIColor*) navigationTitleTintColor;

The title tint, generally not used.

-(UIColor*) switchTintColor;

For UISwitch/PSSwitchCell, changes the tint when they are off

-(UIColor*) switchOnTintColor;

or UISwitch/PSSwitchCell, changes the tint when they are on

-(NSString*) headerImage;

Image name of the header image. Can be optional. Example: @"logo.png"

-(NSString*) headerText;

Text to display as a header

-(NSString*) headerSubText;

Subtext to display in the header, e.g. "Small description"

-(UIView*) headerView;

A Custom UIView for the header, you must make and populate the whole thing.

-(UIColor*) headerColor;

Change the header text tint