How to make a multiple recipient textbox like iMessage? - ios

I am trying to replicate the functionality of choosing recipients in iMessage. Where you can either type the phone number or email address in the textbox or choose from the addressbook.
I am using the SwiftAddressBook Wrapper for addressbook access. Made a textbox, where user can type or tap a button to open address book UI and choose an email or phone number which is presented in the textbox as text.
My question is how to present the selected or typed phone/email as an entry instead of just text in the text box just like iMessage does. In iMessage. when you tap on an entry it is selected as a whole and you can delete it with backspace. Also additional entries are added with coma separation.

It looks like the term for this is "TokenField". If you search for that you can find some libraries. Here is one that looks promising: https://github.com/thermogl/TITokenField

Related

iOS 11/12 Autofill multiple textfields with contact data

I have an app that uses multiple text fields in which user provides their address and personal data (name, surname etc.).
I know that there is a property called textContentType on a UITextField. If I set it, the bar above the keyboard suggests the data correctly. But since the user has to go to the next text field manually, autofilling one field doesn't autofill all.
Is there a way to implement autofilling all fields the same way it's done on Safari, or in other places in the system, where user autofills only one field and then the form fills with selected contact data? Or would I have to use the Contacts framework to get the user's contact card?

iOS sms html link not updating itself

So a rather peculiar issue is occurring. I work for a News company and we have a mobile app. We allow our users to share stories, and we utilize the "sms:&body=..." method of sending a user from html link -> messages app with a pre-populated text. This works fine. The issue that's happening is that, let's say a user clicks our 'Text' link, and they get redirected to the messages app with the pre-populated text filled. But let's say the user doesn't send any text or cancel it, and goes back to our app via the little '<' button in the status bar, and then tries to text another story, the pre-populated text is not updated and still uses the old pre-populated text. Is there any way we can tell messages to update with the new body text?
I have noticed though, if you 'cancel' the text then it works fine.
Here's my current code
Xamarin.Forms.Device.OpenUri(new System.Uri("sms:&body=" + ShareSMSText));

On iOS do I have to show google logo if I am using their places autocomplete query

In my app I am using google's autocomplete query. Do I have to show "powered by Google" logo somewhere? Is it a restriction?
Update
I will just explain how I am using it. I have a signup form and I have multiple fields for Address 1st line, 2nd line, city, State, Zip.
When the user starts entering address in 'Address 1st line' text field, I show a dropdown/tableview with suggestions. And when user selects one of them, I populate remaining fields like city, state, zip.
Questions:
Do I have to show logo
Where to show the logo if yes
According to them, yes you do:
When displaying data from the Google Places API for iOS, such as autocomplete results or place name and address, there are some attribution and Google logo requirements you must comply with.
The attribution and logo requirements fall into the following categories:
A Google map, if a map is displayed.
The 'Powered by Google' attribution.
Attributions for content supplied by third parties.
Emphasis mine. More specifically:
If your application displays Places API data on a page or view without a Google Map, you must show a 'Powered by Google' image with that data.

iOS: how to prompt for user consent without clicking any button

I'm writing an app where a user can store a list of documents. When the user adds a new document whose name is already in the list, I'd like to prompt the user for her/his consent to replace the old document. I've looked at UIActionSheet but looks like it should be used when the user clicks some sort of button. UIAlertView is more like warning the user "The document will be replaced, no matter you like or not." So my question is: what's the best way in this case to prompt the user for consent?
Alerts can be used to ask the user to confirm an action. It is done all of the time. Simply implement the proper alert view delegate methods to respond to the user's choice.
Action sheets can be shown at any time with any need for a button to trigger such an event. The action sheet provides several options for displaying the action sheet.

Linking a phone number on Blackberry LabelField

Is there a way to make text that contains a phone number show up as a clickable link using the Blackberry LabelField?
Example:
"Call me at 1234567" - the 1234567 would be a link that could be used to launch the phone.
This is easy to do on the iPhone UITextView but can't seem to find anything similar for Blackberry... Or do I need to parse the text manually for phone numbers, URLs, email addresses, etc.?
you can use ActiveRichTextField
It will underline the mobile number, URl's , email addresses, etc and on click it will add appropriate menu items like call, open in browser, etc

Resources