2013-05-22 36 views
0
NSURL *url = [NSURL URLWithString:URL]; 
self.objMovie = [QTMovie movieWithURL:url error:&error]; 
if(self.objMovie != nil) 
{ 
    // Mark the movie as not editable 
    [self.objMovie setAttribute:[NSNumber numberWithBool:NO] forKey:QTMovieEditableAttribute]; 
    [self.objPlayer setMovie:self.objMovie]; 
    //[[self.objPlayer window] makeKeyAndOrderFront:self]; 
    NSLog(@"Error in Video = %@",error); 
    [self.objPlayer play:self]; 
} 

上面的代碼工作正常的手動佈局,但崩潰時,我想與Autolayout使用相同。使用QTMovieView與Autolayout崩潰播放電影

ENV:OSX版本:10.8.3

四處錯誤:

- [StdMovieUISliderCell sliderType]:無法識別的選擇發送到實例0x107157990

回答