Home >Technology >Storyboards Slides

Storyboards Slides

Date post:20-Jan-2015
Category:
View:959 times
Download:1 times
Share this document with a friend
Description:
 
Transcript:

2. IDETuesday, January 17, 12 3. Control - DragTuesday, January 17, 12 4. ConnectionsPushModalRelationshipCustomTuesday, 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 paramStringFromClass([AppDeletate Class])Tuesday, January 17, 12 7. What Changed? didFinishLaunching... Returns YES; Can store objects in App Delegate but willneed to drill down to access(*)self.window.rootViewController; info.plist/settings le adds Main storyboardle 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 CellsBasicRight DetailLeft DetailSubtitleTuesday, January 17, 12 13. - (UITableViewCell *)tableView:(UITableView *)tableViewcellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentier = @"GameCell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentier:CellIdentier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentier:CellIdentier]; } cell.textLabel.text = [games objectAtIndex:indexPath.row]; return cell; }Tuesday, January 17, 12 14. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableViewdequeueReusableCellWithIdentier:@"GameCell"]; cell.textLabel.text = [games objectAtIndex:indexPath.row]; return cell; }Tuesday, January 17, 12 15. Gotchas!Tuesday, January 17, 12 16. Identier All SeguesTuesday, January 17, 12 17. Add Identier toUITableViewCellTuesday, January 17, 12 18. Dont 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:@[email protected], January 17, 12

Popular Tags:
of 21/21
Storyboards @techieGary Tuesday, January 17, 12
Embed Size (px)
Recommended