We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
找到个文章,http://www.jianshu.com/p/ce123a2015f9 看了下代码,但是不知道应该怎么修改
NSString *test = @"com.tencent.xin.sharetimeline"; UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:objectsToShare applicationActivities:nil];
这2个怎么处理一下呢
The text was updated successfully, but these errors were encountered:
搞了半天,搞出来了,虽然看不懂代码。
NSString *test = @"com.tencent.xin.sharetimeline"; NSUInteger count = [ImagesUrl count]; //定义一个可变数组来存放分享的图片,最多不能超过9个 NSMutableArray * objectsToShare = [NSMutableArray arrayWithCapacity:9]; SLComposeViewController *activityVC = [SLComposeViewController composeViewControllerForServiceType:test]; for (int i = 0; i < count; i++) { NSString * imageUrl = [ImagesUrl objectAtIndex: i]; UIImage * imageToShare = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString: imageUrl]]]; [objectsToShare addObject:imageToShare]; [activityVC addImage:imageToShare]; if(i == 8)break; }
Sorry, something went wrong.
No branches or pull requests
找到个文章,http://www.jianshu.com/p/ce123a2015f9 看了下代码,但是不知道应该怎么修改
这2个怎么处理一下呢
The text was updated successfully, but these errors were encountered: