All Projects → lifution → Fsactionsheet

lifution / Fsactionsheet

Licence: mit
模仿微信底部ActionSheet, 支持横屏, 最低支持iOS6.

Projects that are alternatives of or similar to Fsactionsheet

TezActionSheet
Custom singleton actionSheet with block completion.
Stars: ✭ 18 (-76.62%)
Mutual labels:  actionsheet
Easyshowview
一款非常简单的展示工具。提示框,加载框,空白页提示,alert弹出框。一行代码搞定所有操作。
Stars: ✭ 447 (+480.52%)
Mutual labels:  actionsheet
Leealert
优雅的可自定义 Alert ActionSheet
Stars: ✭ 1,097 (+1324.68%)
Mutual labels:  actionsheet
HJCActionSheet
Like Wechat ActionSheet Demo
Stars: ✭ 12 (-84.42%)
Mutual labels:  actionsheet
Uiwidget
一个集成TabLayout、UIAlertDialog、UIActionSheetDialog、UIProgressDialog、TitleBarView(自带沉浸式标题栏)、CollapsingTitleBarLayout、RadiusView(圆角及状态背景设置View解放shape文件)、KeyboardHelper(软键盘控制及遮挡控制类)、StatusViewHelper(状态栏沉浸帮助类)、NavigationViewHelper(导航栏沉浸式帮助类)、AlphaViewHelper(View透明度控制帮助类) 等项目常用UI库
Stars: ✭ 400 (+419.48%)
Mutual labels:  actionsheet
Lcactionsheet
一款简约而不失强大的 ActionSheet,微博、微信和 QQ 都采用了极其类似的样式,完全支持 Swift。
Stars: ✭ 809 (+950.65%)
Mutual labels:  actionsheet
react-native-wxui
A UI package for React Native
Stars: ✭ 21 (-72.73%)
Mutual labels:  actionsheet
Sheeeeeeeeet
Sheeeeeeeeet is a Swift library for creating menus, custom action sheets, context menus etc.
Stars: ✭ 1,177 (+1428.57%)
Mutual labels:  actionsheet
React Native Actions Sheet
A Cross Platform(Android & iOS) ActionSheet with a flexible api, native performance and zero dependency code for react native. Create anything you want inside ActionSheet.
Stars: ✭ 412 (+435.06%)
Mutual labels:  actionsheet
Lgalertview
Customizable implementation of UIAlertViewController, UIAlertView and UIActionSheet. All in one. You can customize every detail. Make AlertView of your dream! :)
Stars: ✭ 1,027 (+1233.77%)
Mutual labels:  actionsheet
react-native-actionsheet-api
React Native API Andorid polyfill
Stars: ✭ 18 (-76.62%)
Mutual labels:  actionsheet
Tltransitions
快速实现控制器的转场和View的快速popover显示,并支持自定义动画、手势退场
Stars: ✭ 296 (+284.42%)
Mutual labels:  actionsheet
Mxactionsheet
actionSheet something like weChat
Stars: ✭ 17 (-77.92%)
Mutual labels:  actionsheet
iakit
无依赖 mini 组件库,只封装了 alert, toast, loading, actionSheet 等使用频率较高的组件。适用于类似 H5 活动页的简单移动端项目,不必为了使用这些组件而引入一个大而全的 UI 库和框架。
Stars: ✭ 38 (-50.65%)
Mutual labels:  actionsheet
Hdalertview
A similar system UIAlertView
Stars: ✭ 61 (-20.78%)
Mutual labels:  actionsheet
actionsheet-android
iPad-style ActionSheet for Android
Stars: ✭ 21 (-72.73%)
Mutual labels:  actionsheet
Swiftentrykit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps.
Stars: ✭ 5,706 (+7310.39%)
Mutual labels:  actionsheet
React Native Actionsheet
An elegant ActionSheet component for React Native.
Stars: ✭ 1,188 (+1442.86%)
Mutual labels:  actionsheet
Popmenu
A fully customizable popup style menu for iOS 😎
Stars: ✭ 1,155 (+1400%)
Mutual labels:  actionsheet
Tbactionsheet
A Custom&Powerful Action Sheet For iOS. 一个 ActionSheet 满足所有样式!超高自由度的可定制!
Stars: ✭ 942 (+1123.38%)
Mutual labels:  actionsheet

FSActionSheet

模仿微信底部ActionSheet, 支持横屏显示.(支持iOS6及往后版本)

按钮如果过多则默认显示为屏幕高度的默认比例, 然后按钮支持滑动, 否则不支持滑动按钮.

环境要求:

  • iOS 6 +
  • Xcode 9 +

支持使用cocoapods引入:

pod 'FSActionSheet'

各种样式效果图:

Example screenshot

使用示例:

// 类UIActionSheet初始化绑定代理和设置标题
- (void)show {
	FSActionSheet *actionSheet = [[FSActionSheet alloc] initWithTitle:@"这是ActionSheet的标题" delegate:self cancelButtonTitle:@"关闭" highlightedButtonTitle:@"删除" otherButtonTitles:@[@"拍照", @"从相册选取"]];
	// show
	[actionSheet show];
}
// FSActionSheetDelegate
- (void)FSActionSheet:(FSActionSheet *)actionSheet selectedIndex:(NSInteger)selectedIndex {
    NSLog(@"选择了第[%zi]项", selectedIndex);
}

// 自己组装item设定为actionSheet的按钮
- (void)show {
	NSMutableArray *actionSheetItems = [@[FSActionSheetTitleWithImageItemMake(FSActionSheetTypeNormal, [UIImage imageNamed:@"camera"], @"拍照"),
                                   	      FSActionSheetTitleWithImageItemMake(FSActionSheetTypeNormal, [UIImage imageNamed:@"album"], @"从相册选取"),
                                      	  FSActionSheetTitleWithImageItemMake(FSActionSheetTypeHighlighted, [UIImage imageNamed:@"delete"], @"删除")]
                                    	   mutableCopy];
	FSActionSheet *actionSheet = [[FSActionSheet alloc] initWithTitle:nil cancelTitle:@"关闭" items:actionSheetItems];
	actionSheet.contentAlignment = FSContentAlignmentLeft;
	// 展示并绑定选择回调
	[actionSheet showWithSelectedCompletion:^(NSInteger selectedIndex) {
		FSActionSheetItem *item = actionSheetItems[selectedIndex];		
		_label.text = item.title;
	}];
}

LICENSE

FSActionSheet 基于 MIT 协议开源. 更多开源信息请查看 LICENSE 文件.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].