How to customize a message compose screen in iphone? - iphone

Now i'm working in iPhone application, Using Label to set a text like (To:), Textfield for enter the text or number and add a plus button for add a contacts.
When i entered the name in textfield then press a plus button, the contact name display in the textfield but the background image are not visible in the textfield like below i mentioned the picture, Field To: (yuvaraj) contact background image is lightblue.
please any one help me.
Thanks in Advance

You can not customize MFMailComposeViewController to avoid editing. Apple forbids this, and the reason is quite simple: it is the user and not you that must decide exactly what to send, to whom etc. The same applies for the UI controller allowing to send SMS (text) messages. And, of course, Apple does not allows sending an email or SMS without explicit interaction with the user. It is the user that must validate and send the email or SMS message. The validation process include the ability to cancel the message or to change any single property at will, including the "to" recipients. from How to customize MFMailComposeViewController so that i can make the "to" field as non-editable? However you can try with this link http://sugartin.info/2011/10/13/sending-a-mail-useing-gmail/

Related

Select phone number and e-mail ID in UITextView

I have a UITextView object. The text in UITextView has a phone number, mail link, a website link and also normal text messages.
I used dataDetectorTypes to detect links and number. Links and number are detected using this method but I was only able to click website link. I want to click number and mail link also.
Note: I don't want to use webview for this.
Thanxs in advance,
Mayur
If you are creating UITextView using UI then in property window -> detection section there is options available are
Links ,Addresses,Phone Numbers and Events
select whatever you want
P.S if you want to enable this detection then do the following in property window -> Behavior section uncheck Editable option otherwise it will not detect

Iphone Phonebook in my application

I have application that send sms. I have texfield for nuber of receiver. I want to add button and when this button is clicked user phonebook to appear and select number from contact list. This number should appear in text field. How can I do that?
Best regards,
Nikolay
You can leverage stuff out of the AddressBook framework, including existing view controllers.
See http://developer.apple.com/library/ios/#documentation/AddressBookUI/Reference/AddressBookUI_Framework/_index.html

How to mimic the behavior of the iPhone Mail app when entering email addresses?

I was wondering whether any of you may have an idea how to mimic the behavior of the native Mail app on the iPhone, when selecting email contacts in the To/CC lines.
If you note carefully, when touching that line the keyboard opens and you get a cursor, which is like the normal behavior of a UITextField. However, after keying a name and selecting it, the name is added inside a blue bubble. Still fine - one could create the bubble and move the text field. However, if you go back using the backspace key - the blue bubble becomes marked (darker blue), the cursor disappears, but the keyboard stays visible.
Any idea how to accomplish that?
Thanks!
Ariel
Check out the Three20 control library from the Facebook: https://github.com/facebook/three20
Either the TTMessageController, or the TTPickerTextField control are what you want. For using TTPickerTextField there's a good demo here: https://github.com/shayne/TTPickerTextFieldDemo

iPhone Simple submit form

how can i create a simple submit form with some UITextfield and button , when user tabs the button then the textfield information sends into an email (without email application) ?
For your first question, use a grouped table view, with a cell that contains a text field and a button.
For your second question, take a look at the skpsmtpmessage project on Google Code, which "implements a quick class for sending one off messages via SMTP on the iPhone".

iphone Feed Type Text with Hyperlinks

Im creating a tableview that displays a feed similar to the facebook iphone app news feed. Im just wondering what control i should use in my custom table cell that will allow me to show a mixture of text and hyperlinks. e.g. UserA has just sent you a message. Where "UserA" is a hyperlink and when the user clicks on it I need to be able to catch that event and send them to UserA's details.
Thanks in Advance
You should probably avoid putting individual touchable elements into the cells. It can become confusing if there is different functionality depending on where the user taps.
Can you just catch the selection of the cell and perform the appropriate action then?