How to make a UIButton looks like a email link button? - ios

I am doing a contact us page. Here I want to add a email link and also I want to open the iPhone's default mail app while clicking that link. I don't know how to make the UIButton looks like a link button.
How can I achieve this?

Change the button type to UIButtonTypeCustom

Related

How to add Button on the Apple Pass Card

I want to add a button on the passcard. I am using Laravel 8 to create a passcard. I can see that layout does not support doing so. Is there any way we can add a button on the passcard and that button will act as a clickable URL to route to some web link. Please help me to achieve this.
I am looking forward to hearing.
Thanks,
I think you cannot add button(s) on cards, maybe on Passes like boarding tickets, but the only link I can see on Passes is a image button (logo of the app) redirecting to the ios app linked.
Alternative for cards you can do:
Format your card with a text encouraging the user to press the dots button.
Then on card description you can add links

Safari Share Sheet accessible to UIWebView?

I want to add a Share bar button item to my top Navigation Bar that works like the one in Safari (send a link via SMS Message, copy a link, etc), are developers allowed access to that, or is it something where I have to create my own?
Found out you can do this with UIActivityViewController!
Let me know if you have any questions on this-

Add Share Button to Naviagtion Bar

I'd like to add a share button to the navigation bar in a webview that when pressed gives the options to open the link in Safari, Email the link, share on facebook, tweet it. Can anyone point me in the right direction on how to go about this?
Try BCDShareSheet. It includes sharing with Email, Twitter, and Facebook, but it lacks opening in Safari, but it should be trivial to add it.

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 to get click event of email link in UITextView?

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">

Resources