1.找到工程中的info.plist文件,找到下方的URL TYPES 进行配置 ,如图
2.在safari浏览器中输入com.easyflower:// 就可以打开当前配置的应用。
有些时候我们除了启动还需向另外一个应用发送参数,这是也可以通过自定义的URL来实现,我们需要在代理
-(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url中做处理
-(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
{
if (!url) { return NO; }
NSString *URLString = [url absoluteString];
NSLog(@"%@",URLString);
return YES;
}