-2

Can someone please tell me how to take a snapshot from a listView?

First I thought that a screenshot will do the job, but sometimes the listView is bigger and it will be good to take a snapshot from it instead.

Erik
  • 2,316
  • 9
  • 36
  • 58
Gadek
  • 1
  • follow this [link](http://stackoverflow.com/questions/25448879/how-to-take-full-screen-screenshot-in-swift/25457222#25457222) – Chandan Jul 21 '16 at 19:15

1 Answers1

2

You can take a snapshot from any UIView like this:

let snapshot = myView.snapshotView(afterScreenUpdates: true)
Viktor Simkó
  • 2,607
  • 16
  • 22