0

我想展示 RPBroadcastActivityViewController,但失败了。示例代码只是呈现一个黑色视图。

- (IBAction)displayServiceViewController:(id)sender {
    RPBroadcastActivityViewController *rpBroadcastActivityViewController = [[RPBroadcastActivityViewController alloc] init];
    [self presentViewController:rpBroadcastActivityViewController animated:YES completion:nil];

}

我希望是以下效果:

预期的

4

1 回答 1

0
- (IBAction)displayServiceViewController:(id)sender {
    [RPBroadcastActivityViewController loadBroadcastActivityViewControllerWithHandler:^(RPBroadcastActivityViewController * _Nullable broadcastActivityViewController, NSError * _Nullable error) {
        broadcastActivityViewController.delegate = self;
        [self presentViewController:broadcastActivityViewController animated:YES completion:nil];
    }];

}
于 2016-09-20T08:42:08.937 回答