I have a data array showing a list of items with label information. On the media section, I want to insert a URL to run a video. What would be a correct procedure to load a url (using NSURL) after the @"Play Video" string? Then when the button is pressed, the url would load and display the video. THe URL is different for each condition. Thanks for any assistance!!
- (void)createData {
NSMutableArray *playList = [[NSMutableArray alloc] init];
Play *play;
NSArray *media;
play = [[Play alloc] init];
play.title = @"Introduction";
play.part = @"Getting in the Game";
media = [[NSArray alloc] initWithObjects:@"Play Video", nil];
play.media = media;
[playList addObject:play];
play = [[Play alloc] init];
play.title = @"Rule #1";
play.part = @"Getting in the Game";
media = [[NSArray alloc] initWithObjects:@"Play Video", nil];
play.media = media;
[playList addObject:play];
play = [[Play alloc] init];
play.title = @"Rule #2";
play.part = @"Getting in the Game";
media = [[NSArray alloc] initWithObjects:@"Play Video", nil];
play.media = media;
[playList addObject:play];