-
Notifications
You must be signed in to change notification settings - Fork 134
UIView Background Handling
Paul Colton edited this page Feb 25, 2014
·
1 revision
Control | usesColorOnly | usesImage | NOTES |
---|---|---|---|
PXMKAnnotationContainerView | - | - | |
PXMKAnnotationView | - | setImage | |
PXMKMapView | - | - | |
PXMPVolumeView | - | - | |
PXUIActionSheet | backgroundColor = context.color | backgroundColor = [UIColor colorWithPatternImage: context.backgroundImage] | |
PXUIActivityIndicatorView | backgroundColor = context.color, layer.contents = nil | backgroundColor = [UIColor clearColor], layer.contents = context.backgroundImage | |
PXUIButton | backgroundColor = context.color OR backgroundImage = context.backgroundImage | backgroundImage = context.backgroundImage | Use background color on RoundedRect, normal state only |
PXUICollectionView | backgroundView = nil, backgroundColor = context.color | backgroundColor = [UIColro clearColor], backgroundView = [UIImageView context.background] | |
PXUICollectionViewCell | !!! backgroundView, backgroundColor, selectedBackgroundView | Too complicated to capture here | |
PXUIDatePicker | - | - | |
PXUIImageView | (see note) | image = context.backgroundImage | If highlighted, simply sets highlightedImage = context.backgroundImage |
PXUILabel | backgroundColor = context.color | backgroundColor = [UIColor colorWithPatternImage: context.backgroundImage] | |
PXUILayoutContainerView | - | - | |
PXUINavigationBar | barTintColor = context.color OR tintColor = context.color, backgroundImage = nil | backgroundColor = [UIColor clearColor], backgroundImage = context.backgroundImage | UsesImage uses barMetrics |
PXUIPageControl | backgroundColor = context.color | backgroundColor = [UIColor clearColor], layer.contents = backgroundImage | |
PXUIPickerView | - | - | |
PXUIProgressView | trackTintColor = context.color, trackImage = nil | trackImage = inset(context.backgroundImage) OR trackImage = context.backgroundImage | |
PXUIRefreshControl | - | - | |
PXUIScrollView | backgroundColor = context.color, layer.contents = nil | backgroundColor = [UIColor clearColor], layer.contents = backgroundImage | |
PXUISearchBar | barTintColor = context.color OR tintColor = context.color | barTintColor = [UIColor colorWithPatternImage: context.backgroundImage] OR setTintColor | |
PXUISegmentedControl | tintColor = context.color | tintColor = nil, backgroundImage = context.backgroundImage | UsesImage uses barMetrics |
PXUISlider | backgroundColor = context.color | backgroundColor = [UIColor colorWithPatternImage: context.backgroundImage] | |
PXUIStepper | tintColor = nil, backgroundImage = context.backgroundImage | tintColor = nil, backgroundImage = context.backgroundImage | iOS 6+ only |
PXUISwitch | backgroundColor = context.color | layer.contents = context.backgroundImage | |
PXUITabBar | !!! barTintColor, backgroundImage | ? | Some faulty logic in here |
PXUITableView | backgroundView = nil, backgroundColor = context.color | backgroundColor = [UIColor clearColor], backgroundView = context.backgroundImage | |
PXUITableViewCell | !!! backgroundView, backgroundColor, objc_setAssociatedObject, selectedBackgroundView | Possibly the most complicated logic we have | |
PXUITableViewCellContentView | - | - | |
PXUITableViewHeaderFooterView | contentView.backgroundColor = context.color | contentView.backgroundColor = [UIColor colorWithPatternImage: context.backgroundImage] | |
PXUITextField | backgroundColor = context.color | backgroundColor = [UIColor colorWithPatternImage: context.backgroundImage] | |
PXUITextView | backgroundColor = context.color | layer.contents = context.backgroundImage | |
PXUIToolbar | barTintColor OR tintColor, backgroundImage = nil | backgroundColor = [UIColor clearColor], backgroundImage = [UIColor colorWithPatternImage: context.backgroundImage] | |
PXUIView | backgroundColor = context.color | backgroundColor = [UIColor colorWithPatternImage: context.backgroundImage] | |
PXUIWebView | - | - | |
UIBarButtonItem+PXStyling | backgroundImage = nil, tintColor = context.color | backgroundImage = context.backgroundImage | |
UITabBarItem+PXStyling | ? | setImage = contextBackgroundImage OR setFinishSelectedImage = context.backgroundImage | Doesn't handle colorOnly case |