Skip to Content
Beginning iOS 5 Application Development
book

Beginning iOS 5 Application Development

by Wei-Meng Lee
January 2012
Beginner content levelBeginner
655 pages
16h 35m
English
Wrox
Content preview from Beginning iOS 5 Application Development

SUMMARY

In this chapter, you learned how you can easily integrate the various built-in applications into your own iPhone applications. In particular, you saw how you can invoke the built-in SMS, Mail, Safari, and Phone simply by using a URL string. In addition, you learned how to send SMS and e-mail messages without leaving your application. You also learned about accessing the Photo Library applications using the classes provided by the iPhone SDK.

EXERCISES

  1. Name the various URL strings for invoking the Safari, Mail, SMS, and Phone applications.
  2. What is the class name for invoking the Image Picker UI in the iPhone?
  3. What is the class name for invoking the Mail Composer UI in the iPhone?
  4. What is the class name for invoking the Message Composer UI in the iPhone?

Answers to the exercises can be found in Appendix D.

image WHAT YOU LEARNED IN THIS CHAPTER

TOPIC KEY CONCEPTS
Sending e-mail from within your application
NSString *emailString =

@“mailto:?to=user@email.com&subject=Subject&body=Body”;

[[UIApplication sharedApplication] openURL:[NSURL

URLWithString:emailString]];
Invoking Safari
[[UIApplication sharedApplication]

openURL:[NSURL URLWithString: @“http://www.apple.com”]];
Invoking the Phone
[[UIApplication sharedApplication]

openURL:[NSURL URLWithString: @“tel:12345678*2” ]];
Invoking SMS
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering iOS 12 Programming - Third Edition

Mastering iOS 12 Programming - Third Edition

Donny Wals
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9781118144251Purchase book