Skip to content

Instantly share code, notes, and snippets.

@marcuswestin
Created September 24, 2013 22:36
Show Gist options
  • Save marcuswestin/6692308 to your computer and use it in GitHub Desktop.
Save marcuswestin/6692308 to your computer and use it in GitHub Desktop.
List of all methods and properties available to UIAppearance manipulation in iOS7
UIBarButtonItem.h
-(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)barMetricsUI_APPEARANCE_SELECTOR;
(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.h
(void)setTitleTextAttributes:(NSDictionary *)attributes forState:(UIControlState)state
(NSDictionary *)titleTextAttributesForState:(UIControlState)state
UIButton.h
@property(nonatomic) UIEdgeInsets contentEdgeInsets UI_APPEARANCE_SELECTOR;
(void)setTitleColor:(UIColor *)color forState:(UIControlState)state UI_APPEARANCE_SELECTOR;
(void)setTitleShadowColor:(UIColor *)color forState:(UIControlState)state UI_APPEARANCE_SELECTOR;
(void)setBackgroundImage:(UIImage *)image forState:(UIControlState)state UI_APPEARANCE_SELECTOR;
UINavigationBar.h
@property(nonatomic,retain) UIColor *barTintColor
(void)setBackgroundImage:(UIImage *)backgroundImage forBarPosition:(UIBarPosition)barPosition barMetrics:(UIBarMetrics)barMetrics
(UIImage *)backgroundImageForBarPosition:(UIBarPosition)barPosition barMetrics:(UIBarMetrics)barMetrics
(void)setBackgroundImage:(UIImage *)backgroundImage forBarMetrics:(UIBarMetrics)barMetrics
(UIImage *)backgroundImageForBarMetrics:(UIBarMetrics)barMetrics
@property(nonatomic,retain) UIImage *shadowImage
@property(nonatomic,copy) NSDictionary *titleTextAttributes
(void)setTitleVerticalPositionAdjustment:(CGFloat)adjustment forBarMetrics:(UIBarMetrics)barMetrics
(CGFloat)titleVerticalPositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics
@property(nonatomic,retain) UIImage *backIndicatorImage
@property(nonatomic,retain) UIImage *backIndicatorTransitionMaskImage
UIPageControl.h
@property(nonatomic,retain) UIColor *pageIndicatorTintColor
@property(nonatomic,retain) UIColor *currentPageIndicatorTintColor
UIProgressView.h
@property(nonatomic, retain) UIColor* progressTintColor
@property(nonatomic, retain) UIColor* trackTintColor
@property(nonatomic, retain) UIImage* progressImage
@property(nonatomic, retain) UIImage* trackImage
UIRefreshControl.h
@property (nonatomic, retain) NSAttributedString *attributedTitle UI_APPEARANCE_SELECTOR;
UISearchBar.h:@property(nonatomic,retain) UIColor *barTintColor
@property(nonatomic,retain) UIImage *backgroundImage
@property(nonatomic,retain) UIImage *scopeBarBackgroundImage
(void)setBackgroundImage:(UIImage *)backgroundImage forBarPosition:(UIBarPosition)barPosition barMetrics:(UIBarMetrics)barMetricsUse UIBarMetricsDefault
(UIImage *)backgroundImageForBarPosition:(UIBarPosition)barPosition barMetrics:(UIBarMetrics)barMetrics
(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
@property(nonatomic) UIOffset searchFieldBackgroundPositionAdjustment
@property(nonatomic) UIOffset searchTextPositionAdjustment
(void)setPositionAdjustment:(UIOffset)adjustment forSearchBarIcon:(UISearchBarIcon)icon
(UIOffset)positionAdjustmentForSearchBarIcon:(UISearchBarIcon)icon
UISegmentedControl.h
(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 UI_APPEARANCE_SELECTOR;
(void)setTitleTextAttributes:(NSDictionary *)attributes forState:(UIControlState)state
(NSDictionary *)titleTextAttributesForState:(UIControlState)state
(void)setContentPositionAdjustment:(UIOffset)adjustment forSegmentType:(UISegmentedControlSegment)leftCenterRightOrAlone barMetrics:(UIBarMetrics)barMetrics5_0) UI_APPEARANCE_SELECTOR;
(UIOffset)contentPositionAdjustmentForSegmentType:(UISegmentedControlSegment)leftCenterRightOrAlone barMetrics:(UIBarMetrics)barMetricsUI_APPEARANCE_SELECTOR;
UISlider.h
@property(nonatomic,retain) UIColor *minimumTrackTintColor
@property(nonatomic,retain) UIColor *maximumTrackTintColor
@property(nonatomic,retain) UIColor *thumbTintColor
UIStepper.h:
(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.h
@property(nonatomic, retain) UIColor *onTintColor
@property(nonatomic, retain) UIColor *thumbTintColor
@property(nonatomic, retain) UIImage *onImage
@property(nonatomic, retain) UIImage *offImage
UITabBar.h
@property(nonatomic,retain) UIColor *barTintColor
@property(nonatomic,retain) UIColor *selectedImageTintColor
@property(nonatomic,retain) UIImage *backgroundImage
@property(nonatomic,retain) UIImage *selectionIndicatorImage
@property(nonatomic,retain) UIImage *shadowImage
@property(nonatomic) UITabBarItemPositioning itemPositioning
@property(nonatomic) CGFloat itemWidth
@property(nonatomic) CGFloat itemSpacing
@property(nonatomic) UIBarStyle barStyle
UITabBarItem.h:
(void)setTitlePositionAdjustment:(UIOffset)adjustment
(UIOffset)titlePositionAdjustment
UITableView.h
@property (nonatomic) UIEdgeInsets separatorInset
@property(nonatomic, retain) UIColor *sectionIndexColor
@property(nonatomic, retain) UIColor *sectionIndexBackgroundColortouched
@property(nonatomic, retain) UIColor *sectionIndexTrackingBackgroundColortouched
UITableViewCell.h
@property (nonatomic) UIEdgeInsets separatorInset
UIToolbar.h
@property(nonatomic,retain) UIColor *barTintColor
(void)setBackgroundImage:(UIImage *)backgroundImage forToolbarPosition:(UIBarPosition)topOrBottom barMetrics:(UIBarMetrics)barMetrics
(UIImage *)backgroundImageForToolbarPosition:(UIBarPosition)topOrBottom barMetrics:(UIBarMetrics)barMetrics
(void)setShadowImage:(UIImage *)shadowImage forToolbarPosition:(UIBarPosition)topOrBottom
(UIImage *)shadowImageForToolbarPosition:(UIBarPosition)topOrBottom
UIView.h
@property(nonatomic,copy) UIColor *backgroundColor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment