I'm very new to iOS and have very little experience.
Please could someone show me how to code my app so a video open and play on button click? I can´t find out how to do this anywhere. Any help would be much appreciated.
I think this code will help you to open Movie player.
NSURL *movieURL = [NSURL URLWithString:@"http://example.com/somefile.mp4"]; movieController = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL]; [self presentMoviePlayerViewControllerAnimated:movieController]; [movieController.moviePlayer play];