uiwebview

What does Unrestricted Web Access mean in iTunes Connect

女生的网名这么多〃 提交于 2019-12-03 02:42:09
问题 When you are submitting your app to Apple app store, there is a section named "Rating" where you should rate your content based on the chart and identify how frequently the content appears. There is one option called "Unrestricted web access" which there are no further details available about this on the Internet nor iTunes Connect Developer Guide. All you can find everywhere is: Select Yes if your app allows users to navigate and view web pages, such as with an embedded browser. What does

UIWebView webViewDidLoadFinish method not called

浪子不回头ぞ 提交于 2019-12-03 02:42:00
I've been playing around with web views in swift this evening, but have run into a bit of an issue. For some reason I'm not able to get the webViewDidStartLoad or webViewDidFinishLoad methods to fire. In my storyboard, I have an outlet called webView linked to my UIWebView element. Is anyone able to help me with what I am doing wrong? This is my viewController.swift file: import UIKit class ViewController: UIViewController, UIWebViewDelegate { @IBOutlet var webView : UIWebView var url = NSURL(string: "http://google.com") override func viewDidLoad() { super.viewDidLoad() //load initial URL var

Black area on UIWebView during load

大兔子大兔子 提交于 2019-12-03 02:32:13
I noticed that my UITabBar gets a dark-gray color when I preform loadRequest in my UIWebView . If I scroll my WebView during loadRequest there is a black area How can I remove this? I've had this problem before, and it's related to the content inset of your UIWebView. This black area appears wherever you have a bottom inset set on the scrollview. I was able to fix this by setting the opaque property of the webview: self.opaque = NO; Set for UIWebView opaque NO and clear background color simultaneously: You need to set the background color to clear as well as making the webView opaque. This

Pros and cons of MPMoviePlayerController versus launching UIWebView to stream movie

ぐ巨炮叔叔 提交于 2019-12-03 02:02:11
问题 I have a client who has video content for the web in Flash format. My task is to help them show the videos in an iPhone app. I realize that step one is to get these videos into the appropriate Quicktime format for the iPhone. Then I'm going to have to help the client figure out how or where to host these files. If that's tricky I assume they can be hosted at YouTube. My chief concern, though, is which approach to take to stream the video. What are the pros and cons of MPMoviePlayerController

UIWebView crashing on second pdf load request

霸气de小男生 提交于 2019-12-03 01:54:01
I have a UIWebView I'm using to show several small PDF's. The user selects a news article from a table and then the article(PDF) is loaded in a UIWebView on the same screen. The first load always goes just fine. Then the next item I select (no matter which one) crashes the app. This is how I'm loading each article: NSString *filePath = [[NSBundle mainBundle] pathForResource:articleFileName ofType:@"pdf"]; [articleView stopLoading]; [articleView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:filePath]]]; The crash occurs after the loadRequest line. The crash gives no error

How to Add “Write a Review” / “Rate Us” Feature to My App?

二次信任 提交于 2019-12-03 01:53:53
问题 I wish to add some sort of a "Write a Review" or "Rate Us" feature to my app so my customers can easily rate and review my app. Best practice I can think of is to have some sort of pop-up or open a UIWebView within my app so the user is not kicked off of my app while opening the App Store application as done in: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.com/apps/myAppName"]]; Does anyone knows of a way to do that? 回答1: StoreKit API (iOS 10.3 and up) As of

Gesture recognition with UIWebView

丶灬走出姿态 提交于 2019-12-03 00:58:25
I have set up some gesture recognition in an app that I'm building. One of the gestures is a single finger single tap, which hides the toolbar at the top of the screen. Works great except for one thing: a tap on a link causes the toolbar to go away, too. Is it possible to detect a tap that was not a tap on a link? Could I do this by seeing where the tap occurred, and only take action if it didn't occur on an html link? Is this is possible, a pointer to how to determine if a link was tapped would be helpful. Per Octys suggestion, I did attempt to wrap the UIWebView inside a UIView. I'm using

How to extract text contents from html like Read it later or InstaPaper Iphone app?

六月ゝ 毕业季﹏ 提交于 2019-12-03 00:55:43
问题 I want to extract main article content from html on my Iphone app and show it on TextView or CoreText. Read it later and InstaPaper Iphone apps have this feature, but after researching on web, I still can't tell how they do this. At the moment, I take text content from html by this code, but it takes lots of no need contents too. textArticle = [webView stringByEvaluatingJavaScriptFromString:@"document.body.innerText"]; This question is what I wanted, but sadly it was not for Iphone app.

Hide keyboard in UIWebView

跟風遠走 提交于 2019-12-03 00:49:10
Is there a way to make a UIWebView dismiss all associated input controls, such as keyboards/pickers? Haven't tried it in a web view with a picker, but this definitely works to dismiss the keyboard: [theWebView endEditing:YES]; for (UIWindow *keyboardWindow in [[UIApplication sharedApplication] windows]) for (UIView *keyboard in [keyboardWindow subviews]) if([[keyboard description] hasPrefix:@"<UIFormAssistant"] == YES) { [keyboard removeFromSuperview]; } Dirty way but it works ;) 来源: https://stackoverflow.com/questions/3385368/hide-keyboard-in-uiwebview

How does iBooks do this?

最后都变了- 提交于 2019-12-03 00:45:40
I am currently displaying text in a uiwebview. However, I would like to allow a user to select text and perform some action with the selected text (google it). Apple has done this sort of thing with iBooks. When you click on a word you can choose to look up the word in a dictionary. How can I do the same thing with Webview? UIMenuController seems to be what I need to look at. But I couldn't find any sample code on how to do this. I'm new to iPhone development please help. Starting in iOS 3.2 you can use UIMenuController to add additional UIMenuItems to the system menu that appears when