红色是出错的地方
- (IBAction)timeSliderValueChanged:(id)sender {
self.currentTime = CMTimeMakeWithSeconds(sender.value, 1000);
}
经过百度(嗯嗯,我上不了google这个女神啊,只好叫百度来一炮)
http://stackoverflow.com/questions/26863618/property-frame-not-found-on-object-of-type-strong-id
说 You need to tell the compiler that sender
is, in fact, a UIButton
:
改为:
- (IBAction)timeSliderValueChanged:(id)sender {
UISlider *slider = sender;
self.currentTime = CMTimeMakeWithSeconds(slider.value, 1000);
}
编译通过。
好吧,实质上这篇还是转载的。