Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. func previewingContext(previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? {
  2.  
  3. //Getting someId using the location and then I just create a view controller depending onthat id
  4. return viewControllerForPlayer(someId) //This returns the view controller I am trying to peek
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement