Advertise Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

sdkIQ for iPhone
($4.99)

Your First iPhone App
($1.99)

iPhone Code Generator
($9.99)

Dual Matches
($0.99)

Calcuccino Programmers' Calculator
($2.99)

SDKtoday
(free)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-06-2008, 04:24 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2008
Location: Berlin, Germany
Posts: 7
Default 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
ziad is offline   Reply With Quote
Old 11-10-2008, 05:31 AM   #2 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 4
Default

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 View Post
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
per.lundberg is offline   Reply With Quote
Old 11-10-2008, 04:54 PM   #3 (permalink)
Registered Member
 
Join Date: Oct 2008
Location: Berlin, Germany
Posts: 7
Default

Hi,
here are the answers of my questions:
  1. 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
  2. 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
ziad is offline   Reply With Quote
Old 09-18-2009, 05:58 PM   #4 (permalink)
Almost there
 
Join Date: Dec 2008
Location: Leeds, England
Posts: 1,015
Default

Just wondering if you ever got a working control?

Thanks,
Tom.
harrytheshark is offline   Reply With Quote
Old 10-01-2009, 07:11 AM   #5 (permalink)
Registered Member
 
vikysaran's Avatar
 
Join Date: Jul 2009
Location: New Delhi
Posts: 113
Default

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
__________________
Thanx & Regards-
Vaibhav Saran | Software Engineer
Neo Sypher Systems Pvt. Ltd.
New Delhi | India
Websites:
http://www.iphonesaura.com/
http://www.apptango.com/

vikysaran is offline   Reply With Quote
Old 11-02-2009, 05:31 AM   #6 (permalink)
Registered Member
 
vikysaran's Avatar
 
Join Date: Jul 2009
Location: New Delhi
Posts: 113
Default

Quote:
Originally Posted by vikysaran View Post
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.
__________________
Thanx & Regards-
Vaibhav Saran | Software Engineer
Neo Sypher Systems Pvt. Ltd.
New Delhi | India
Websites:
http://www.iphonesaura.com/
http://www.apptango.com/

vikysaran is offline   Reply With Quote
Reply

Bookmarks

Tags
mail to, nstokenfield, uilabel, uitextfield, uitextview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements
» Stats
Members: 41,860
Threads: 49,768
Posts: 213,054
Top Poster: BrianSlick (3,138)
Welcome to our newest member, gustavo7sexton
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:55 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0