开发者

Does the SDK support @2x files for video

开发者 https://www.devze.com 2023-02-14 16:01 出处:网络
We are using the MPMoviePlayerController to control video pl开发者_开发知识库ayback, I just wanted to know (as I couldnt find any mention online) whether it took advantage of @2x files when displayed

We are using the MPMoviePlayerController to control video pl开发者_开发知识库ayback, I just wanted to know (as I couldnt find any mention online) whether it took advantage of @2x files when displayed on iPod4/iPhone4, like the UIImage does


No, @2X it's only for UIimages.


It doesn't do it automatically like UIImage will. But you could always implement a system your self. Using a subclass, category or just in your current code before set what file is played by the movie player. So the code would be something like. If it has a retina display append @2x to the file path.

0

精彩评论

暂无评论...
验证码 换一张
取 消