//// RNFrostedMenu.h// RNFrostedMenu//// Created by Ryan Nystrom on 8/13/13.// Copyright (c) 2013 Ryan Nystrom. All rights reserved.//// Original Dribbble shot by Jakub Antalik// http://dribbble.com/shots/1194205-Sidebar-calendar-animation//#import@class RNFrostedSidebar;@protocol RNFrostedSidebarDelegate@optional- (void)sidebar:(RNFrostedSidebar *)sidebar willShowOnScreenAnimated:(BOOL)animatedYesOrNo;- (void)sidebar:(RNFrostedSidebar *)sidebar didShowOnScreenAnimated:(BOOL)animatedYesOrNo;- (void)sidebar:(RNFrostedSidebar *)sidebar willDismissFromScreenAnimated:(BOOL)animatedYesOrNo;- (void)sidebar:(RNFrostedSidebar *)sidebar didDismissFromScreenAnimated:(BOOL)animatedYesOrNo;- (void)sidebar:(RNFrostedSidebar *)sidebar didTapItemAtIndex:(NSUInteger)index;- (void)sidebar:(RNFrostedSidebar *)sidebar didEnable:(BOOL)itemEnabled itemAtIndex:(NSUInteger)index;@end@interface RNFrostedSidebar : UIViewController+ (instancetype)visibleSidebar;// The width of the sidebar// Default 150@property (nonatomic, assign) CGFloat width;// Access the view that contains the menu items@property (nonatomic, strong, readonly) UIScrollView *contentView;// Toggle displaying the sidebar on the right side of the device// Default NO@property (nonatomic, assign) BOOL showFromRight;// The duration of the show and hide animations// Default 0.25@property (nonatomic, assign) CGFloat animationDuration;// The dimension for each item view, not including padding// Default {75, 75}@property (nonatomic, assign) CGSize itemSize;// The color to tint the blur effect// Default white: 0.2, alpha: 0.73@property (nonatomic, strong) UIColor *tintColor;// The background color for each item view// NOTE: set using either colorWithWhite:alpha or colorWithRed:green:blue:alpha// Default white: 1, alpha 0.25@property (nonatomic, strong) UIColor *itemBackgroundColor;// The width of the colored border for selected item views// Default 2@property (nonatomic, assign) NSUInteger borderWidth;// An optional delegate to respond to interaction events@property (nonatomic, weak) iddelegate;
RNFrostedSidebar(左滑控制器出现动画)
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 原文链接http://www.cnblogs.com/kenshincui/p/4186022.html 音频在i...
- /* UIViewController is a generic controller base class th...
- 小结 - 上学;休息,跳1500,读书,值日,练琴,写作业。 明日计划 - 乐队,上学,读书;跳1500,读书,练...