iOS4_13

Similar documents
2ndWeek_Introduction to iPhone OS.key

05-06( )_¾ÆÀÌÆù_ÃÖÁ¾

Microsoft PowerPoint - 4-UI 애플리케이션


캐빈의iOS프로그램팁01

IAP-Guide

Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

매력적인 맥/iOS 개발 환경 그림 A-1 변경 사항 확인창 Validate Setting... 항목을 고르면 된다. 프로젝트 편집기를 선택했을 때 화면 아 래쪽에 있는 동일한 Validate Settings... 버튼을 클릭해도 된다. 이슈 내비게이터 목록에서 변경할

iphone 개발자의 SQLite 다루기 개발 Xcode Version : 4.5 작성 서경덕 환경 시뮬레이터 : iphone Simulator 6.0 일시 2013 년 1 월 3 일 시나리오 1. FireFox의플러그인을통해 SQLite파일을맊든다. 2. 어플에서이

(Xcode4.2 의 Choose a template for your new project 화면 ) 2) 라이브러리패널이조금바뀌었습니다. Stepper, Gesture Recognizer 가추가되었습니다. 외형이조금바뀌었지만, 책의내용은그대로사용할수있으므로문제없습니다.

슬라이드 1

iOS의 MKMapView 정리하기

- 목차 - - ios 개발환경및유의사항. - 플랫폼 ios Project. - Native Controller와플랫폼화면연동. - 플랫폼 Web(js)-Native 간데이터공유. - 플랫폼확장 WN Interface 함수개발. - Network Manager clas

Microsoft PowerPoint - 2-Objective-C 기초

Social Network

Tad_가이드라인

( )부록

¾Ë·¹¸£±âÁöħ¼�1-ÃÖÁ¾

01....b

2007백서-001-특집

00목차

(291)본문7

BH의 아이폰 추천 어플

SGIS 오픈플랫폼 지도제공 API 정의 ios Version 1.0 1

Analyst Briefing

ÀüÀÚÇö¹Ì°æ-Áß±Þ

DocsPin_Korean.pages

iphone ios 6 DEVELOPMENT ESSENTIALS Copyright c 2012 Neil Smyth. All rights reserved. Korean Translation Copyright c 2013 by J-Pub. co. The Korean edi

iOS의 GameCenter를 내어플에 붙여보자

자바 웹 프로그래밍

<4D F736F F D20284B B8F0B9D9C0CF20BED6C7C3B8AEC4C9C0CCBCC720C4DCC5D9C3F720C1A2B1D9BCBA2020C1F6C4A720322E302E646F6378>

03장

자바 웹 프로그래밍

Mobile Service > IAP > Android SDK [ ] IAP SDK TOAST SDK. IAP SDK. Android Studio IDE Android SDK Version (API Level 10). Name Reference V


슬라이드 1

chapter4

3주차_Core Audio_ key

Week13

Dialog Box 실행파일을 Web에 포함시키는 방법

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

Chap12

Smart Power Scope Release Informations.pages

PCServerMgmt7

찾아보기 Index 기호및숫자!( 논리부정 ) 연산자 31!=( 같지않음 ) 연산자 30 #define #define과전역변수 #import #include %( 나머지연산자 ) 63 ( 토큰참고 ) 159

JavaGeneralProgramming.PDF

HTML5* Web Development to the next level HTML5 ~= HTML + CSS + JS API

CONTENTS 01 Adobe Photoshop Lightroom을 소개합니다 촬영부터 출력까지 간편한 사진 작업 (Simplify photography from shoot to finish) Adobe Photoshop Lightroom 작업공간(Workspace)

Remote UI Guide

API STORE 키발급및 API 사용가이드 Document Information 문서명 : API STORE 언어별 Client 사용가이드작성자 : 작성일 : 업무영역 : 버전 : 1 st Draft. 서브시스템 : 문서번호 : 단계 : Docum

Microsoft PowerPoint - CoolMessenger_제안서_라이트_200508

Eclipse 와 Firefox 를이용한 Javascript 개발 발표자 : 문경대 11 년 10 월 26 일수요일


EMBARCADERO TECHNOLOGIES (Humphery Kim) RAD Studio : h=p://tech.devgear.co.kr/ : h=p://blog.hjf.pe.kr/ Facebook : h=p://d.com/hjfactory :

iOS ÇÁ·Î±×·¡¹Ö 1205.PDF

01-OOPConcepts(2).PDF

¨ìÃÊÁ¡2

6강.hwp

ibmdw_rest_v1.0.ppt

Blog

LCD Display

Supplier_Connect_User_Guide_Korean


JMF3_심빈구.PDF

< B3E220C1F6BFAABBE7C8B820C5EBC7D5B0C7C1F5C1F8BBE7BEF720BEC8B3BB28C3D6C1BEC0CEBCE2292E687770>

untitled

Ext JS À¥¾ÖÇø®ÄÉÀ̼ǰ³¹ß-³¹Àå.PDF

유니 앞부속

thesis

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D D382E687770>

ETL_project_best_practice1.ppt

어댑터뷰

Microsoft PowerPoint - XP Style

1

3ÆÄÆ®-14

C H A P T E R 2

Sena Technologies, Inc. HelloDevice Super 1.1.0

Microsoft Word - 김완석.doc

Mentor_PCB설계입문

UNIST_교원 홈페이지 관리자_Manual_V1.0

13ÀåÃß°¡ºÐ

untitled

rmi_박준용_final.PDF

Microsoft PowerPoint - Smart CRM v4.0_TM 소개_ pptx

Special Theme _ 모바일웹과 스마트폰 본 고에서는 모바일웹에서의 단말 API인 W3C DAP (Device API and Policy) 의 표준 개발 현황에 대해서 살펴보고 관 련하여 개발 중인 사례를 통하여 이해를 돕고자 한다. 2. 웹 애플리케이션과 네이

OOP 소개

PowerPoint 프레젠테이션

PowerPoint 프레젠테이션

iphone_최종.indb

untitled

Windows Live Hotmail Custom Domains Korea

LU8300_(Rev1.0)_1020.indd

PowerPoint Presentation

untitled

Microsoft PowerPoint - 11주차_Android_GoogleMap.ppt [호환 모드]

<B0B3C0CEC1A4BAB85FBAB8C8A3B9FDB7C95FB9D75FC1F6C4A7B0EDBDC35FC7D8BCB3BCAD C3D6C1BE292E687770>

휠세미나3 ver0.4

ESET NOD32 Antivirus

P/N: (Dec. 2003)

컴퓨터과학과 교육목표 컴퓨터과학과의 컴퓨터과학 프로그램은 해당분야 에서 학문적 기술을 창의적으로 연구하고 산업적 기술을 주도적으로 개발하는 우수한 인력을 양성 함과 동시에 직업적 도덕적 책임의식을 갖는 IT인 육성을 교육목표로 한다. 1. 전공 기본 지식을 체계적으로

Transcription:

. (Mail), (Phone), (Safari), SMS, (Calendar).. SDK API... POP3 IMAP, Exchange Yahoo Gmail (rich) HTML (Mail).

Chapter 13.... (Mail)., (Mail).. 1. Xcode View based Application (iphone) Emails. 2. EmailsViewController.xib. 3. ( 13 1 ). Label TextField TextView( ) Button ttp://jpub.tistory.com/ http://peterslab.tistory.com/

373 4. EmailsViewController.h. #import <UIKit/UIKit.h> @interface EmailsViewController : UIViewController { IBOutlet UITextField *to; IBOutlet UITextField *subject; IBOutlet UITextView *body; @property (nonatomic, retain) UITextField *to; @property (nonatomic, retain) UITextField *subject; @property (nonatomic, retain) UITextView *body; -(IBAction) btnsend: (id) sender; @end 5., File s Owner Control to subject, body. 6. Control File s Owner, btnsend:. 7. EmailsViewController.m. #import "EmailsViewController.h" @implementation EmailsViewController @synthesize to, subject, body; - (void) sendemailto:(nsstring *) tostr withsubject:(nsstring *) subjectstr withbody:(nsstring *) bodystr { NSString *emailstring = [[NSString alloc] initwithformat:@"mailto:?to=%@&subject=%@&body=%@", [tostr stringbyaddingpercentescapesusingencoding: NSASCIIStringEncoding], [subjectstr stringbyaddingpercentescapesusingencoding:

Chapter 13 NSASCIIStringEncoding], [bodystr stringbyaddingpercentescapesusingencoding: NSASCIIStringEncoding]]; [[UIApplication sharedapplication] openurl:[nsurl URLWithString:emailString]]; [emailstring release]; -(IBAction) btnsend: (id) sender { [self sendemailto:to.text withsubject:subject.text withbody:body.text]; - (void)dealloc { [to release]; [subject release]; [body release]; [super dealloc]; 8. Command R. 13 2., Send (Mail). (Mail) Send.

375 (Mail) sendemailto:withsubject:withbody:. NSString *emailstring = [[NSString alloc] initwithformat:@"mailto:?to=%@&subject=%@&body=%@", [tostr stringbyaddingpercentescapesusingencoding: NSASCIIStringEncoding], [subjectstr stringbyaddingpercentescapesusingencoding: NSASCIIStringEncoding], [bodystr stringbyaddingpercentescapesusingencoding: NSASCIIStringEncoding]]; mailto: URL. to subject, body. URL NSString stringbyaddingpercentescapes UsingEncoding:. (Mail) (singleton) sharedapplication, openurl: (Mail). [[UIApplication sharedapplication] openurl:[nsurl URLWithString:emailString]]; NOTE Send (Mail). (foreground).. MFMailComposeViewController..

Chapter 13 1.. EmailsViewController.xib Round Rect button ( 13 3 ). 2. Xcode Frameworks Add Existing Frameworks..., MessageUI.framework ( 13 4 ). 3. EmailsViewController.h. #import <UIKit/UIKit.h> #import <MessageUI/MFMailComposeViewController.h> @interface EmailsViewController : UIViewController <MFMailComposeViewControllerDelegate> { IBOutlet UITextField *to; IBOutlet UITextField *subject; IBOutlet UITextView *body; @property (nonatomic, retain) UITextField *to; @property (nonatomic, retain) UITextField *subject; @property (nonatomic, retain) UITextView *body;

377 -(IBAction) btnsend: (id) sender; -(IBAction) btncomposeemail: (id) sender; @end 4., Compose Email Control File s Owner btncomposeemail:. 5. EmailsViewController.m. #import "EmailsViewController.h" @implementation EmailsViewController @synthesize to, subject, body; -(IBAction) btncomposeemail: (id) sender { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailcomposedelegate = self; [picker setsubject:@"email subject here"]; [picker setmessagebody:@"email body here" ishtml:no]; [self presentmodalviewcontroller:picker animated:yes]; [picker release]; - (void)mailcomposecontroller:(mfmailcomposeviewcontroller*)controller didfinishwithresult:(mfmailcomposeresult)result error:(nserror*)error { [controller dismissmodalviewcontrolleranimated:yes]; 6. Command R. Compose Email (Mail) ( 13 5 ).,.

Chapter 13 MFMailComposeViewController (modally),.. (Safari), URL openurl:. [[UIApplication sharedapplication] openurl:[nsurl URLWithString: @"http://www.apple.com"]]; http://www.apple.com ( 13 6 ). URL. [[UIApplication sharedapplication] openurl:[nsurl URLWithString: @"tel:02-123-4567"]]; NOTE SMS URL. [[UIApplication sharedapplication] openurl:[nsurl URLWithString: @"sms:02-123-4567"]];

379 SMS ( 13 7 ).. NOTE SDK 4 SMS.. SMS 1.. EmailsViewController.h. #import <UIKit/UIKit.h> #import <MessageUI/MFMailComposeViewController.h> #import <MessageUI/MFMessageComposeViewController.h>

Chapter 13 @interface EmailsViewController : UIViewController <MFMailComposeViewControllerDelegate, MFMessageComposeViewControllerDelegate> { IBOutlet UITextField *to; IBOutlet UITextField *subject; IBOutlet UITextView *body; @property (nonatomic, retain) UITextField *to; @property (nonatomic, retain) UITextField *subject; @property (nonatomic, retain) UITextView *body; -(IBAction) btnsend: (id) sender; -(IBAction) btncomposeemail: (id) sender; -(IBAction) btncomposesms: (id) sender; @end 2. EmailsViewController.xib, Round Rect button Compose SMS. 3. Control File s Owner btncomposesms:. 4. EmailsViewController.m. -(IBAction) btncomposesms: (id) sender { MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init]; picker.messagecomposedelegate = self; [picker setbody:@"this message sent from the application."]; [self presentmodalviewcontroller:picker animated:yes]; [picker release]; - (void)messagecomposeviewcontroller:(mfmessagecomposeviewcontroller *)controller didfinishwithresult:(messagecomposeresult)result { [controller dismissmodalviewcontrolleranimated:yes];

381 5. Command R SMS ( 13 8 ).. MFMessageComposeViewController SDK API. SMS,. SMS. ( 4 4 2 ). (Photos). (Photos).. (Photos).

Chapter 13 (Photos). SDK (Photos) UI UIImagePickerController.. 1. Xcode View based Application (iphone) PhotoLibrary. 2. PhotoLibraryViewController.xib. 3. ( 13 9 ). Round Rect Button ImageView 4. ImageView Attributes Inspector Mode Aspect Fit ( 13 10 ). 5. PhotoLibraryViewController.h. #import <UIKit/UIKit.h> @interface PhotoLibraryViewController : UIViewController <UINavigationControllerDelegate, UIImagePickerControllerDelegate> { IBOutlet UIImageView *imageview; UIImagePickerController *imagepicker;

383 @property (nonatomic, retain) UIImageView *imageview; -(IBAction) btnclicked: (id) sender; @end 6., File s Owner Control imageview ImageView. 7. Control File s Owner btnclicked:. 8. PhotoLibraryViewController.m. #import "PhotoLibraryViewController.h" @implementation PhotoLibraryViewController @synthesize imageview;

Chapter 13 - (void)viewdidload { imagepicker = [[UIImagePickerController alloc] init]; [super viewdidload]; - (IBAction) btnclicked: (id) sender { imagepicker.delegate = self; imagepicker.sourcetype = UIImagePickerControllerSourceTypePhotoLibrary; //--- --- [self presentmodalviewcontroller:imagepicker animated:yes]; - (void)imagepickercontroller:(uiimagepickercontroller *)picker didfinishpickingmediawithinfo:(nsdictionary *)info { UIImage *image; NSURL *mediaurl; mediaurl = (NSURL *)[info valueforkey: UIImagePickerControllerMediaURL]; if (mediaurl == nil) { image = (UIImage *) [info valueforkey:uiimagepickercontrollereditedimage]; if (image == nil) { //--- --- image = (UIImage *) [info valueforkey:uiimagepickercontrolleroriginalimage]; //--- --- imageview.image = image; else { //--- --- //--- (crop) --- CGRect rect = [[info valueforkey:uiimagepickercontrollercroprect] CGRectValue]; //--- --- imageview.image = image; else { //--- --- //--- ---

385 //--- --- [picker dismissmodalviewcontrolleranimated:yes]; - (void)imagepickercontrollerdidcancel:(uiimagepickercontroller *)picker { //---, --- [picker dismissmodalviewcontrolleranimated:yes]; - (void)dealloc { [imageview release]; [imagepicker release]; [super dealloc]; 9. Command R. 10. Load Photo Library. Photo Albums. ( 13 11 ),. ImageView ( 13 12 ).

Chapter 13 UI (Photo Library) UIImagePickerController. UIImagePickerControllerDelegate. UINavigationControllerDelegate. UIImagePickerController. PhotoLibraryViewController.h. @interface PhotoLibraryViewController : UIViewController <UINavigationControllerDelegate, UIImagePickerControllerDelegate> {... Load Photo Library UIImagePickerController,. - (IBAction) btnclicked: (id) sender { imagepicker.delegate = self; imagepicker.sourcetype = UIImagePickerControllerSourceTypePhotoLibrary; //--- --- [self presentmodalviewcontroller:imagepicker animated:yes];,. imagepicker.allowsediting = YES;, UIImagePickerControllerSourceTypePhotoLibrary,. UIImagePickerControllerSourceTypeCamera. UIImagePickerControllerSourceTypeSavedPhotosAlbum Photo Albums.

387 /, imagepickercontroller:didfinishpickingmediawithinfo:. - (void)imagepickercontroller:(uiimagepickercontroller *)picker didfinishpickingmediawithinfo:(nsdictionary *)info { UIImage *image; NSURL *mediaurl; mediaurl = (NSURL *)[info valueforkey:uiimagepickercontrollermediaurl]; if (mediaurl == nil) { image = (UIImage *) [info valueforkey:uiimagepickercontrollereditedimage]; if (image == nil) { //--- --- image = (UIImage *) [info valueforkey:uiimagepickercontrolleroriginalimage]; //--- --- imageview.image = image; else { //--- -- //--- (crop) --- CGRect rect = [[info valueforkey:uiimagepickercontrollercroprect] CGRectValue]; //--- --- imageview.image = image; else { //--- --- //--- --- //--- --- [picker dismissmodalviewcontrolleranimated:yes]; info:. valueforkey:,. mediaurl = (NSURL *)[info valueforkey:uiimagepickercontrollermediaurl];

Chapter 13 imagepickercontrollerdidcancel:.. - (void)imagepickercontrollerdidcancel:(uiimagepickercontroller *)picker { //--- --- [picker dismissmodalviewcontrolleranimated:yes]; (Photo Library).,. 1.. Xcode Frameworks MediaPlayer. framework MobileCoreServices.framework ( 13 13 ).

389 2. PhotoLibraryViewController.h. #import <UIKit/UIKit.h> #import <MediaPlayer/MediaPlayer.h> #import <MobileCoreServices/MobileCoreServices.h> @interface PhotoLibraryViewController : UIViewController <UINavigationControllerDelegate, UIImagePickerControllerDelegate> { IBOutlet UIImageView *imageview; UIImagePickerController *imagepicker; @property (nonatomic, retain) UIImageView *imageview; -(IBAction) btnclicked: (id) sender; @end 3. PhotoLibraryViewController.m. - (IBAction) btnclicked: (id) sender { imagepicker.delegate = self; imagepicker.sourcetype = UIImagePickerControllerSourceTypePhotoLibrary; NSArray *mediatypes = [NSArray arraywithobjects:kuttypeimage, kuttypemovie, nil]; imagepicker.mediatypes = mediatypes; //--- --- [self presentmodalviewcontroller:imagepicker animated:yes]; - (void)imagepickercontroller:(uiimagepickercontroller *)picker didfinishpickingmediawithinfo:(nsdictionary *)info { UIImage *image; NSURL *mediaurl; mediaurl = (NSURL *)[info valueforkey:uiimagepickercontrollermediaurl]; if (mediaurl == nil) { image = (UIImage *) [info valueforkey:uiimagepickercontrollereditedimage]; if (image == nil) { //--- --- image = (UIImage *)

Chapter 13 [info valueforkey:uiimagepickercontrolleroriginalimage]; //--- --- imageview.image = image; else { //--- --- //--- (crop) --- CGRect rect = [[info valueforkey:uiimagepickercontrollercroprect] CGRectValue]; //--- --- imageview.image = image; else { //--- --- MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initwithcontenturl:mediaurl]; [[NSNotificationCenter defaultcenter] addobserver:self selector:@selector(moviefinishedcallback:) name:mpmovieplayerplaybackdidfinishnotification object:player]; //--- --- player.view.frame = CGRectMake(0, 0, 320, 460); [self.view addsubview:player.view]; [player play]; //--- --- [picker dismissmodalviewcontrolleranimated:yes]; - (void) moviefinishedcallback:(nsnotification*) anotification { MPMoviePlayerController *player = [anotification object]; [[NSNotificationCenter defaultcenter] removeobserver:self name:mpmovieplayerplaybackdidfinishnotification object:player]; [player.view removefromsuperview];

391 [player autorelease]; 4. Command R. Choose ( 13 14 ).. UIImagePickerController. UIImagePickerController mediatypes. NSArray. kuttypeimage kuttypemovie. imagepicker.sourcetype = UIImagePickerControllerSourceTypePhotoLibrary; NSArray *mediatypes = [NSArray arraywithobjects:kuttypeimage, kuttypemovie, nil]; imagepicker.mediatypes = mediatypes; //--- --- [self presentmodalviewcontroller:imagepicker animated:yes];

Chapter 13 MPMoviePlayerController. if (mediaurl == nil) { //... //... else { //--- --- MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initwithcontenturl:mediaurl]; [[NSNotificationCenter defaultcenter] addobserver:self selector:@selector(moviefinishedcallback:) name:mpmovieplayerplaybackdidfinishnotification object:player]; //--- --- player.view.frame = CGRectMake(0, 0, 320, 460); [self.view addsubview:player.view]; [player play]; //--- --- [picker dismissmodalviewcontrolleranimated:yes];. - (void) moviefinishedcallback:(nsnotification*) anotification { MPMoviePlayerController *player = [anotification object]; [[NSNotificationCenter defaultcenter] removeobserver:self name:mpmovieplayerplaybackdidfinishnotification object:player]; [player.view removefromsuperview]; [player autorelease];

393 (Photo Library),., UIImagePickerController.... 1.. PhotoLibraryViewController.m ( ). - (IBAction) btnclicked: (id) sender { imagepicker.delegate = self; //--- --- /* imagepicker.sourcetype = UIImagePickerControllerSourceTypePhotoLibrary; NSArray *mediatypes = [NSArray arraywithobjects:kuttypeimage, kuttypemovie, nil]; imagepicker.mediatypes = mediatypes; */ //--- --- imagepicker.sourcetype = UIImagePickerControllerSourceTypeCamera; NSArray *mediatypes = [NSArray arraywithobjects:kuttypeimage, kuttypemovie, nil]; imagepicker.mediatypes = mediatypes; imagepicker.cameracapturemode = UIImagePickerControllerCameraCaptureModeVideo; imagepicker.allowsediting = YES; //--- --- [self presentmodalviewcontroller:imagepicker animated:yes]; 2. PhotoLibraryViewController.m.

Chapter 13 - (NSString *) filepath: (NSString *) filename { NSArray *paths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsdir = [paths objectatindex:0]; return [documentsdir stringbyappendingpathcomponent:filename]; - (void) saveimage{ //--- --- NSData *imagedata = [NSData datawithdata:uiimagepngrepresentation(imageview.image)]; //--- --- [imagedata writetofile:[self filepath:@"mypicture.png"] atomically:yes]; 3.. - (void)imagepickercontroller:(uiimagepickercontroller *)picker didfinishpickingmediawithinfo:(nsdictionary *)info { UIImage *image; NSURL *mediaurl; mediaurl = (NSURL *)[info valueforkey:uiimagepickercontrollermediaurl]; if (mediaurl == nil) { image = (UIImage *) [info valueforkey:uiimagepickercontrollereditedimage]; if (image == nil) { //--- --- image = (UIImage *) [info valueforkey:uiimagepickercontrolleroriginalimage]; //--- --- imageview.image = image; //--- --- [self saveimage]; else { //--- --- //--- (crop) --- CGRect rect = [[info valueforkey:uiimagepickercontrollercroprect]

395 CGRectValue]; //--- --- imageview.image = image; //--- --- [self saveimage]; else { //--- --- MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initwithcontenturl:mediaurl]; [[NSNotificationCenter defaultcenter] addobserver:self selector:@selector(moviefinishedcallback:) name:mpmovieplayerplaybackdidfinishnotification object:player]; //--- --- player.view.frame = CGRectMake(0, 0, 320, 460); [self.view addsubview:player.view]; [player play]; //--- --- [picker dismissmodalviewcontrolleranimated:yes]; 4. Command R. 5. Load Photo Library. ( 13 15 ) Documents. ( 13 16 ).

Chapter 13. imagepicker.sourcetype = UIImagePickerControllerSourceTypeCamera; imagepickercontroller:didfinishpicking MediaWithInfo:,.

397. filepath: Documents. - (NSString *) filepath: (NSString *) filename { NSArray *paths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsdir = [paths objectatindex:0]; return [documentsdir stringbyappendingpathcomponent:filename]; saveimage:, MyPicture.png filepath:. - (void) saveimage{ //--- --- NSData *imagedata = [NSData datawithdata:uiimagepngrepresentation(imageview.image)]; //--- --- [imagedata writetofile:[self filepath:@"mypicture.png"] atomically:yes]; URL, MediaPlayer MPMoviePlayerController. NOTE UIImagePickerController UIImagePickerController cameradevice UIImagePickerControllerCameraDeviceRear UIImagePickerControllerCameraDeviceFront NOTE

Chapter 13. URL SMS (Mail), (Safari), (Phone). SMS, SDK (Photo Library). 1. SMS (Mail), (Safari), (Phone) URL 2. Image Picker UI 3. Mail Composer UI 4. Message Composer UI E.

399 NSString *emailstring = @"mailto:?to=user@email.com&subject=subject&body=body", [[UIApplication sharedapplication] openurl:[nsurl URLWithString:emailString]]; [[UIApplication sharedapplication] openurl:[nsurl URLWithString: @"http://www.apple.com"]]; [[UIApplication sharedapplication] openurl:[nsurl URLWithString: @"tel:0123456789"]]; [[UIApplication sharedapplication] openurl:[nsurl URLWithString: @"sms:0123456789"]]; UIImagePickerController UINavigation ControllerDelegate MFMailComposeViewController MFMessageComposeViewController