Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1 from LazarusX/master
Browse files Browse the repository at this point in the history
微信未被安装或者安装的版本不支持 OpenAPI,不显示
  • Loading branch information
iDay committed Mar 8, 2014
2 parents cbabcde + 4590e58 commit 483ce80
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions WeixinActivity/WeixinActivityBase.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ - (NSString *)activityType

- (BOOL)canPerformWithActivityItems:(NSArray *)activityItems
{
for (id activityItem in activityItems) {
if ([activityItem isKindOfClass:[UIImage class]]) {
return YES;
}
if ([activityItem isKindOfClass:[NSURL class]]) {
return YES;
if ([WXApi isWXAppInstalled] && [WXApi isWXAppSupportApi]) {
for (id activityItem in activityItems) {
if ([activityItem isKindOfClass:[UIImage class]]) {
return YES;
}
if ([activityItem isKindOfClass:[NSURL class]]) {
return YES;
}
}
}
return NO;
Expand Down

0 comments on commit 483ce80

Please sign in to comment.