0
NSLog(@"start:%f", player.currentTime);
episode.resumeStamp = [NSNumber numberWithDouble:player.currentTime];
NSLog(@"end: %f", [episode.resumeStamp doubleValue]);
episode
NSManagedObject의 서브 클래스는 아래 코드의 세 줄을 고려하고, 플레이어는 AVAudioPlayer
입니다. player.currentTime
은 NSTimeInterval
(double)을 반환합니다. 위의 코드가 실행될 때 "start :"및 "end :"값이 동일 할 것입니다. 이상하게도 다음 내용이 기록됩니다 ...
2012-09-30 20:13:02.941 MyApp[473:303] start:3.809116
2012-09-30 20:13:02.942 MyApp[473:303] end: 0.000000
2012-09-30 20:13:03.941 MyApp[473:303] start:4.809048
2012-09-30 20:13:03.942 MyApp[473:303] end: 0.000000
2012-09-30 20:13:04.941 MyApp[473:303] start:5.809116
2012-09-30 20:13:04.942 MyApp[473:303] end: 0.000000
왜 이런 일이 벌어 질 수 있습니까? 시간 내 주셔서 대단히 감사합니다!
에 로그를 업데이트 추가 할 가능성이 높습니다. 빠른 응답에 감사드립니다. –