how to implement right panel slide effect like following picture? when click left area, the right panel is hidden.
picture url http://cdn.thenextweb.com/wp-content/blogs.dir/1/files/2012/02/photo.png
I think
- it is not popover controller.
- is it a view added by using “addSubview”? I don’t think so because it is a navigation controller,it seems that view in navigation controller can’t be added by using addsubview
- is it a modal view? if yes, how to implement semi transparent background? if use UIModalPresentationCurrentContext to present modal view, parent view can’t rotate when ipad is rotated.
Any help is highly appreciated! Thanks.
These are all likely highly customized view controllers, and view controller containers.
You can fully control the presentation of your view controllers by adding them as children of another view controller, and adding their views to the view tree manually — using any animation you choose.
The dimming effect you see can be achieved by overlaying a “dimming view”, for example a black 50% opaque view.