Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.59 KB

README.md

File metadata and controls

58 lines (39 loc) · 1.59 KB

UzysDragMenu

Drag Menu you can easily open and close using drag gesture.

Screenshot Screenshot

UzysDragMenu features:

  • Very Easy to customize menu view , you can use interface builder.
  • you can choose drag area (superView or MenuView), using Option : isSuperViewGesture
  • Support Both ARC and non-ARC Project

Installation

Copy over the files libary folder to your project folder

Usage

Import header.

#import "UzysDragMenu.h"

Initialize

####1. make menu Item

UzysDragMenuItem *item0 = [[UzysDragMenuItem alloc] initWithTitle:@"UzysSlide Menu" image:[UIImage imageNamed:@"0.png"] action:^(UzysDragMenuItem *item) {
    NSLog(@"Item: %@", item);

}];
item0.tag = 0;

####2. make controlview

UzysDragMenuControlView *controlView = [[[NSBundle mainBundle] loadNibNamed:@"UzysDragMenuControlView" owner:self options:nil] lastObject];
    
[controlView.btnAction addTarget:self action:@selector(actionBtn:) forControlEvents:UIControlEventTouchUpInside];

####3. make UzysDragmenu

self.uzysDmenu = [[UzysDragMenu alloc] initWithItems:@[item0,item1,item2]
                                         controlMenu:controlView
                                    superViewGesture:YES];
[self.view addSubview:self.uzysDmenu];

Contact

License