Iphone MPMoviePlayerController未设置背景图像的边界

Iphone MPMoviePlayerController未设置背景图像的边界,iphone,objective-c,mpmovieplayercontroller,Iphone,Objective C,Mpmovieplayercontroller,我正在使用MPMoviePlayerController播放媒体。我想将图像设置为播放器的背景。图像会相应地设置,但当我为图像设置边界时,图像不会根据边界进行设置。我尝试了以下代码: UIImageView *imageView=[[UIImageView alloc]initWithImage:[operationControl getCoverImage:stringId]]; imageView.bounds=CGRectMake(0, 100, 200, 200)

我正在使用MPMoviePlayerController播放媒体。我想将图像设置为播放器的背景。图像会相应地设置,但当我为图像设置边界时,图像不会根据边界进行设置。我尝试了以下代码:

        UIImageView *imageView=[[UIImageView alloc]initWithImage:[operationControl getCoverImage:stringId]];
    imageView.bounds=CGRectMake(0, 100, 200, 200);
    [moviePlayer.backgroundView addSubview:imageView];
    [moviePlayer.backgroundView setBackgroundColor:[UIColor purpleColor]];   
    moviePlayer.controlStyle = MPMovieControlStyleDefault;
    moviePlayer.shouldAutoplay = YES;
    [moviePlayer setScalingMode:MPMovieScalingModeAspectFit];
    [self.view addSubview:moviePlayer.view];
    [moviePlayer setFullscreen:YES animated:YES];

你说的按界限设置是什么意思?此外,“框架”属性是相对于其父视图定位视图的方式。