Skip to content

Instantly share code, notes, and snippets.

@borked
Forked from mattt/uiappearance-selector.md
Created May 19, 2013 23:24
Show Gist options
  • Save borked/5609518 to your computer and use it in GitHub Desktop.
Save borked/5609518 to your computer and use it in GitHub Desktop.

Generate the list yourself:

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
  Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep -H UI_APPEARANCE_SELECTOR ./* | sed 's/ __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0) UI_APPEARANCE_SELECTOR;//'

UIActivityIndicatorView

@property (readwrite, nonatomic, retain) UIColor *color

UIBarButtonItem

@property(nonatomic,retain) UIColor *tintColor

- (void)setBackgroundImage:(UIImage *)backgroundImage 
                  forState:(UIControlState)state 
                barMetrics:(UIBarMetrics)barMetrics
- (UIImage *)backgroundImageForState:(UIControlState)state 
                          barMetrics:(UIBarMetrics)barMetrics
- (void)setBackgroundImage:(UIImage *)backgroundImage 
                  forState:(UIControlState)state 
                     style:(UIBarButtonItemStyle)style 
                barMetrics:(UIBarMetrics)barMetrics
- (UIImage *)backgroundImageForState:(UIControlState)state 
                               style:(UIBarButtonItemStyle)style 
                          barMetrics:(UIBarMetrics)barMetrics
- (void)setBackgroundVerticalPositionAdjustment:(CGFloat)adjustment 
                                  forBarMetrics:(UIBarMetrics)barMetrics
- (CGFloat)backgroundVerticalPositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics
- (void)setTitlePositionAdjustment:(UIOffset)adjustment 
                     forBarMetrics:(UIBarMetrics)barMetrics
- (UIOffset)titlePositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics
- (void)setBackButtonBackgroundImage:(UIImage *)backgroundImage 
                            forState:(UIControlState)state 
                          barMetrics:(UIBarMetrics)barMetrics
- (UIImage *)backButtonBackgroundImageForState:(UIControlState)state 
                                    barMetrics:(UIBarMetrics)barMetrics
- (void)setBackButtonTitlePositionAdjustment:(UIOffset)adjustment 
                               forBarMetrics:(UIBarMetrics)barMetrics
- (UIOffset)backButtonTitlePositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics
- (void)setBackButtonBackgroundVerticalPositionAdjustment:(CGFloat)adjustment 
                                            forBarMetrics:(UIBarMetrics)barMetrics
- (CGFloat)backButtonBackgroundVerticalPositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics

UIBarItem

- (void)setTitleTextAttributes:(NSDictionary *)attributes 
                      forState:(UIControlState)state
- (NSDictionary *)titleTextAttributesForState:(UIControlState)state

UIButton

@property(nonatomic,retain) UIColor *tintColor

UINavigationBar

@property(nonatomic,retain) UIImage *shadowImage
@property(nonatomic,retain) UIColor *tintColor
@property(nonatomic,copy) NSDictionary *titleTextAttributes

- (void)setBackgroundImage:(UIImage *)backgroundImage 
             forBarMetrics:(UIBarMetrics)barMetrics
- (UIImage *)backgroundImageForBarMetrics:(UIBarMetrics)barMetrics
- (void)setTitleVerticalPositionAdjustment:(CGFloat)adjustment 
                             forBarMetrics:(UIBarMetrics)barMetrics
- (CGFloat)titleVerticalPositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics

UIPageControl

@property(nonatomic,retain) UIColor *currentPageIndicatorTintColor
@property(nonatomic,retain) UIColor *pageIndicatorTintColor

UIProgressView

@property(nonatomic, retain) UIImage* progressImage
@property(nonatomic, retain) UIColor* progressTintColor
@property(nonatomic, retain) UIImage* trackImage
@property(nonatomic, retain) UIColor* trackTintColor

UIRefreshControl

@property (nonatomic, retain) NSAttributedString *attributedTitle
@property (nonatomic, retain) UIColor *tintColor

UISearchBar

@property(nonatomic,retain) UIImage *backgroundImage
@property(nonatomic,retain) UIImage *scopeBarBackgroundImage
@property(nonatomic) UIOffset searchFieldBackgroundPositionAdjustment
@property(nonatomic) UIOffset searchTextPositionAdjustment

- (void)setSearchFieldBackgroundImage:(UIImage *)backgroundImage 
                             forState:(UIControlState)state
- (UIImage *)searchFieldBackgroundImageForState:(UIControlState)state
- (void)setImage:(UIImage *)iconImage 
forSearchBarIcon:(UISearchBarIcon)icon 
           state:(UIControlState)state
- (UIImage *)imageForSearchBarIcon:(UISearchBarIcon)icon 
           state:(UIControlState)state
- (void)setScopeBarButtonBackgroundImage:(UIImage *)backgroundImage 
                                forState:(UIControlState)state
- (UIImage *)scopeBarButtonBackgroundImageForState:(UIControlState)state
- (void)setScopeBarButtonDividerImage:(UIImage *)dividerImage 
                  forLeftSegmentState:(UIControlState)leftState 
                    rightSegmentState:(UIControlState)rightState
- (UIImage *)scopeBarButtonDividerImageForLeftSegmentState:(UIControlState)leftState 
                                         rightSegmentState:(UIControlState)rightState
- (void)setScopeBarButtonTitleTextAttributes:(NSDictionary *)attributes 
                                    forState:(UIControlState)state
- (NSDictionary *)scopeBarButtonTitleTextAttributesForState:(UIControlState)state
- (void)setPositionAdjustment:(UIOffset)adjustment 
             forSearchBarIcon:(UISearchBarIcon)icon
- (UIOffset)positionAdjustmentForSearchBarIcon:(UISearchBarIcon)icon

UISegmentedControl

@property(nonatomic,retain) UIColor *tintColor

- (void)setBackgroundImage:(UIImage *)backgroundImage 
                  forState:(UIControlState)state 
                barMetrics:(UIBarMetrics)barMetrics
- (UIImage *)backgroundImageForState:(UIControlState)state 
                          barMetrics:(UIBarMetrics)barMetrics
- (void)setDividerImage:(UIImage *)dividerImage 
    forLeftSegmentState:(UIControlState)leftState 
      rightSegmentState:(UIControlState)rightState 
             barMetrics:(UIBarMetrics)barMetrics
- (UIImage *)dividerImageForLeftSegmentState:(UIControlState)leftState 
                           rightSegmentState:(UIControlState)rightState 
                                  barMetrics:(UIBarMetrics)barMetrics
- (void)setTitleTextAttributes:(NSDictionary *)attributes 
                      forState:(UIControlState)state
- (NSDictionary *)titleTextAttributesForState:(UIControlState)state
- (void)setContentPositionAdjustment:(UIOffset)adjustment 
                      forSegmentType:(UISegmentedControlSegment)leftCenterRightOrAlone 
                          barMetrics:(UIBarMetrics)barMetrics
- (UIOffset)contentPositionAdjustmentForSegmentType:(UISegmentedControlSegment)leftCenterRightOrAlone 
                                         barMetrics:(UIBarMetrics)barMetrics

UISlider

@property(nonatomic,retain) UIColor *minimumTrackTintColor
@property(nonatomic,retain) UIColor *maximumTrackTintColor
@property(nonatomic,retain) UIColor *thumbTintColor

UIStepper

@property(nonatomic,retain) UIColor *tintColor

- (void)setBackgroundImage:(UIImage*)image 
                  forState:(UIControlState)state
- (UIImage*)backgroundImageForState:(UIControlState)state
- (void)setDividerImage:(UIImage*)image 
    forLeftSegmentState:(UIControlState)leftState 
      rightSegmentState:(UIControlState)rightState
- (UIImage*)dividerImageForLeftSegmentState:(UIControlState)state 
                          rightSegmentState:(UIControlState)state
- (void)setIncrementImage:(UIImage *)image 
                 forState:(UIControlState)state
- (UIImage *)incrementImageForState:(UIControlState)state
- (void)setDecrementImage:(UIImage *)image 
                 forState:(UIControlState)state
- (UIImage *)decrementImageForState:(UIControlState)state

UISwitch

@property(nonatomic, retain) UIColor *onTintColor
@property(nonatomic, retain) UIImage *onImage
@property(nonatomic, retain) UIImage *offImage
@property(nonatomic, retain) UIColor *thumbTintColor
@property(nonatomic, retain) UIColor *tintColor

UITabBar

@property(nonatomic,retain) UIImage *backgroundImage
@property(nonatomic,retain) UIColor *selectedImageTintColor
@property(nonatomic,retain) UIImage *selectionIndicatorImage
@property(nonatomic,retain) UIImage *shadowImage
@property(nonatomic,retain) UIColor *tintColor

UITabBarItem

- (void)setTitlePositionAdjustment:(UIOffset)adjustment
- (UIOffset)titlePositionAdjustment

UITableView

@property(nonatomic, retain) UIColor *sectionIndexColor
@property(nonatomic, retain) UIColor *sectionIndexTrackingBackgroundColor

UITableViewHeaderFooterView

@property(nonatomic, retain) UIColor *tintColor

UIToolbar

@property(nonatomic,retain) UIColor *tintColor
- (void)setBackgroundImage:(UIImage *)backgroundImage 
        forToolbarPosition:(UIToolbarPosition)topOrBottom 
                barMetrics:(UIBarMetrics)barMetrics
- (UIImage *)backgroundImageForToolbarPosition:(UIToolbarPosition)topOrBottom 
                                    barMetrics:(UIBarMetrics)barMetrics
- (void)setShadowImage:(UIImage *)shadowImage 
    forToolbarPosition:(UIToolbarPosition)topOrBottom
- (UIImage *)shadowImageForToolbarPosition:(UIToolbarPosition)topOrBottom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment