Reputation: 1934
I would like to create a messaging service on my app which would look like the texting interface on the iPhone. The mail client would be used with Google Mail, so I would need to get the username and password from UITextFields
.
Could this be done with the Google API and with the texting/messaging style interface?
Thank you,
James
Upvotes: 1
Views: 3567
Reputation: 4678
This video tutorial (or this one that subclasses UITableViewCell) shows a pretty simple way of creating an SMS-style user interface; they even give you a link to the Xcode project from the tutorial video and a zip file with the images you would need to pull this off. This is done by customizing the cells of a UITableView to get the message data to display in the correct style.
Upvotes: 1
Reputation: 324
Google's Gmail API's will get you SMTP/IMAP access, but that's about it. It won't make sending and receiving email especially easy. http://code.google.com/apis/gmail/
If you're interested in integrating Google services into your iOS apps take a look at Google's drop-in OAuth implementation: http://code.google.com/p/gtm-oauth2/
Your idea is possible, but it won't be easy and Apple generally rejects third-party email clients. Good luck
Upvotes: 1
Reputation: 1832
You should probably use the mail account already on the device and use the MFMailComposeViewController class to send the message. This would provide you a native Apple-style message interface and also be future-proof, in case the message interface changes in a later revision of iOS.
Upvotes: 2