- (IBAction)movie:(id)sender {
NSString *path = [[NSBundle mainBundle]pathForResource:@"movie" ofType:@"MOV"];
NSURL *URL = [[NSURL alloc]initFileURLWithPath:path];
_moviePlayer = [[MPMoviePlayerViewController alloc]initWithContentURL:URL];
[self presentMoviePlayerViewControllerAnimated:_moviePlayer];
[_moviePlayer.moviePlayer play];
}