Q:

How to play a segment of a movie in iOS

I have a video, and I want to display the video at a specific time time and stop it at a specific time. I am using MPMoviePlayerController.

A:

You should take a look at the MPMoviePlayerController Class Reference, and the initialPlaybackTime and endPlaybackTime properties.
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:url];
player.initialPlaybackTime = 5; // beginning time in seconds
player.endPlaybackTime = 15; // end time for playback in seconds

