暂存
This commit is contained in:
1 parent
723c881790
commit
f21b83697b
18 files changed
+1912
-1386
No files matched your search
@@ -86,4 +86,25 @@ void WechatLogin(const char* scope,const char* state)
|
||||
void OpenWXApp()
|
||||
{
|
||||
[WXApi openWXApp];
|
||||
}
|
||||
|
||||
bool checkAPPIsExist(NSString* URLScheme)
|
||||
{
|
||||
NSURL* url;
|
||||
if ([URLScheme containsString:@"://"])
|
||||
{
|
||||
url = [NSURL URLWithString:[NSString stringWithFormat:@"%@",URLScheme]];
|
||||
}
|
||||
else
|
||||
{
|
||||
url = [NSURL URLWithString:[NSString stringWithFormat:@"%@://",URLScheme]];
|
||||
}
|
||||
if([[UIApplication sharedApplication] canOpenURL:url])
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user