View controllers en iOS

978 views

Published on

Extracto de diapositivas de la clase dedicada a controladores de vistas (ViewControllers) en programación objective-c para iPhone, iPod y iPad. Del curso de iOS en ITMaster Professional Training

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
978
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

View controllers en iOS

  1. 1. iOSView Controllers Rich Internet Applications · Ajax · Web Services · Mobile · .NET 3.0 Java ME · ActionScript 3.0 · PHP · CSS 3.0 · Flex · Silverlight · Flash Mariano A. Carrizo mariano@itmaster.com.ar 1
  2. 2. ViewControllers• CustomViewControllers• Container ViewControllers• Modal ViewControllers
  3. 3. Herencias
  4. 4. UIViewController
  5. 5. UITableViewcontroller
  6. 6. UINavigationViewController
  7. 7. UITabBarController
  8. 8. UISplitViewController
  9. 9. Modal ViewController
  10. 10. ANATOMÍA DEL VIEWCONTROLLERuiViewController
  11. 11. Anatomía del ViewController
  12. 12. Presentando un ViewController- (void)displayModalView{MyViewController* vc = [[[MyViewControlleralloc]initWithNibName:@"MyViewController” bundle:nil] autorelease]; [self presentModalViewController:vcanimated:YES];}
  13. 13. NavigationController
  14. 14. NavigationController
  15. 15. NavigationController
  16. 16. Anatomía del NavigationController
  17. 17. NavigationController- (void)applicationDidFinishLaunching:(UIApplication *)application{UIViewController *rootController = [[MyRootViewControlleralloc] init];navigationController = [[UINavigationControlleralloc]initWithRootViewController:rootController]; [rootController release]; window = [[UIWindowalloc] initWithFrame:[[UIScreenmainScreen] bounds]]; [window addSubview:navigationController.view]; [window makeKeyAndVisible];}
  18. 18. Flujo de eventos
  19. 19. NavigationBar
  20. 20. Propiedades del NavigationBar•barStyle• translucent•tintColor
  21. 21. CustomBarButtonItemsUIBarButtonItem *segmentBarItem = [[UIBarButtonItemalloc]initWithCustomView:segmentedControl];self.navigationItem.rightBarButtonItem = segmentBarItem;[segmentBarItem release];
  22. 22. ToolBar
  23. 23. Modal ViewControllers
  24. 24. VIEWCONTROLLERS¡Manos a la obra!

×