我尝试向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];
}