How can I get the description of a link that a user has tapped in the UIWebView before loading the request?
This question seemed to ask the same thing, but what he actually wanted was the URL, which is not my case. I just want to know what is the text description of the link that has been tapped by the user.
Related
The mobile app is all about showing a SharePoint website in a WebView. I am trying to get the URL of a third party website on click of a button which is a part of the WebView. Based on this URL, I am trying to show an alert. On the first click of the button, the URL I am looking for, is not loading and hence the alert is not showing up. However, I am able to see the URL for the second click of the button and I'm able to see the alert as well.
Any help would be appreciated.
Thanks in Advance.
I have a Twitter button on my website to allow people to tweet from the site. I am setting the text of the tweet programmatically and I’m also including a link to my site.
Everything works except that Twitter is turning the link into a preview of my website. I don’t want the preview. I want the link to stay a link.
Is there a way to do that?
From this:
enter image description here
I get this:
enter image description here
But I want this:
enter image description here
I have a string which I am getting from the server and is dynamic. It is of the format:
<p> John Appleseed Hey http://google.com </p>
Couple of related questions I want to ask in one thread
I want to make the mention text and the URL text to appear in bold and different colour
When URL is tapped it should open a the link in WebView
When the mention text is tapped, it should perform some other action (open User Profile VC)
When tapping mention text, it should send a parameter (uid) to the method, the uid can be extracted from mentions-32 (32 is uid here)
This string can have multiple mentions and links. I am stripping off the HTML tags and I get plain text. I know there is library TTTAttributedLabel which can be used here
Note: This functionality can be compared to what facebook or twitter app does on Newsfeed post text. (Tapping on tag takes the user to User Profile and tapping on the hyperlink opens a webview)
I think the better option to use the GLTapLabel GitHub Demo it is useful for the custom UILabel view controller for iOS that works just like a regular UILabel.
Hope this Demo is helpful u.
On my iPhone, when I view a photo I see a "send" button on the bottom toolbar; when I click this I see a menu screen with Mail, Message, Twitter, Facebook, Assign to Contact, Print, Copy and Use as Wallpaper icons.
Is there any way to get my app added to this list, and if so how do I set up my app to receive notification of this event and get access to the photo that is being viewed?
I had this exact same question and for whatever reason it took me a very long time to find this answer on stackoverflow that helped me. I hope it helps you.
Problems adding custom activity to UIActivityController
I am new in iPhone development. I am doing a contact us page. Here I uses a UITextView to display the details. In it, there is a email address link (abc#company.com). When a user tapped on the email link, the iPhone's default mail app needs to be appear. But I don't know how to get the click event of the email link in UITextView.
How can I achieve this ?.
I know how to load mail app. But before that I want to do some other things. So how can i get a click event when user taps on the email link in UITextView ?
The iOS SDK does not expose this event in a UITextView. If you want to intercept a tap on an email link, you will have to use a UIWebView instead of the text view.
you can do it with uiwebview in your html content try this <a href="mailto:abc#company.com">