Launching the standard Contacts View from my app - ios

What I am trying to accomplish with my app is if a user clicks on a contact name in my app. I want to directly launch the selected contact in a new view, but using the standard ios contact view. Is this possible? If so how can it be accomplished? I can't seem to find any URL Scheme for the contacts app if one does indeed exist that is.

Look at the Address Book UI framework documentation, please.
By the way, using this framework is a very good idea i.e. "the standard iOS contact view", because trying to reproduce this view and all its functionality yourself would be, shall we say, challenging.

Related

Save a contact on iOS using QR [duplicate]

Is there a URL to open the contacts application from within my application? I know you can achieve this with the settings app by using the UIApplicationOpenSettingsURLString constant in Swift; however, I wasn't sure if I could do the same with the Contacts app.
There isn't a deep link for opening the Contacts App.
Apple is very picky when it comes to deep-linking. They have to provide one for Settings since many apps need services like Data, Location, Bluetooth, Wifi, etc.
Unfortunately they do not extend this to the Contacts App.
However if your app needs contact information then for that Apple has provided a Contacts framework to browse through your contacts within your app itself.
Read more about it here.
In order to add/update/delete/merge contacts directly from your app without using the Apple's Contact UI, use the CNSaveRequest APIs. More on that here.
The closest thing you can get to opening a contact is to write them a message in IMessage. From this screen the user can press the contact icon and open the contact page for that particular contact.
You can do this by opening the url sms://+44776382223 where the number is the number of the person that you would like to view the contact of.

iOS access phone settings programmatically

is it possible to access the phone settings of an iOS Device programmatically? I'm currently building an app and there I will provide contact possibillities, for example a direct link for calling (you just push it and then the specific contact number is called).
But I only want to show that possibility, if the user isn't calling with an unknown number.
You can access the contacts stored in the phone using the Address Book framework. If you're unfamiliar with the framework, I suggest you take a look at this quick start tutorial.
EDIT It seems you wish to read the state of the Show My Caller ID system setting, however you cannot programmatically access the system settings.
Use ABAddressBook for getting contact details in your project...
see this

How should I show my app's icon on Facebook's friend list in iOS?

I am new in handling apps that will be connecting with Facebook.
I want to let my user log in my app with Facebook account and be able to send something, for example, a gift to their Facebook friends.
I want to get the user's friends list and which is very easy by using FBFriendPickerViewController. However, I want to have an effect that if their Facebook friend(s) is/are also using my app, the app icon will be shown at the right hand side of the user table cell (Just like some Phone Contact lists will show if the contact has Whatsapp/ Google+)
I have been searching through sites but still find nothing about this.
So my question is, is there any "official" way (using Facebook SDK method) to show the icon?
Or I have been thinking of another approach is that, I first get the friend list and then saved it, with the information that whether the "friend" is using my app or not. Then I create a custom friend picker view and check the condition to enable/disable the visibility of the app icon.
I can get the information by using approached of using GraphAPI fields or using external database, for which are mentioned in this , this and this .....
Anybody help?
Ok I end up with customizing my own table view... : )

Putting a url in an email that opens an application on iPhone or iPad

I know what code is needed to cause my iOS app to open a link in Safari. But I am looking at how I might accomplish something more in the reverse direction.
I can send email from my app. I would like to include a link in the email, that, when clicked on within the email on my iPhone or iPad, will open my app and perform an action based on the property values passed in the link. (The link would refer to a record in the database of my app, so the app can provide a view content based on that record.)
Another example I have seen is the special purpose URL used in the manifest file that loads ad hoc distributions over the air.
I see something like this when places and dates are automatically converted to links that open the map or calendar applications.
Does anyone have an idea how I can do this?
You need to implement a custom URL scheme.

Is there a function which lets you add functionality to an existing app on ios?

I am curious if it is possible to make an app that adds a functionality to an existing app on ipad, say safari. If yes, which function would add a button to safari?
My question is based on 2 app advertisements I saw, one added a button to safari, the other created an app itself. I didnt buy them yet, so I dont know if they really do what thet say.
Thanks
As far as I'm aware, I think the closest you get to adding functionality to an existing app would be creating a new app that allowed interaction with certain document types.
For example, you might create an app that can open and read PDF documents. On installing this app, you would then find that interacting with a PDF document on any app (such as in an email attachment, or opening a PDF in Safari) would show a new option to open the PDF in your app. This kind of interaction is achieved via the UIDocumentInteractionController class.
Beyond that, I believe you would have to create your own app from scratch based on an existing one in order to extend functionality (so, create the 'MyBrowser' app to behave like Safari, except with additional controls and features).
I'd love to be proven wrong, however.

Resources