Storyboards Slides
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Storyboards Slides

on

  • 1,217 views

 

Statistics

Views

Total Views
1,217
Views on SlideShare
1,217
Embed Views
0

Actions

Likes
2
Downloads
40
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Storyboards Slides Presentation Transcript

  • 1. Storyboards @techieGaryTuesday, January 17, 12
  • 2. IDETuesday, January 17, 12
  • 3. Control - DragTuesday, January 17, 12
  • 4. Connections Push Modal Relationship CustomTuesday, January 17, 12
  • 5. Top Level ObjectsTuesday, January 17, 12
  • 6. What Changed? • AppDelegate inherits from UIResponder • UIWindow is not an outlet • main.m - last param StringFromClass([AppDeletate Class])Tuesday, January 17, 12
  • 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. Build an AppTuesday, January 17, 12
  • 9. Initial View Controller 1. First View on Screen 2.Tuesday, January 17, 12
  • 10. DynamicTuesday, January 17, 12
  • 11. StaticTuesday, January 17, 12
  • 12. UITableView Cells Basic Right Detail Left Detail SubtitleTuesday, January 17, 12
  • 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. - (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. Gotchas!Tuesday, January 17, 12
  • 16. Identifier All SeguesTuesday, January 17, 12
  • 17. Add Identifier to UITableViewCellTuesday, January 17, 12
  • 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. One More Thing...;) [self performSegueWithIdentifier:@"SegueRegister" sender:nil];Tuesday, January 17, 12
  • 20. Hands On!Tuesday, January 17, 12
  • 21. Follow: @MobileDevNJ @TechieGaryTuesday, January 17, 12