由于項目需求,需要實現(xiàn)一個應用打開另一個應用,OpenTestA打開OpenTestB,需求實現(xiàn)如下:

M1
填寫Identifier和URL Schemes兩項,Identifier 填寫本項目的 Bundle Identifier,URL Schemes 的內(nèi)容可以自定義(建議填寫項目的名稱,簡單明了)。這兩項就是OpenTestB的URL地址,通過這個URL能打開OpenTestB。在OpenTestA中實現(xiàn)
NSURL *url = [NSURL URLWithString:@"OpenTestB://com.B.test"];
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];