Using MPMoviePlayerViewController in SDK 3.2 for iPad

后端 未结 6 1898
迷失自我
迷失自我 2020-11-30 06:33

I\'ve developed an iPhone app that has been running MPMoviePlayer (pre 3.2 SDK) with no problems. I know this is a newbie question, but how do I get a movie to play in the

6条回答
  •  孤街浪徒
    2020-11-30 06:41

    change this line:

    MPMoviePlayerController  moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
    

    to

    MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
    

    you need the *

提交回复
热议问题