Unexpected Title Appears in WebView VC Swift

自闭症网瘾萝莉.ら 提交于 2020-01-15 03:18:06

问题


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

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