 |
 |
|
 |
10-06-2008, 04:24 AM
|
#1 (permalink)
|
|
Registered Member
Join Date: Oct 2008
Location: Berlin, Germany
Posts: 7
|
The address field in Mail is UITextField?
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
|
|
|
11-10-2008, 05:31 AM
|
#2 (permalink)
|
|
New Member
Join Date: Aug 2008
Posts: 4
|
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
|
|
|
|
11-10-2008, 04:54 PM
|
#3 (permalink)
|
|
Registered Member
Join Date: Oct 2008
Location: Berlin, Germany
Posts: 7
|
Hi,
here are the answers of my questions: - 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
- For a multiline text we need UITextView and we have to calculate the height of the text. here is a link that show you how to do this: Autosizing UILabel for a certain # of lines. - iDevKit
or this link: iPhone dev - UILabel multiline and dynamic height
|
|
|
09-18-2009, 05:58 PM
|
#4 (permalink)
|
|
Almost there
Join Date: Dec 2008
Location: Leeds, England
Posts: 1,015
|
Just wondering if you ever got a working control?
Thanks,
Tom.
|
|
|
10-01-2009, 07:11 AM
|
#5 (permalink)
|
|
Registered Member
Join Date: Jul 2009
Location: New Delhi
Posts: 113
|
I found email composer sample code from iphone OS Ref Library. Here is a code-
Code:
NSArray *toRecipients = [NSArray arrayWithObject:@"first@example.com"];
NSArray *ccRecipients = [NSArray arrayWithObjects:@"second@example.com", @"third@example.com", nil];
NSArray *bccRecipients = [NSArray arrayWithObject:@"fourth@example.com"];
My question is how to take user's input? Here all email address are predefined in code. so what are the IDs of to, CC, Bcc, subject and body fields?
Rep soon
|
|
|
11-02-2009, 05:31 AM
|
#6 (permalink)
|
|
Registered Member
Join Date: Jul 2009
Location: New Delhi
Posts: 113
|
Quote:
Originally Posted by vikysaran
I found email composer sample code from iphone OS Ref Library. Here is a code-
Code:
NSArray *toRecipients = [NSArray arrayWithObject:@"first@example.com"];
NSArray *ccRecipients = [NSArray arrayWithObjects:@"second@example.com", @"third@example.com", nil];
NSArray *bccRecipients = [NSArray arrayWithObject:@"fourth@example.com"];
My question is how to take user's input? Here all email address are predefined in code. so what are the IDs of to, CC, Bcc, subject and body fields?
Rep soon
|
DONE
for better description read Question On iPhone Mail Composer
the MFMailComposer is working great in real time but it responses nothing on simulator.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 385 |
| 28 members and 357 guests |
| AdamSubach, aderrington, airsoft808, benoitr007, bensj, Danneman, dev123, Duncan C, gtyt38, gustavo7sexton, HemiMG, Jeremy1026, lifeCoder45, maxus182, Ovidius, Paul10, Piequanna, pofak, qilin, Racker, raheel, Sega dude, squidboy, timle8n1, ZunePod |
| Most users ever online was 965, 06-30-2010 at 04:26 AM. |
» Stats |
Members: 41,860
Threads: 49,768
Posts: 213,054
Top Poster: BrianSlick (3,138)
|
| Welcome to our newest member, gustavo7sexton |
|