我尝试将自定义图标添加到 UIActivity,我做到了,但我无法设置 UIACtivity。当我单击图标打开其他 ViewController 并从 UIActivity 获取文本和图像时,我想要帽子。我有这个代码
- (UIViewController *)activityViewController
{
ViewController *viewController = [[[ViewController alloc] init] autorelease];
viewController.activity = self;
viewController.modalTransitionStyle=UIModalTransitionStyleCoverVertical;
return viewController;
}
但这不起作用
- (void)performActivity
{
ViewController *viewController = [[[ViewController alloc] init] autorelease];
[viewController.textField1 setText:self.message];
[viewController.imageView setImage:self.image];
[self activityDidFinish:YES];
}