Hi,
in the mail app of the iphone, are the "to", "cc" and "bcc" fields UITextField or UITextView? and:
1. how they layout the entry (blue and in nice rounded box) if we click return button.
2. how can I have a multiline text (only if necessary)
3. when we finish the editing, how returns it to one line field
I found this class in AppKit.framework did this work with iphone? "NSTokenField is a subclass of NSTextField that provides tokenized editing similar to the address
field in Mail.app."
Thanks
This is also something I'm very keen on knowing.
From what I can tell you can't use NSTokenField
Does anyone have any information on how this should be done?
Quote:
Originally Posted by ziad
Hi,
in the mail app of the iphone, are the "to", "cc" and "bcc" fields UITextField or UITextView? and:
1. how they layout the entry (blue and in nice rounded box) if we click return button.
2. how can I have a multiline text (only if necessary)
3. when we finish the editing, how returns it to one line field
I found this class in AppKit.framework did this work with iphone? "NSTokenField is a subclass of NSTextField that provides tokenized editing similar to the address
field in Mail.app."
Thanks
For my first question: Today I ask a speaker in Apple tech Talk in Berlin and the answer is: the API for that is not public for iPhone. So I think we have to implement it. you can try to use an image (set the alpha value as needed) so you have it as background for the text (substring), calculate the Rect of this substring than user the method [yourImage drawInRect: aRect] to draw the image. I did not try it but it just a idea