iOS 菜单页面:AHPagingMenuViewController

jopen 9年前

AHPagingMenuViewController 是类似 UINavigationController 的菜单页面,可用于 Tinder ,高度定制化,是用 Swift 和 Objective-C 写成。

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!


iOS 菜单页面:AHPagingMenuViewController

项目主页:http://www.open-open.com/lib/view/home/1434683060598