As soon as i open my application i have to play a video, by the time the video is being completed i have to add a UIbutton on that video, is it possible, i have searched but i could not find a link, if anybody has passed this situation, and resolved it, can u kindly say me how to do this?
The code for adding the video is :
- (void)viewDidLoad {
NSString *url = [[NSBundle mainBundle] pathForResource:@"splash_screen"ofType:@"mp4"];
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:url]];
player.view.frame = self.view.bounds;
[self.view addSubview:player.view];
[player play];
[super viewDidLoad];
}
You can use –
This will call selector “movieFinished” once movie completed, after that you can make the changes that you want.