ios - How to make swipe back in left side in single view -
i made more 1 view without taking new controller class , used uigesturerecognizer
not better.
i want swipe same ios device, when start swipe left side corner.
you can implement scrollview.
steps:
1)first place scrollview fills full screen.
2)next create container view big hold 2 views.
let containersize = cgsize(width: 640.0, height: 640.0) containerview = uiview(frame: cgrect(origin: cgpoint(x: 0, y: 0),size:containersize)) scrollview.addsubview(containerview)
3) create view 1 , view2 , add them container view.
4) set scrollview content size container size
scrollview.contentsize = containersize;
5) set scrollview delegate method
func viewforzoominginscrollview(scrollview: uiscrollview!) -> uiview!{ return containerview }
Comments
Post a Comment