iOS[UIApplication shared Application]openURL 등 자주 사용 하 는 방법:전화,위치 확인 등
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:// "]];
2.문자 보 내기
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:// "]];
3.앱 위치 설정 권한 설정
NSURL *settingsURL = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
[[UIApplicationsharedApplication] openURL:settingsURL];
4.Safari 를 호출 하여 페이지 열기
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://eyecm.com"]];
5,APP 상점 호출
NSURL *url= [NSURL URLWithString:@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=291586600&mt=8"];
[[UIApplication sharedApplication] openURL:url];
6.appstore 상점 리 뷰 호출
NSInteger apple_id = 121212;
NSString *str = [NSString stringWithFormat:
@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%ld",
(long)apple_id ];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
7.메 일 클 라 이언 트 호출(Apple Mail)
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://[email protected]"]];
8.구 글 맵 호출(구 글 맵 스)
NSString *searchQuery = @"1 Infinite Loop, Cupertino, CA 95014";
searchQuery = [addressText stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
NSString *urlString=[NSString stringWithFormat:@"http://maps.google.com/maps?q=%@", searchQuery];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlText]];
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
View의 레이아웃 방법을 AutoLayout에서 따뜻한 손 계산으로 하면 성능이 9.26배로 된 이야기이 기사는 의 15 일째 기사입니다. 어제는 에서 이었습니다. 손 계산을 권하는 의도는 없고, 특수한 상황하에서 계측한 내용입니다 화면 높이의 10 배 정도의 contentView가있는 UIScrollView 레이아...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.