使用QTMovieView播放电影与Autolayout崩溃

时间:2013-05-22 12:38:38

标签: objective-c xcode osx-lion quicktime

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时崩溃。

环境:OSx版本:10.8.3

获取错误:

- [StdMovieUISliderCell sliderType]:无法识别的选择器发送到实例0x107157990

1 个答案:

答案 0 :(得分:1)

看看has anyone seen "[StdMovieUISliderCell sliderType]: unrecognized selector sent to instance"
http://bugreporter.apple.com提交错误报告 - 它可能会被重复关闭,但每次投票都很重要。