UIActivityViewController无法正常显示ios

时间:2016-06-06 13:33:29

标签: ios objective-c iphone uiactivityviewcontroller

enter image description here请在下面的屏幕截图中显示UIActivityViewController在视角而不是中心下方显示。 这是我的代码

copyLink=[NSString stringWithFormat:@"https://www.google.com];
    NSURL *url = [NSURL URLWithString:copyLink];
    NSArray * activityItems = @[@"Follow app ",url];
    UIActivityViewController * AVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];
   [self presentViewController:AVC animated:YES completion:nil];

0 个答案:

没有答案