0

I am creating picture masked app for iOS. In my app, I listed all modified pics in collection view as thumbnail(that cells are custom). And I want to save all items(that items are be custom cells in collectionView) in collectionView as 1 image . Is this possible? if it isn't is there a way to save like that?

Thank you

Antiokhos
  • 2,944
  • 5
  • 23
  • 32

1 Answers1

1

If I understand your question correctly, you can achieve so by taking a screenshot programmatically. The update in iOS7 made it more efficient. The ways to do it is as following:

snapshotViewAfterScreenUpdates

resizableSnapshotViewFromRect:afterScreenUpdates:withCapInsets

drawViewHierarchyInRect:afterScreenUpdates

Then you can convert the returned UIView into a image and save it.

Anton
  • 559
  • 2
  • 15