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.
Related
In my app I want the user to type names into a UITextField (or equivalent) and then when they press return, it will put that word(s) in a blue bubble that's usually associated with tags. The cursor then moves to the end where they can add more "tags".
This can be seen when adding contacts in the To, CC & BCC fields in the Mail app, and also when selecting contacts in the Messages app.
How is this done? Is it something that's provided in the UIKit or available somewhere else?
Many thanks,
Michael
Venmo just open sourced their token field.
https://github.com/venmo/VENTokenField.git
edited:
The equivalent control in desktop Cocoa is an NSTokenField, but there doesn't seem to be an equivalent for Cocoa Touch.
Since iOS 13 there exists UISearchTextField.
https://developer.apple.com/documentation/uikit/uisearchtextfield
You can see that component in action in the Photos App.
That should fit for many use cases. By removing the leftView you can also get rid of the search icon.
But be aware: You can‘t mix text and tokens at various positions.
From the docs:
Tokens always occur contiguously before any text in the search field.
Adding this here for reference:
Feel free to check out TaggerKit (a library I made), it's more or less what OP was talking about. You can basically add tags functionality to your app by just adding a view and a couple of properties.
I dont think you can do it with any built in functionality in the SDK, never seen such a feature. What you could do however is implement it yourself, have some custom blue button with some text over it, and when the user hits return you can have some code that takes the text and returns you the button that you need, shouldnt be too bad to implement
I want to do a chat app like the iphone message app. I use a UITableView to show the messages and under it i want to put some input text controller and a send button. the problem is that if i use a UITextField for the input controller it does not wrap the words and it does not look like the iphone message app controller.
how can i get the look&fill of the original controller?
Here you have an open source of project that you're trying to develop. I think this will help: cocoacontrols.com. Also on cocoacontrols.com you can find bunch of useful projects so try to look there before reinventing the wheel.
Best of luck
take a look at Chat Input Sample code. It has all the functionality what you needed.
Can someone please tell me the elements used to create the 'compose email' page in the iPhone?
More specifically, what elements are used to create the light blue 'bubbles' that display the contacts in the To:/CC:/BCC: fields?
I need to make a screen similar to that, except populated with a data source of my own.
You should check out the library three20. It has a view controller for a customizable compose interface built-in.
http://github.com/facebook/three20/
You want to use a MFMailComposeViewController. In the MessageUI.framework.
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!
In my app I want the user to type names into a UITextField (or equivalent) and then when they press return, it will put that word(s) in a blue bubble that's usually associated with tags. The cursor then moves to the end where they can add more "tags".
This can be seen when adding contacts in the To, CC & BCC fields in the Mail app, and also when selecting contacts in the Messages app.
How is this done? Is it something that's provided in the UIKit or available somewhere else?
Many thanks,
Michael
Venmo just open sourced their token field.
https://github.com/venmo/VENTokenField.git
edited:
The equivalent control in desktop Cocoa is an NSTokenField, but there doesn't seem to be an equivalent for Cocoa Touch.
Since iOS 13 there exists UISearchTextField.
https://developer.apple.com/documentation/uikit/uisearchtextfield
You can see that component in action in the Photos App.
That should fit for many use cases. By removing the leftView you can also get rid of the search icon.
But be aware: You can‘t mix text and tokens at various positions.
From the docs:
Tokens always occur contiguously before any text in the search field.
Adding this here for reference:
Feel free to check out TaggerKit (a library I made), it's more or less what OP was talking about. You can basically add tags functionality to your app by just adding a view and a couple of properties.
I dont think you can do it with any built in functionality in the SDK, never seen such a feature. What you could do however is implement it yourself, have some custom blue button with some text over it, and when the user hits return you can have some code that takes the text and returns you the button that you need, shouldnt be too bad to implement