(一)判斷程序是否為第一次運行:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ? // 放在didFinishLaunching里面執(zhí)行?};

(二)判斷字符串是否為中文字符串

(三)將字符串@"蘋果中國"變成 @"蘋***"

(四)[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@""]];
(1)調用系統(tǒng)打電話功能
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10010"]];
//調用系統(tǒng)打電話功能,通話結束會停留在撥號界面;
NSURL *phoneURL = [NSURL URLWithString:@"tel://telephoneNumber"];
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero];
[webView loadRequest:[NSURLRequest requestWithURL:phoneURL]];
[self.view addSubview:webView];
//打電話彈出提示,回到應用
(2)調用系統(tǒng)發(fā)送郵件
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://dntalk@yeah.net"]];
//向dntalk@yeah.net發(fā)送郵件
(3)打開Safari
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.baidu.com"]];
//調用Safari打開網(wǎng)址