iOS通过url获取scheme

   - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url

{

if([[url scheme] isEqualToString:@"myapp"]){

[application setApplicationIconBadgeNumber:10];

return YES;

 }

return NO;

}

你可能感兴趣的:(iOS通过url获取scheme)