A项目中的info.plist中添加
B调用A
[[UIApplicationsharedApplication] openURL:[NSURLURLWithString:@"myapp://"]];
关于传参
B程序中
[[UIApplicationsharedApplication] openURL:[NSURLURLWithString:@"myapp://username=ios001;pwd=123123"]];
A程序AppController中处理
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
NSString*text = [[url host] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
text 就是 username=ios001;pwd=123123