问题
in my app I have a UIWebview
for present a videos in it.
when click on the video, the webview embedded dynamically to full screen.
my problem is with its title, it have strange title !! like this :
my code is :
cell.vedioWebPage.backgroundColor = UIColor.blackColor()
let vedioUrlEncodeStr = videosURLArray[indexPath.item].URL.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!
let requestURL : NSURL = NSURL(string: vedioUrlEncodeStr)!
let request = NSURLRequest(URL: requestURL)
cell.vedioWebPage.loadRequest(request)
Why that happens and how to remove it ? If anyone has encounter the same problem then please help me on these ?
Thanks
回答1:
The question is to old, but may be anyone will search for the answer, like me... This bug may appears if you forced app locale. Can be fixed (or changed) by defining PLAYBACK_CONTROLS_VIEW_CONTROLLER_DONE_BUTTON_TITLE string it your Localizable.string file.
来源:https://stackoverflow.com/questions/34268267/unexpected-title-appears-in-webview-vc-swift