Professional Documents
Culture Documents
These are confidential sessionsplease refrain from streaming, blogging, or taking pictures
Separating Images
Text Attributes
Alignment Insets
Retina Images
Bar Metrics
Theming
UIAppearance
Resizable Images
Background Images
Control State
Whats Changed
Status Bar
Status Bar
UIStatusBarStyleDefault
Status Bar
UIStatusBarStyleDefault
UIStatusBarStyleLightContent
Status Bar
UIStatusBarStyleDefault
UIStatusBarStyleLightContent
Status Bar
Status Bar
Status Bar
Status Bar
568 pt 480 pt
320 pt
320 pt
Status Bar
568 pt 480 pt
320 pt
320 pt
Status Bar
Status Bar
Status Bar
Status Bar
Tint Color
Tint Color
Tint Color
Tint Color
Bar Backgrounds
Bar Backgrounds
Bar Backgrounds
44 pt
Bar Backgrounds
44 pt
64 pt
Bar Backgrounds
Bar Backgrounds
Bar Backgrounds
32 pt
Bar Backgrounds
32 pt
52 pt
Bar Backgrounds
Bar Backgrounds
Bar Backgrounds
Bar Backgrounds
Bar Backgrounds
44 pt
64 pt
Bar Backgrounds
44 pt
64 pt
Translucency
Translucency
Normal
Translucency
Normal
Translucency
Normal
Custom Background
Translucency
Translucency
Translucency
Translucency
UIViewController.h
Navigation Bar
Navigation Bar
Navigation Bar
Navigation Bar
Navigation Bar
Navigation Bar
Navigation Bar
Navigation Bar
Navigation Bar
Tab Bar
Tab Bar
Tab Bar
UIBarStyleDefault
Tab Bar
UIBarStyleDefault
UIBarStyleBlack
Tab Bar
Tab Bar
Tab Bar
Tab Bar
Tab Bar
Table View
Table View
Table View
Table View
Table View
Buttons
Buttons
UIButtonTypeSystem
Buttons
UIButtonTypeSystem
UIButtonTypeRoundedRect
Buttons
UIButtonTypeSystem
Buttons
UIButtonTypeSystem
Buttons
UIButtonTypeSystem
pauseButton.selected = YES;
Buttons
UIButtonTypeSystem
Other Controls
Other Controls
Asset Catalog
Advanced Customization
Tint Color
Tint Color
Tint Color
Tint Color
Tint Color
Specific
Inherited
Tint Color
window.tintColor = [UIColor redColor];
Specific
Inherited
Tint Color
window.tintColor = [UIColor redColor];
Specific
Inherited
Tint Color
window.tintColor = [UIColor redColor];
Specific
Inherited
Tint Color
window.tintColor = [UIColor redColor];
Specific
Inherited
Tint Color
window.tintColor = [UIColor redColor]; window.tintColor = nil;
Specific
Inherited
Tint Color
window.tintColor = [UIColor redColor]; window.tintColor = nil;
Specific
Inherited
Tint Color
window.tintColor = [UIColor redColor]; window.tintColor = nil;
Specific
Inherited
Tint Color
window.tintColor = [UIColor redColor]; window.tintColor = nil;
Specific
Inherited
Tint Color
Specific
Inherited
Tint Color
view.tintColor = [UIColor greenColor];
Specific
Inherited
Tint Color
view.tintColor = [UIColor greenColor];
Specific
Inherited
Tint Color
view.tintColor = [UIColor greenColor]; window.tintColor = [UIColor redColor];
Specific
Inherited
Tint Color
view.tintColor = [UIColor greenColor]; window.tintColor = [UIColor redColor];
Specific
Inherited
};
Normal
Normal
Normal
Normal
Normal
Normal
Dimmed Normal
window.tintAdjustmentMode = UIViewTintAdjustmentModeDimmed;
Normal
Normal
Normal
Normal
Normal
Dimmed Normal
window.tintAdjustmentMode = UIViewTintAdjustmentModeDimmed;
Normal
Normal
Normal
Normal
Normal
Dimmed Normal
window.tintAdjustmentMode = UIViewTintAdjustmentModeDimmed;
Dimmed Normal
Dimmed Normal
Dimmed Normal
Normal
Normal
Dimmed Normal
window.tintAdjustmentMode = UIViewTintAdjustmentModeDimmed;
Dimmed Normal
Dimmed Normal
Dimmed Normal
Normal
Normal
Dimmed Normal
window.tintAdjustmentMode = UIViewTintAdjustmentModeDimmed;
Dimmed Normal
Dimmed Normal
Dimmed Normal
Dimmed Normal
Dimmed Normal
Normal
Normal
Normal
Normal
Normal
Normal
Auto
Normal
Specific
Inherited
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Dimmed Auto
Normal
Specific
Inherited
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Dimmed Auto
Dimmed Normal
Specific
Inherited
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Dimmed Auto
Dimmed Normal
Specific
Inherited
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Dimmed Auto
Dimmed Normal
Specific
Inherited
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Normal
Auto
Normal
Dimmed Auto
Dimmed Normal
Specific
Inherited
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Normal
Auto
Normal
Dimmed Auto
Dimmed Normal
Specific
Inherited
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Specific
Inherited
Auto
Dimmed Normal
Auto
Dimmed Normal
Normal Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Specific
Inherited
Auto
Dimmed Normal
Auto
Dimmed Normal
Normal Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Specific
Inherited
Auto
Dimmed Normal
Auto
Dimmed Normal
Normal Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Specific
Inherited
Auto
Dimmed Normal
Auto
Dimmed Normal
Normal Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Normal
Specific
Inherited
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Dimmed Auto
Normal
Specific
Inherited
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Dimmed Auto
Dimmed Normal
Specific
Inherited
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Specific
Inherited
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Specific
Inherited
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Auto
Normal
Template Images
Template Images
Template Images
Template Images
Rendering Mode
UIImageRenderingMode
Rendering Mode
UIImageRenderingMode
Automatic UIImageView
AlwaysOriginal
AlwaysTemplate
UIBarButtonItem
Rendering Mode
UIImageRenderingMode
Automatic UIImageView
AlwaysOriginal
AlwaysTemplate
UIBarButtonItem
Rendering Mode
UIImageRenderingMode
Automatic UIImageView
AlwaysOriginal
AlwaysTemplate
UIBarButtonItem
Rendering Mode
UIImageRenderingMode
Automatic UIImageView
AlwaysOriginal
AlwaysTemplate
UIBarButtonItem
Rendering Mode
UIImageRenderingModeAutomatic
Rendering Mode
UIImageRenderingModeAutomatic
Rendering Mode
UIImageRenderingModeAlwaysOriginal
image = [UIImage imageNamed:@favorite]; image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; item = [[UIBarButtonItem alloc] initWithImage:image ...];
Rendering Mode
Rendering Mode
Rendering Mode
Rendering Mode
UIImageRenderingModeAlwaysOriginal
Rendering Mode
Rendering Mode
Rendering Mode
Rendering Mode
Rendering Mode
Rendering Mode
cell.imageView.image = image;
Rendering Mode
cell.imageView.image = image;
- (UIStatusBarStyle)preferredStatusBarStyle; - (BOOL)prefersStatusBarHidden;
[self setNeedsStatusBarAppearanceUpdate];
[UIView animateWithDuration:0.5 animations:^{ // Update necessary state [self updateBackgroundColor]; [self setNeedsStatusBarAppearanceUpdate]; }];
Rating Control
Rating Control
UIImageView
UILabel
keypad
UIImageView
UILabel
keypad
UIButton UIButton
UIButton
UIImageView
UIButton
UIImageView
UIImageView
UIButton
UIImageView
UIButton
button.selected = YES;
Customizing UIButton
UIButtonTypeCustom
Customizing UIButton
- (CGRect)backgroundRectForBounds:(CGRect)bounds; - (CGRect)titleRectForContentRect:(CGRect)contentRect; - (CGRect)imageRectForContentRect:(CGRect)contentRect;
UIButtonTypeCustom
Dynamic Images
Dynamic Images
UIGraphicsBeginImageContextWithOptions(size, NO, 0.0); // Drawing UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext();
Dynamic Images
UIGraphicsBeginImageContextWithOptions(size, NO, 0.0); // Drawing UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); imageView.image = image;
Dynamic Images
image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
imageView.image = image;
Dynamic Images
image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
imageView.image = image;
Dynamic Images
image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
imageView.image = image;
Dynamic Images
image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; image = [image resizableImageWithCapInsets:UIEdgeInsetsMake(...)];
imageView.image = image;
Sending Actions
@interface TTTRatingControl : UIControl
Sending Actions
@interface TTTRatingControl : UIControl
Sending Actions
@interface TTTRatingControl : UIControl
Count View
Count View
Tint Color
Tint Color
- (void)tintColorDidChange;
Tint Color
- (void)tintColorDidChange;
Tint Color
Auto
Normal
- (void)tintColorDidChange;
Auto
Normal
Auto
Normal
Normal Auto
Normal
Auto
Normal
Auto
Normal
Tint Color
Dimmed Auto
Dimmed Normal
- (void)tintColorDidChange;
Auto
Dimmed Normal
Auto
Dimmed Normal
Normal Auto
Dimmed Normal
Auto
Dimmed Normal
Auto
Dimmed Normal
Accessibility
Accessibility
Accessibility
Accessibility
Accessibility
Accessibility
- (BOOL)isAccessibilityElement { return YES; } - (UIAccessibilityTraits)accessibilityTraits { return UIAccessibilityTraitImage; } - (NSString *)accessibilityLabel { return [NSString stringWithFormat:@"%d", self.count]; }
Demo
Summary
Whats changed Advanced customization Making custom controls