iPhone Message button from a picture in an app? - iphone

I would like to implement a feature on my app that when a picture is clicked that it opens up a dialog similar to the dialog opened when you are on a specific picture and you click the icon at the bottom left of the screen. When that is clicked it gives you 7 buttons (Email Photo, Message, Assign to Contact, Use as Wallpaper, Tweet, Print, and Cancel). Would it be possible to do something similar in an app I am developing?
I really would only want the functionality to message and email but mostly just messaging.
thanks

That's a UIActionSheet. To make the picture tap sensitive, you can attach a UIGestureRecognizer to it.

Related

How can I detect focus in textfields in a webview using Swift 3?

I am building an application, and when I load a website in webview using Swift 3, the screen will appear like this, now I want to detect when user clicks on the email text field, and add a button to the navigation controller.
I don't know how to do it, does anyone have any idea?
The main use of webview is near like an iframe in web.
I mean that webview is just a displaying of internet content. By this way, you cannot detect any action like user clicks on email textfield.
According to me and currently, there is no possibility to do that because it is not the goal of a webview.

Mobile Safari submit with enter key

I am using an iPad with a bluetooth keyboard and am having some troubles. I basically have a website that after tapping search, pops up with a modal. The modal contains a summary of information & two buttons - a cancel and a print. My hope is to have the "Enter" key mean the user clicked on the "Print" button. I've tried going the javascript route with click triggers and such, and I've also tried making it into a form with a submit button but mobile safari likes neither. It seems like it requires that I touch the screen again before pressing enter to work. Any ideas would be greatly appreciated..

Change notification image of Facebook apps

Does anyone know if/how it's possible to change this icon when a user receives a notification through the Facebook API?
Link to nofification example: http://postimg.org/image/93lh58btd/ (I want to change the wheel icon to a custom icon)
That icon is nothing but your app's icon.
In the App Settings, open App Details and add Icons and save the changes.

How to show number small custom icon like mail, iphone

I have a social networking app. I have a button and based on the click on the button I need to show a small icon on the top right corner of the button. it is a custom color and text.
I know to show the default system number icon for like the one for unread mail you can get it from the shared application badge count. But I am trying to do something custom here.
I am thinking of building my own imageview (its background will be a custom png) and then within it a small text to show the number.
Anyone has experience with this and can recommend a better way?
You can add a imageView with badge image as the subvie of that button.
There is a lot of custom badge controls available.
Please check the following links.
jobadgeview
CustomBadge
Badge
You cannot change anything on the home screen besides for the app icon, name, and badge value. Do you mean on the home screen or on a tab bar?
UPDATE
If you mean a badge in the app, not on the homescreen, checkout #MidhunMP's answer to find links on how to do this. I have used http://www.spaulus.com/2011/04/custombadge-2-0-retina-ready-scalable-light-reflex/?lang=en before successfully.

How to add a link to a website with a button and get back to the app

I was wondering how to add a link to a website so that when the user taps on a button, he will be taken to that webpage, but can then hit an x in the top left corner or hit the home button and then it will take them back to their app. I want it to be like iad where it doesn't close your app when you click on that link.
You can implement your own UIWebView in your app which will display the link, and handle all of the navigation. There are many tutorials on the web. Hope that Helps!