Giter Site home page Giter Site logo

voovilsidemenu's Introduction

VoovilSideMenu for iOS 7 and XCode 5

Note: This is my first project on Github!

VoovilSideMenu is a simple SideMenu for iOS 7 Apps. This app uses ARC, Storyboards, it's works fine with Swipe Gesture and IBAction button. I have use Modern Objective-C, so you can easily add items to tableview with .plist. The picture will be automatically rounded with CAlayer.

Screenshot

Normal Github version (Free) | Pro Version (Contact me: [email protected] or visit Codecanyon - Sale $8)

   

How-To

Change the SideMenu width

You can set the width on the storyboard, the functions Show/Hide are set with **sideMenu.frame** and **menuTable.frame**.

Change the picture size

I have set the CornerRadius to 60.0 because the picture size on the storyboard is 120px.

Example: You change the size of the picture with storyboard to 220px, than you have to change the [imageLayer setCornerRadius:60.0]; "60.0" to 110.0.

Change the seperator

I have use a custom seperator for the tableview with CAlayer. You can change the size, width and the color of the seperator as follow: separator.backgroundColor = [UIColor colorWithRed:255/255.0f green:255/255.0f blue:255/255.0f alpha:0.25].CGColor; separator.frame = CGRectMake(31, 43, 200, .5);

Change the row height

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {

Action to didselectrow

You can use if (indexPath.row == 0) in -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{

Example

if (indexPath.row == 0) { NSLog(@"Pressed 0"); } if (indexPath.row == 1) { NSLog(@"Pressed 1"); } if (indexPath.row == 2) { NSLog(@"Pressed 2"); }

Support me

Donation are recommended

Visit my Website for Tutorials, Sample projects and more!

Özcan Akbulut

voovilsidemenu's People

Contributors

ozcnakblt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.