does anyone know, how I can create a Textfield, like the "To" Field in Mail?
I mean a field, where you can start typing the contacts name and all possible contacts appear in a List under your textfield. And when you select an entry, the entry is entered in your Textfield and shown as some sort of bubble.
Has anyone an idea how to do that, an tutorial or something like that?
Thank you so much
twickl
This Question is answerd in the Comment of my First Post!
Related
Good afternoon. I would like to know if there is a method that makes the text-field capable of "remember" what the user wrote the previous times, so when the user writes the first letter a list with the proposed words will appear!! :) Thanks!
It can possible to show the list of values in tableview. you can use autocomplete.
Read this article. and also with source code. This will help you.
Sample image
Not that easy, you will have to do some modifications, for example you will need to store in an NSMutalbeArray all the value inserted, then you will have to present a table when the user starts to edit the UITextField this will change as the user writes
as your app runs, there will be many text that you need to remember/store that it will come to the point that your text that you have to remember will grow to size. you can store your text to a local database (sqlite), then as the user writes on the text field, do a search query and return the data.
unless you dont want to remember the text entered when the user used and exited/quit your app.
I have created one Login Screen where user enter their mail id.
But i want to insert one functionality where it should list the mail id automatically when user type first character of mail id
There is one way. I don't know how much feasible it is. So the Idea is : You can store somewhere all the email id after log in success. For example in sqlite database. Now, Implement Notification center for "UITextFieldTextDidChangeNotification" and search for the character in database when user start typing in TextField and show UITableview underneath UITextField with match results (which start from entered character).
When user tap on any cell of Tablview hide tableview and take that cell label value in UITextField. That's it. Hope this logic work.
You can save the emaid id in UserDefaults & use it whereever you want
I am developing an App with information about a location. This information contains phone number, email address, address etc. A bit like the contact detail information of the iPhone itself.
Now my question. When I select a contact in my phonebook, I can select the phonenumber to call, select an emailaddress to mail and select the location information to view it in the maps of the iPhone. This is what I want to achieve.
I have searched google for this functionallity but I am probably searching for the wrong things.Can someone help me to achieve this functionallity?
Thanks!!!
//// Followup
Now I know that the stuff I want to add is possible, I have a followup question about this subject.
Does anyone know where I can find some examples about the actions for calling, mailing and location information? It would help me a lot...
Thnx!!
With kind regards,
Douwe
Here is the link for accessing address book details.
This example shows to display the first name, last name, instead you display phno.,email, location along with a button near ti it.
Then code in your button action to call, mail, view location respectively.
If you are using a UITableView, then tableView:didSelectRowAtIndexPath: will get sent to you (the table view delegate (usually the table view controller)) each time the user presses a row in your table.
In the Contacts app all phone numbers/emails/addresses for that contact are grouped in their own "section". By reading the section from the indexPath using [indexPath section] you will get the index for the section (a NSInteger).
Using your own app logic you can use that index to determine if the user pressed something in the phone/mail/address section. Now that you know what kind of information the user tapped on you can make the right thing (initiate a phone call/send an email/give directions)
Continuing using the same indexPath you can get the exact table view cell that the user clicked on by using [indexPath row]. Now you can send that information (say a phone number) to you own code to handle that information (initiate a phone call).
(Hope it helped, it was my first answer on StackOverflow)
I would like to achive the same functinoanlity in the UITextField control as Google search web site (which uses Ajax for this): as user start typing, list of suggestion searches is shown. Then more letteres you type, suggestion list changes.
So imaging I have array of words:
Apple
Abc
Aman
As user types A, all thress suggesions are shown, if user type one more letter p, then Apple is suggested.
How would I do something like this? Mail type of applicatins do it, when receipent name is typed in the To: edit control
I guess I can use UITableView with the search, is it correct approach?
You want a UISearchBar. It's designed to do exactly this. Its delegate provides the list to search and present.
can you give me a hint how to customize such a contact picker from e.g. Mail or Facebook App with the (+) Adding Contacts (or other data) to a UITextField for recipients .. each of the entries can be deleted then with the (x) ..
can you give me a hint where to start and what i should customize? thank you
Are you talking about something like this:
If so, you'll want to check out the TTPicketTextField UI component from the Three20 framework. It does exactly what you're after.