objective-c MPMoviePlayerViewController done button language

ぃ、小莉子 提交于 2020-01-15 02:40:26

问题


im using a videoplayer - and realized that the "done" button seems to be labled with "done" even thogh i set "Localization native development region" to "Germany"

i tried a web video and there it was labled with "fertig"

maybe someone can help me with this.

the code snip is here:

    MPMoviePlayerViewController *moviePlayer = 
[[MPMoviePlayerViewController alloc] initWithContentURL:fileURL];

[[NSNotificationCenter defaultCenter] addObserver:self 
                                         selector:@selector(playbackStateChange:)
                                             name:MPMoviePlayerPlaybackDidFinishNotification
                                           object:moviePlayer.moviePlayer];    

[mainVc  presentMoviePlayerViewControllerAnimated:moviePlayer];

回答1:


You can find the answer here: Localize Done button of MPMoviePlayerViewController

  1. check the CFBundleDevelopmentRegion in your Info.plist
  2. make sure you have the German version of InfoPlist.strings
  3. change the language of your Simulator to German


来源:https://stackoverflow.com/questions/7746051/objective-c-mpmovieplayerviewcontroller-done-button-language

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!