uiwebview

Integrating linkedin in ios App for getting some details

只愿长相守 提交于 2019-12-25 03:08:23
问题 I am working on the linkedin based signup,I want to get the some profile details from linkedin. If user has already linkedin installed in your it should open the app and get the details if not you should open the web view and get the details. I downloaded sdk from developers.linkedin.com and I am using the below code. @IBAction func Signup(_ sender: UIButton) { if (self.isInstalled(appScheme: "linkedin://app")){ // App installed let permissions = [LISDK_BASIC_PROFILE_PERMISSION,LISDK

UIWebView loading image using a callback

久未见 提交于 2019-12-25 03:04:31
问题 I would like to know how to request images using some type of callback feature while requesting html pages from my server for my UIWebView. Currently I have no idea how a UIWebView downloads the image thats on a webpage, dose it use a callback? can it receive embedded image data etc, I am hoping someone can please explain the options open to me. I have looked all through apple docs URLConnection, NSURLConnection, UIWebView etc and there is no explanations on the different ways UIWebView load

Do I use NSAttributedString or UIWebView Swift

怎甘沉沦 提交于 2019-12-25 02:56:02
问题 I'm getting different strings that occupy "busDescriptio" depending on what business you choose from a website database. This string contains html tags, images, and links. I was told to use NSAttributedString instead of UIWebView because UIWebView was giving me all sorts of problems such as images in wrong place, text font, and text color wouldn't fully work. I'm new to Swift so I cant really wrap my head around how NSAttributedString works. I was able to strip out the html tags and keep the

Text field stays under the custom keyboard in UIWebView for iOS 8

我只是一个虾纸丫 提交于 2019-12-25 02:34:47
问题 I'm creating a web App for iOS and I have a custom keyboard. When I use the default keyboard, it immediately shows the keyboard and the text field is above the keyboard. I would have the same result if I change the keyboard to my custom keyboard. But the problem is for the time that I gives the focus to the text field when my custom keyboard is enabled. It has some delay to load and when it loads, text field stays under the keyboard. Here is my code for custom keybaord: #import

webViewDidFinishLoad not calling when having javascript content in webpage

时光总嘲笑我的痴心妄想 提交于 2019-12-25 02:05:34
问题 I'm using UIWebView in a project. Sometimes it doesn't call the webViewDidFinishLoad method. Because the web page have some javascripts. The method - (BOOL) webView: (UIWebView *) webView shouldStartLoadWithRequest: (NSURLRequest *) request navigationType: (UIWebViewNavigationType) navigationType is getting call but webViewDidFinishLoad doesn't. I want to catch that method. Because I'm start an animation when the webview start loading. Then I want to stop this animation when it finished. It's

Need to filter certain UIWebView requests and load them in different UIWebViews

泄露秘密 提交于 2019-12-25 01:46:02
问题 Some Background I have an iPhone app with three UIWebViews, each used to show a different type of page. (The content is specifically designed for this purpose, they're not real web pages.) There are links associated with each specific web view. For example, a link tapped in WV1 might need to load in WV2 because it's a WV2-style link. (The webviews are in a paged UIScrollView, which I use to scroll to the currently loading webview. I can tell which URL loads where based on it's path.) It makes

Memory warning when loading google map in UIWebView

≡放荡痞女 提交于 2019-12-25 01:41:15
问题 In my app UIWebView loads Google maps, while using this Direction url == http://maps.google.com/maps?f=d&hl=en&geocode=&saddr=37.774930,-122.419415&daddr=37.7655277,-122.421811&ie=UTF8&z=12, it throws "Received memory warning" and my app crash. UIWebview is a subview of UIView in my view controller. I took it as a IBOutlet. Pls help me with this, it creates lots of trouble for my app. Thank you in advance... 回答1: Is your app actually crashing (does the Xcode debugger catch it? can you post

Why is NSBundle.MainBundle.GetUrlForResource returning null

浪子不回头ぞ 提交于 2019-12-25 01:38:03
问题 I am using UIWebView to view a local HTML file. My file is named NoWiFi.html and has the following path Resources/NoWiFi.html. I have also set the Build Action to BundleResource, and tried: string name = "Resources/NoWiFI.html" NSURl url; url = new NSUrl(Path.Combine(NSBundle.MainBundle.BundlePath, name), false); // and url = NSBundle.MainBundle.GetUrlForResource("NoWiFi", "html"); // returns null webView.LoadRequest(new NSUrlRequest(url)); as in the xamarins documentation but then i get an

NSURL _fastCStringContents:Some link URL giving error when trying to open from inside iOS app

孤人 提交于 2019-12-25 01:17:30
问题 I am trying to open link in Safari browser from inside my iOS app. Its a hybrid app so I made changes in iOS native side (which I am totally unfamiliar with) I have tried this code from below posts: Open target="_blank" links outside of UIWebView in Safari NSLog(@"open safari"); // NSLog(urlSafari); // [[UIApplication sharedApplication] openURL:urlSafari]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[request.URL.absoluteString substringFromIndex:7]]]; //[NSURL

iOS streaming video in webview or MPMoviePlayerViewController

余生颓废 提交于 2019-12-25 00:34:59
问题 I have to stream video (.mov) from server. I use a UIWebView and it works well but the delegate method - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error; is always call instead - (void)webViewDidFinishLoad:(UIWebView *)webView; I print the error: Error Domain=WebKitErrorDomain Code=204 "Plug-in handled load" (...) Afterwards I decided to use MPMoviePlayerViewController instead. It looks more slow! It's a good practice use UIWebView for streaming videos? How can I fix