Skip to content

Latest commit

 

History

History
executable file
·
59 lines (38 loc) · 1.63 KB

README.md

File metadata and controls

executable file
·
59 lines (38 loc) · 1.63 KB

AHPagingMenuViewController

AHPagingMenuViewController 1.0. Menu Paging like UINavigationController used in Tinder! Highly customizable

Roughly hacked to leverage Font_Awesome_Swift as icons

    let homeLabel = UILabel()
    homeLabel.setFAIcon(icon: FAType.FAHome, iconSize: 32)
    icons = [homeLabel.attributedText!,
            homeLabel.attributedText!,
            homeLabel.attributedText!,
            homeLabel.attributedText!]
    var AHController = AHPagingMenuViewController(controllers: [v1,v2,v3,v4,v5], icons: icons)

Demo

AHPagingMenuViewController AHPagingMenuViewController

##Installation

  1. Add the AHPagingMenuViewController Folder into your project. Easy, easy!

How Use

Very easy! Just import the file

#import "AHPagingMenuViewController"

So, alloc with your controllers and titles (NSString or UIImage)

Obj-c

AHPagingMenuViewController *AHController = [[AHPagingMenuViewController alloc] initWithControllers: @[v1,v2,v3] andMenuItens:@[[UIImage imageNamed:@"photo"],[UIImage imageNamed:@"heart", @"Title"]];

Swift

var AHController = AHPagingMenuViewController(controllers: [v1,v2,v3,v4,v5], icons: ["Page 1", "Page 2", "Page 3", "Page 4", "Page 5"])

Easy, easy! See more in Demo!

Licence

MIT

Author

Problems ? Suggestions? Send to me! andre.henrique@me.com. My Website Thank you! =D