I have a custom UIActivity which return an UIViewController when the method - (UIViewController *)activityViewController has been called. But it end up showing a blank black screen instead of the UIViewController after clicking on the activity. Any idea what's wrong?
This is my code in the custom UIActivity:
- (void)prepareWithActivityItems:(NSArray *)activityItems
{
self.vc = [[testaViewController alloc] init];
}
- (UIViewController *)activityViewController
{
return self.vc;
}