iOS 菜單頁面:AHPagingMenuViewController
AHPagingMenuViewController 是類似 UINavigationController 的菜單頁面,可用于 Tinder ,高度定制化,是用 Swift 和 Objective-C 寫成。
Installation
- 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!
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!