Storyboards Slides

1,262 views

Published on

Published in: Technology, News & Politics
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,262
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
44
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Storyboards Slides

  1. 1. Storyboards @techieGaryTuesday, January 17, 12
  2. 2. IDETuesday, January 17, 12
  3. 3. Control - DragTuesday, January 17, 12
  4. 4. Connections Push Modal Relationship CustomTuesday, January 17, 12
  5. 5. Top Level ObjectsTuesday, January 17, 12
  6. 6. What Changed? • AppDelegate inherits from UIResponder • UIWindow is not an outlet • main.m - last param StringFromClass([AppDeletate Class])Tuesday, January 17, 12
  7. 7. What Changed? • didFinishLaunching... Returns YES; • Can store objects in App Delegate but will need to drill down to access (*)self.window.rootViewController; • info.plist/settings file adds Main storyboard file UIMainStoryboardFileTuesday, January 17, 12
  8. 8. Build an AppTuesday, January 17, 12
  9. 9. Initial View Controller 1. First View on Screen 2.Tuesday, January 17, 12
  10. 10. DynamicTuesday, January 17, 12
  11. 11. StaticTuesday, January 17, 12
  12. 12. UITableView Cells Basic Right Detail Left Detail SubtitleTuesday, January 17, 12
  13. 13. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"GameCell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; } cell.textLabel.text = [games objectAtIndex:indexPath.row]; return cell; }Tuesday, January 17, 12
  14. 14. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"GameCell"]; cell.textLabel.text = [games objectAtIndex:indexPath.row]; return cell; }Tuesday, January 17, 12
  15. 15. Gotchas!Tuesday, January 17, 12
  16. 16. Identifier All SeguesTuesday, January 17, 12
  17. 17. Add Identifier to UITableViewCellTuesday, January 17, 12
  18. 18. Don’t forget... - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.identifier isEqualToString:@"PickGame"]) { GamePickerViewController *gamePickerViewController = segue.destinationViewController; gamePickerViewController.delegate = self; gamePickerViewController.game = game; } }Tuesday, January 17, 12
  19. 19. One More Thing...;) [self performSegueWithIdentifier:@"SegueRegister" sender:nil];Tuesday, January 17, 12
  20. 20. Hands On!Tuesday, January 17, 12
  21. 21. Follow: @MobileDevNJ @TechieGaryTuesday, January 17, 12

×