En esta tercera sesión formativa, impartida por Sergi Hernando, CTO de Mobivery, se trataron los siguientes conceptos: UIWebView, View Cotroller en iPad y el Simulador
2. Qué veremos hoy
Repaso de la sesión anterior
UIWebView
View Cotroller en iPad
Simulador
2
3. Recursos
Tutoriales de Ray Wenderlich
www.raywenderlich.com/tutorials
Cursos de Stanford en iTunes U
itunes.stanford.edu
iOS Developer Library
developer.apple.com/library/ios
3
25. MVC
View Controller Lifecycle
viewDidLoad:
“This method is called after the view controller has loaded its view hierarchy into memory.
You usually override this method to perform additional
initialization on views that were loaded from nib files”
- (void)viewDidLoad
{
[super viewDidLoad];
self.spinner =
[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
self.spinner.center = self.view.center;
}
25
26. MVC
View Controller Lifecycle
viewWillAppear:
“This method is called before the receiver’s view is about to be added to a view hierarchy.
You can override this method to perform custom tasks
associated with displaying the view”
- (void)viewDidLoad
{
[super viewDidLoad];
self.spinner =
[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
self.spinner.center = self.view.center;
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
self.titleLabel.text = [self.detailItem valueForKey:@"title"];
self.authorLabel.text = [self.detailItem valueForKey:@"author"];
}
26
34. iOS Simulator
Hardware
Simulate Memory Warning didReceiveMemoryWarning:
Toggle In-Call Status Bar ⌘T
Simulate Hardware Keyboard
TV Out
Disabled
640 x 480
720 x 480
1024 x 768
1280 x 720 (720p)
1920 x 1024 (1080p)
34
36. iOS Simulator
Debug
Color Blended Layers Reduce amount of red to improve performance
Color Copied Images
Color Misaligned Images
Color Offscreen-Rendered
36