Alfred
Alfred

Reputation: 21

UIActivityViewController initWithActivityItems size

I have tried to use an array containing only one NSData object which size is over 5 Mo with initWithActivityItems

When the completion handler is called :

[_activityViewController -setCompletionWithItemsHandler:^(NSString *activityType, BOOL completed, NSArray *returnedItems, NSError * error),

returnedItems is nil

I don't have this issue when NSData is around 2 Mo

Thanks for your help

Upvotes: 2

Views: 386

Answers (1)

matt
matt

Reputation: 535860

You're probably just hitting a memory size limit. You can try using a UIActivityItemProvider, but in my understanding this handles the situation where the data are time-consuming to provide, not where the data are overly large.

Upvotes: 0

Related Questions