All Projects → yulingtianxia → Tbactionsheet

yulingtianxia / Tbactionsheet

Licence: mit
A Custom&Powerful Action Sheet For iOS. 一个 ActionSheet 满足所有样式!超高自由度的可定制!

Projects that are alternatives of or similar to Tbactionsheet

Lcactionsheet
一款简约而不失强大的 ActionSheet,微博、微信和 QQ 都采用了极其类似的样式,完全支持 Swift。
Stars: ✭ 809 (-14.12%)
Mutual labels:  qq, cocoapods, wechat, actionsheet
Sheeeeeeeeet
Sheeeeeeeeet is a Swift library for creating menus, custom action sheets, context menus etc.
Stars: ✭ 1,177 (+24.95%)
Mutual labels:  cocoapods, carthage, actionsheet
Xlpagertabstrip
Android PagerTabStrip for iOS.
Stars: ✭ 6,671 (+608.17%)
Mutual labels:  cocoapods, carthage, ios-ui
Eureka
Elegant iOS form builder in Swift
Stars: ✭ 11,345 (+1104.35%)
Mutual labels:  cocoapods, carthage, ios-ui
Lgalertview
Customizable implementation of UIAlertViewController, UIAlertView and UIActionSheet. All in one. You can customize every detail. Make AlertView of your dream! :)
Stars: ✭ 1,027 (+9.02%)
Mutual labels:  cocoapods, carthage, actionsheet
Popmenu
A fully customizable popup style menu for iOS 😎
Stars: ✭ 1,155 (+22.61%)
Mutual labels:  cocoapods, carthage, actionsheet
Poliopager
A flexible TabBarController with search tab like SNKRS.
Stars: ✭ 133 (-85.88%)
Mutual labels:  cocoapods, carthage, ios-ui
Wechatkit
一款快速实现微信第三方登录的框架(Swift版) SDK 1.8.5
Stars: ✭ 249 (-73.57%)
Mutual labels:  cocoapods, carthage, wechat
Cascadingtabledelegate
A no-nonsense way to write cleaner UITableViewDelegate and UITableViewDataSource in Swift.
Stars: ✭ 931 (-1.17%)
Mutual labels:  cocoapods, carthage, ios-ui
Alertift
Swifty, modern UIAlertController wrapper.
Stars: ✭ 242 (-74.31%)
Mutual labels:  cocoapods, carthage, actionsheet
Nvactivityindicatorview
A collection of awesome loading animations
Stars: ✭ 10,031 (+964.86%)
Mutual labels:  cocoapods, carthage, ios-ui
Ioniconskit
Use Ionicons in your Swift projects.
Stars: ✭ 310 (-67.09%)
Mutual labels:  cocoapods, carthage, ios-ui
Swiftpagemenu
Customizable Page Tab Menu Controller 👍
Stars: ✭ 233 (-75.27%)
Mutual labels:  cocoapods, carthage, ios-ui
Xlactioncontroller
Fully customizable and extensible action sheet controller written in Swift
Stars: ✭ 3,228 (+242.68%)
Mutual labels:  cocoapods, carthage, ios-ui
Swiftoverlays
SwiftOverlays is a Swift GUI library for displaying various popups and notifications
Stars: ✭ 621 (-34.08%)
Mutual labels:  cocoapods, carthage, ios-ui
Defaults
Swifty and modern UserDefaults
Stars: ✭ 734 (-22.08%)
Mutual labels:  cocoapods, carthage
Zephyr
Effortlessly synchronize UserDefaults over iCloud.
Stars: ✭ 722 (-23.35%)
Mutual labels:  cocoapods, carthage
Blockhook
Hook Objective-C blocks. A powerful AOP tool.
Stars: ✭ 742 (-21.23%)
Mutual labels:  cocoapods, carthage
Gradients
🌔 A curated collection of splendid 180+ gradients made in swift
Stars: ✭ 719 (-23.67%)
Mutual labels:  cocoapods, carthage
Nightnight
Elegant way to integrate night mode to swift projects
Stars: ✭ 771 (-18.15%)
Mutual labels:  cocoapods, carthage

TBActionSheet

CI Status Version Carthage compatible License Platform CocoaPods CocoaPods Twitter Follow

TBActionSheet

TBActionSheet is a small library that allows you to substitute Apple's uncustomizable UIActionSheet, with a beautiful and totally customizable actionsheet that you can use in your iOS app. The default style is iOS9/10, you can make your own style. Enjoy!

Here are some pictures showing TBActionSheet's powerful individuation. You can change UI dynamically:

BTW, TBActionSheet also supports CUSTOM ANIMATION!

🌟 Feature

  • [x] Title
  • [x] Description message
  • [x] Insert a custom view at anywhere
  • [x] Custom animation.
  • [x] Customizations: fonts, colors, dimensions, corners & more
  • [x] Closure when a button or background is pressed
  • [x] Similar implementation to UIActionSheet
  • [x] Add button using block syntax
  • [x] Scroll the whole action sheet.
  • [x] Blur Effect under iOS7
  • [x] Autorotation under iOS8
  • [x] CocoaPods
  • [x] Carthage

📚 Article

🔮 Example

To run the example project, clone the repo and run MTDemo target.

💰 Requirement

  • iOS 7.0+ (iOS 8.0+ full features supported)
  • Xcode 10.1+

📲 Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate TBActionSheet into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target 'MyApp' do
	pod 'TBActionSheet'
end

You need replace "MyApp" with your project's name.

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate TBActionSheet into your Xcode project using Carthage, specify it in your Cartfile:

github "yulingtianxia/TBActionSheet"

Run carthage update to build the framework and drag the built TBActionSheetKit.framework into your Xcode project.

Manual

Just drag the "Source" document folder into your project.

🐒 Usage

TLDR

You can refer to 'ViewController.m' in the TBAlertControllerDemo project.The base usage is same as 'UIActionSheet'.

To let TBActionSheet looks like WeChat style, you can set these properties of TBActionShet or it's UIAppearance like this :

sheetWidth = MIN(kScreenWidth, kScreenHeight);
backgroundTransparentEnabled = NO;
rectCornerRadius = 0;

More than what you want

The base usage is same to UIActionSheet. You can just replace UIActionSheet with TBActionSheet. If you want to customize your action sheet, just configure some properties.

GitHub wiki can help you master advanced usage.

There is also an example project for TBActionSheet.

TBAlertController

This repo also include TBAlertController, which unifies UIAlertController, UIAlertView, and UIActionSheet. TBAlertController will use UIAlertController on iOS 8.2 and later. On the contrary, it will use UIAlertView or UIActionSheet.

The API Usage of TBAlertController is similar to UIAlertController. I also provide TBAlertAction instead of UIAlertAction.

There is an example:

TBAlertController *controller = [TBAlertController alertControllerWithTitle:@"TBAlertController" message:@"AlertStyle" preferredStyle:TBAlertControllerStyleAlert];
TBAlertAction *clickme = [TBAlertAction actionWithTitle:@"点我" style: TBAlertActionStyleDefault handler:^(TBAlertAction * _Nonnull action) {
    NSLog(@"%@",action.title);
}];
TBAlertAction *cancel = [TBAlertAction actionWithTitle:@"取消" style: TBAlertActionStyleCancel handler:^(TBAlertAction * _Nonnull action) {
    NSLog(@"%@",action.title);
}];
[controller addAction:clickme];
[controller addAction:cancel];
[self presentViewController:controller animated:YES completion:nil];

For more infomation about TBAlertController, please visit this post of my blog.

❤️ Contributed

  • If you need help or you'd like to ask a general question, open an issue.
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

👨🏻‍💻 Author

yulingtianxia, [email protected]

👮🏻 License

TBActionSheet is available under the MIT license. See the LICENSE file for more info.

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].