1
내가 가지고 내 사용자 지정 UIActivity 일부 이미지 내가 데이터 (activityitems)의 또 다른 세트를 공유 할 비록 내가 페이스 북을 통해 공유 할 & 텍스트, 트위터, 그것이 잘 작동사용자 정의 UIActivity 데이터
NSLog(@"The Selected Photo Count %i",[self.selectedPhotos count]);
NSMutableArray *newArray=[[NSMutableArray alloc]init];
NSMutableArray *newArraytext=[[NSMutableArray alloc]init];
for (Shoplog * ChosenPhot in self.selectedPhotos) {
NSString *initalTextString = [NSString
stringWithFormat:@"I am Sending from my Shoplog Collection: %@",
ChosenPhot.categoryname];
[newArraytext addObject:initalTextString];
CreateShoplogTagImage *createimagetag=[[CreateShoplogTagImage alloc]init];
UIImage *newimage=[createimagetag Imagetag:ChosenPhot];
NSDictionary *flurrydicttionary3=[[NSDictionary alloc]initWithObjectsAndKeys:ChosenPhot.categoryname,@"SharedCategoryname", nil];
[Flurry logEvent:@"SharedCatalogue" withParameters:flurrydicttionary3 timed:YES];
[newArray addObject:newimage];
}
NSMutableArray *addArray=[[NSMutableArray alloc]initWithArray:newArray];
[addArray addObjectsFromArray:newArraytext];
UIActivityViewController *activityViewController2 =[[UIActivityViewController alloc]initWithActivityItems:addArray applicationActivities:@[shopactivity]];
[self presentViewController:activityViewController2 animated:YES completion:^{}];