+ All Categories
Home > Technology > Storyboards Slides

Storyboards Slides

Date post: 20-Jan-2015
Category:
Upload: mobiledevnj
View: 971 times
Download: 1 times
Share this document with a friend
Description:
 
Popular Tags:
21
Storyboards @techieGary Tuesday, January 17, 12
Transcript
Page 1: Storyboards Slides

Storyboards

@techieGary

Tuesday, January 17, 12

Page 2: Storyboards Slides

IDE

Tuesday, January 17, 12

Page 3: Storyboards Slides

Control - Drag

Tuesday, January 17, 12

Page 4: Storyboards Slides

Connections

Relationship

Modal

Push

Custom

Tuesday, January 17, 12

Page 5: Storyboards Slides

Top Level Objects

Tuesday, January 17, 12

Page 6: Storyboards Slides

What Changed?

• AppDelegate inherits from UIResponder

• UIWindow is not an outlet

• main.m - last param StringFromClass([AppDeletate Class])

Tuesday, January 17, 12

Page 7: Storyboards Slides

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 UIMainStoryboardFile

Tuesday, January 17, 12

Page 8: Storyboards Slides

Build an App

Tuesday, January 17, 12

Page 9: Storyboards Slides

Initial View Controller

First View on ScreenFirst View on Screen

1.1.

2.2.

Tuesday, January 17, 12

Page 10: Storyboards Slides

Dynamic

Tuesday, January 17, 12

Page 11: Storyboards Slides

Static

Tuesday, January 17, 12

Page 12: Storyboards Slides

UITableView Cells

Basic

Right Detail

Left Detail

Subtitle

Tuesday, January 17, 12

Page 13: Storyboards Slides

- (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

Page 14: Storyboards Slides

- (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

Page 15: Storyboards Slides

Gotchas!

Tuesday, January 17, 12

Page 16: Storyboards Slides

Identifier All Segues

Tuesday, January 17, 12

Page 17: Storyboards Slides

Add Identifier to UITableViewCell

Tuesday, January 17, 12

Page 18: Storyboards Slides

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

Page 19: Storyboards Slides

One More Thing...;)

[self performSegueWithIdentifier:@"SegueRegister" sender:nil];

Tuesday, January 17, 12

Page 20: Storyboards Slides

Hands On!

Tuesday, January 17, 12

Page 21: Storyboards Slides

Follow:@MobileDevNJ@TechieGary

Tuesday, January 17, 12


Recommended