Giter Site home page Giter Site logo

sfscollectionmenu's Introduction

SFSCollectionMenu

An open-source menu control for iOS utilizing UICollectionView layout.

SFSCollectionMenu is an open-source control for a UICollectionView-based menu. SFSCollectionMenu is designed for iOS 7, and is ARC-compliant. It works by utilizing a delegate pattern to allow you, the developer, the implement it easily and add your own code to customize its appearance and behavior. SFSCollectionMenuController's designated initializer is -initWithDelegate, as the delegate is required for operation.

####Accessibility This menu control is written to be accessible by blind/low-vision users. The delegate protocol has required methods to implement this. The menu control will check if Voice Over is on, and if so, it will implement a close button in the center of the control so that when swiping through the controls using Voice Over, the user has an obvious opportunity to cancel the menu if not wanting to choose a button.

####Contact If you use this framework, I'd love to hear from you! Here's how to contact me:

####To use
Method A:

  1. Use CocoaPod
    $ edit Podfile
    platform :ios, '7.0'
    pod 'SFSCollectionMenu', '~> 0.2.0'
  2. Install CocoaPod
    $ pod install

Method B:

  1. Add the following files to your project
  • SFSCollectionMenuController (.h/.m)
  • SFSCircleLayout (.h/.m)
  • SFSMenuCell (.h/.m)
  • UIImage+ImageEffects (.h/.m)
  1. Import SFSCollectionMenuController.h to your controller
  2. Adhere to the SFSCollectionMenuDelegate protocol
  3. Create an instance of the menu controller by [[SFSCollectionMenuController alloc] initWithDelegate:self], or whatever object you designate as the delegate
  4. Implement the required methods, and any optional methods you wish
  • NOTE: if your view is inside a container view controller (such as UINavigationController or UITabBarController), return self.tabBarController.view or self.navigationController.view to blur the whole screen in the -viewForMenu delegate method
  1. Call -showMenuWithLightEffect: on your instance of SFSCollectionMenuController

####Screenshots
iPad portrait iPhone 4 inch portrait

####To do

  • nothing at the moment

sfscollectionmenu's People

Contributors

sixfivesoftware avatar

Watchers

James Cloos avatar Juliano Muniz 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.