No, there is no SDK for this. You can do this in two ways.
- Using two UIViewController
- Using two UIView.
I recommend the second because I used it and it works fine.
For the first approach, you will find an example and demo on github.com.
let me briefly talk about how I implemented it using two UIView.
Your regular content will be the default UIView, and the slide controls will be displayed in the second mode.
By default, the normal UIView will be visible, and the UIView slider will be at -x pos, something like (-200,0,200,320) set this according to your needs.
When you click the show / hide button, change its frame property so that the normal UIView slide is the right side 200 pt and the UIView slider will appear on the screen.
Let me show some code to hide / show:
[UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.5]; view.frame = CGRectMake(250, view.frame.origin.y, view.frame.size.width, view.frame.size.height);; slideView.frame = CGRectMake(0, view.frame.origin.y, 250, view.frame.size.height);; [UIView commitAnimations];
The parameter in CGRectMake can be any according to what you want.
To implement this, create a subclass of UIView. and add a UITableView if you want to look like facebook.
Update:
When looking for a new implementation, I found a wonderful work on this concept by one developer. If someone is thinking of adding this feature, you should visit it once: MMDrawerController
All the best