MPMoviePlayerController: How can I make my video loop?

前端 未结 3 2005
忘了有多久
忘了有多久 2021-02-08 00:55

Thank you in advance for any help, I am a newbie and would appreciate any help here.. I have this code to play a movie and it works great. Can somebody PLEASE tell me how to ma

3条回答
  •  误落风尘
    2021-02-08 01:07

    For the timer you can create an Int variable that has the value of your slider and then use a performSelector afterDelay:

    int delayInt = 8; // Substitute the 8 for the value of your slider
    [self performSelector:@selector(myMethod) withObject:nil afterDelay:delayInt];
    

    And then in your "myMethod"

    -(void) myMethod{
    //the code to stop your player and remove view controller
    }
    

提交回复
热议问题