Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你如何播放一部电影NSFileWrapper?
NSFileWrapper
我希望在(如)中找到一个initWithData:构造函数,但只提供了一个。MPMoviePlayerControllerAVAudioPlayerinitWithContentURL:
initWithData:
MPMoviePlayerController
AVAudioPlayer
initWithContentURL:
NSFileWrapper您可以通过向其发送消息来获取节点的文件名- filename。从那里,您可以将其转换为NSURLusing – initFileURLWithPath:,这应该可以解决问题,因为您可以调用initWithContentURL:.
- filename
NSURL
– initFileURLWithPath: