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?
Related
I have created a standalone app in Powerapps. It is basically just a dashboard with a text input box, a number of toggle switches and radio buttons.
The dashboard will be used just to confirm a list of actions have been started or completed.
There is no requirement to save the data as such, but I need the option to keep the toggle selections and radio buttons etc as they were previously when a user opens the app.
At present the app works great however when closed and reopened the options revert to their default selections.
I have a button that resets the selections if required but I need them to remain unchanged unless reset manually.
Any help would be appreciated.
You need to persist the data somewhere, whether that is in locally on the device (more difficult, does not work for apps in-browser; mobile only) or in a data table somewhere (easy).
On-device example
Data table (Sharepoint) example:
When user clicks "Save", Patch() the data to a Sharepoint list
OnStart of the app, set a variable for the logged in user, then lookup in the Sharepoint list, all settings for varUser.
ClearCollect these into a local collection.
Use UpdateIf on each field to update the Collection
When user clicks "Save", Patch() the Sharepoint list, repeat.
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.
I have tried using the CNContactPickerViewController. It works fine when all the contacts need to be displayed or when I need to filter based on standard fields. But, I want to be able to filter based on a custom property. In this case I want to only show contacts that have been validated on the server. I can get the list of contacts that have been validated. How do I filter the CNContactPicker to only show these contacts?
Lets say I have a social network (example: http://www.icloud.com/ ). There are 2 textfields on that website: E-mail, password.
I want to make an app for the website where you can login directly from the app. On the app i have 2 text fields and a button (email, password, login). How can i pass the app's email textfield content to the email textfield of the website? Same goes for the password textfield.
You could even take FaceBook as an example. They have a website (ofc), but how does the app on the iPhone work? Is it something similar to what i said, or does it work in a completely different way?
I used parse in the end:
https://parse.com
Now parse decided it's going to stop being active from 2017.
Alternatively you can use Firebase:
https://www.firebase.com
If you know any alternative services to parse, you're welcome to write them down as a comment. ;)
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