Wednesday, June 19, 2013

Chapter 7: CoreData, iPod access, and playing music - PlayMyLists

Entity Name Warning - If entities duplicate existing class names within iOS frameworks, you may wind up with confusing errors at compile time


Corrections

- import AppPlayList.h in VCPlayListItems and create instance AppPlayList *playList;
- Change the VCPlayListItems class from an NSObject to a UITableViewController
- Be sure to add [[segue destinationViewController] setManagedObjectContext:self.managedObjectContext]; under -(void)prepareForSegue:(UIStoryboardSegue*)segue sender:(id)sender{ in PlayMyListsMasterViewController.m
- Make sure this is the first line under the configureCell method,     NSManagedObject *object = [[[(AppPlayList*)_detailItem tracks] allObjects] objectAtIndex:indexPath.row];
- Set MPMediaPickerControllerDelegate in VCPlayListItems
- In showMediaPicker, new iOS6 method [self presentViewController:picker animated:YES completion:nil];

I am unable to finish this because I have no music on the simulator app

No comments:

Post a Comment