CDSideBarController
CDSideBarController is a light and easy side bar with custom iOS7 animations and actions
Install / Use
/learn @MeTazz1/CDSideBarControllerREADME
CDSideBarController
CDSideBarController is a light and easy side bar with custom iOS7 animations and actions
<strong>How does it work ?</strong>
-
Import CDSideBar/CDSideBarController in your project
-
.h file<br/> 2.1 - #import "CDSideBarController.h" in the header file<br/> 2.2 - Add <CDSideBarControllerDelegate> delegate<br/> 2.3 - Add CDSideBarController *sideBar in your interface<br/> Should look like this: <br/> <strong>#import "CDSideBarController.h"</strong><br/>
@interface ViewController : UIViewController <CDSideBarControllerDelegate><br/> {<br/> CDSideBarController *sideBar;<br/> }<br/>
- .m file<br/>
3.1 - In viewDidLoad, create a NSArray that contains your menu images<br/>
3.2 - Create your instance of CDSideBarController with this array<br/>
3.3 - Set self as a delegate to this instance<br/>
Should look like this:<br/>
NSArray *imageList = @[[UIImage imageNamed:@"menuChat.png"], [UIImage imageNamed:@"menuUsers.png"], [UIImage imageNamed:@"menuMap.png"], [UIImage imageNamed:@"menuClose.png"]];
sideBar = [[CDSideBarController alloc] initWithImages:imageList];<br/>
sideBar.delegate = self;<br/>
3.4 - Add the delegate method to be notified each time a menu button is clicked<br/>
- (void)menuButtonClicked:(int)index<br/> {<br/> // Execute what ever you want<br/> }<br/>
3.4 - Once you want the sidebar appear, just add :<br/> [sideBar insertMenuButtonOnView:self.view atPosition:CGPointMake(self.view.frame.size.width - 70, 50)];<br/> AtPosition correspond to the position where the show/hide menu button will be displayed<br/>
You're all set!<br/>
Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
