XCode: UIWebView Mail Links Not Working? - ios

I have a webpage which I am navigating UIWebView to and that page has images and links which use the "mailto:" tag. Unfortunately, when you tap on them, nothing happens. If you hold the links, there is an option to email them though.
How can I fix this issue? I've searched around and couldn't find anything on it.

myWebView.dataDetectorTypes=UIDataDetectorTypeAddress;

Related

How to disable popup blocker on webview?

Hi I'm looking for a solution that disable popup blocker on webview (for facebook).
Already checked this solution IOS UIwebview popup blocker issue
but not useful,
How can I make the app allow that message to appear, so the use can hit ‘allow’ which will let the page load as it is supposed to?
please guide me through a proper solution.

JSQMessagesViewController custom link not working

I'm trying to implement the answer and code here which is also on the Github fork. I'm having many glitches. First, random other messages are becoming links without a '#'. When I scroll up and down those links appear and disappear, but the 'real' '#' links stay. Also, the regular internet links are recognized as links but do not work (send to safari). Could anyone tell me what's causing these and how to fix them?
Screenshot:
Scroll Down:
scroll back up:
Notice the change in links from the top and bottom pictures. The messages that shouldn't be links change back and forth from links and the links that should be links stay. Also the google.com link does not work.

ios - UIWebView Bookmark Bug with pdfs

I have some code that generates a pdf from text files, and adds bookmarks to various locations within said pdf using UIGraphicsAddPDFContextDestinationAtPoint and UIGraphicsSetPDFContextDestinationForRect. The UIWebView appears to be bugged, where clicking certain bookmarks temporarily renders other bookmarks to send the view to the top of the document. I say "temporarily" because clicking on an unaffected bookmark seems to reset all bookmarks so they point where they are supposed to.
This doesn't appear to be a coding problem, as it only occurs in UIWebView. When I open the pdf in iBooks, the links always work fine. However I would prefer to view the pdf in app, and the only other ways to do it that I'm aware of (UIImageView & UISliderView) would probably eliminate the bookmarks altogether. So I'm hoping there could be a way to fix UIWebView so this problem no longer occurs.
Any suggestions?

Twitter share button only shows up as hyperlink

I'm trying to add the Twitter Share button to my website. I've gone to https://twitter.com/about/resources/buttons#tweet and added the code to my html, but the "button" only shows up as a hyperlink.
Can someone tell me how to make the button look exactly like the normal twitter button that shows up on other sites?
Thanks.
I was able to make it work by changing the code that says
id;js.src="//platform.twitter.com/widgets.js
to
id;js.src="http://platform.twitter.com/widgets.js

How does Chrome generate thumb views of URLs?

How does Chrome browser capture a thumbnail image of most visited URLs and show me over a blank page under Most visited??
I am interested in knowing how I would implement it using for my website or an extension.. to take take screenshot.
Lalith
I can only tell you how would I implement it. Once you would go to a site, I will add 1 to a counter if how many times you've entered it. If it's in the top 10, I would also take a screen shot of the site (chrome has a window in the class "Chrome_RenderWidgetHostHWND" which is the window that only contains the site, not the buttons and menus around it).
I can only guess it's not too far from what the guys in Google did.
If you want to write an extension that captures a screenshot of a current site then there is chrome.tabs.captureVisibleTab() method.
I think that it takes a screenshot from the last time you visited the page and saves it in the "Top Sites" SQLite database file that can be found in your profile folder.

Resources