我正在使用 MPMoviePlayerController 在我的应用程序中播放视频。在 iOS 6 及更低版本之前它工作得非常好。但是当我停止 MPMoviePlayer 对象时,它在 iOS 7 上崩溃了。
[player stop];
错误消息是:
-[__NSCFType _postNotificationName:object:]: unrecognized selector sent to instance 0x175927b0
2013-09-24 14:46:20.539 myAppName[446:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType _postNotificationName:object:]: unrecognized selector sent to instance 0x175927b0'
*** First throw call stack:
(0x30133f53 0x3a9406af 0x301378e7 0x301361d3 0x30085598 0x31370bd7 0xb2e19 0x328d9f3f 0x328d9edf 0x328d9eb9 0x328c5b3f 0x328d992f 0x328d9601 0x328d468d 0x328a9a25 0x328a8221 0x300ff18b 0x300fe65b 0x300fce4f 0x30067ce7 0x30067acb 0x34d62283 0x32909a41 0xafeeb 0xafe78)
libc++abi.dylib: terminating with uncaught exception of type NSException