All Projects → kukumaluCN → Jxtalertmanager

kukumaluCN / Jxtalertmanager

Licence: mit
UIAlertView/UIAlertController便捷调用工具

Labels

Projects that are alternatives of or similar to Jxtalertmanager

Hhfloatingview
An easy to use and setup floating view for your app. 🎡
Stars: ✭ 93 (-47.46%)
Mutual labels:  ios-ui
Skcalendarview
SKCalendarView是一个高可控性的日历基础组件,为了提高应用的自由度,默认只提供了日历部分的视图封装,但不涵盖切换月份按钮、年月分显示等非关键性控件,但请不要担心,SKCalendarView为你提供了多样性的API,你可以很轻松的拿到这些信息去展示在你自己的自定义控件中。不仅如此,SKCalendarView还为你封装了公历、农历、节假日以及中国24节气的核心算法,即使你觉得默认的视图并不合胃口,也可以直接快速的利用这套算法创造出一个全新的日历控件。最后,SKCalendarView还提供了一些简单的切换动画,如果你不喜欢它,可以忽略掉,用自己的,这里完全不会受到任何限制。
Stars: ✭ 121 (-31.64%)
Mutual labels:  ios-ui
Jsqmessagesviewcontroller
An elegant messages UI library for iOS
Stars: ✭ 11,240 (+6250.28%)
Mutual labels:  ios-ui
Swiftcocoadsl
An easy way to write iOS UI
Stars: ✭ 103 (-41.81%)
Mutual labels:  ios-ui
Hwpopcontroller
pop up your ViewController with custom size, position and animations
Stars: ✭ 113 (-36.16%)
Mutual labels:  ios-ui
Pinlayout
Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]
Stars: ✭ 1,870 (+956.5%)
Mutual labels:  ios-ui
Uxtooltime Axure
The best Axure Widget Libraries.
Stars: ✭ 81 (-54.24%)
Mutual labels:  ios-ui
Wobbly
(Animate CSS) animations for iOS. An easy to use library of iOS animations. As easy to use as an easy thing.
Stars: ✭ 150 (-15.25%)
Mutual labels:  ios-ui
Skeletonview
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Stars: ✭ 10,804 (+6003.95%)
Mutual labels:  ios-ui
Eureka
Elegant iOS form builder in Swift
Stars: ✭ 11,345 (+6309.6%)
Mutual labels:  ios-ui
Boden
Purely native C++ cross-platform GUI framework for Android and iOS development. https://www.boden.io
Stars: ✭ 1,394 (+687.57%)
Mutual labels:  ios-ui
Nvactivityindicatorview
A collection of awesome loading animations
Stars: ✭ 10,031 (+5567.23%)
Mutual labels:  ios-ui
Poliopager
A flexible TabBarController with search tab like SNKRS.
Stars: ✭ 133 (-24.86%)
Mutual labels:  ios-ui
Flexlayout
FlexLayout adds a nice Swift interface to the highly optimized facebook/yoga flexbox implementation. Concise, intuitive & chainable syntax.
Stars: ✭ 1,342 (+658.19%)
Mutual labels:  ios-ui
Swiftui Tutorials
A code example and translation project of SwiftUI. / 一个 SwiftUI 的示例、翻译的教程项目。
Stars: ✭ 1,992 (+1025.42%)
Mutual labels:  ios-ui
Slidingtabbar
A custom TabBar view with sliding animation written in Swift.
Stars: ✭ 84 (-52.54%)
Mutual labels:  ios-ui
Bpstatusbaralert
BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar.
Stars: ✭ 129 (-27.12%)
Mutual labels:  ios-ui
Lovefreshpeakapp oc
IOS电商购物APP: 爱鲜蜂OC版,规范的代码风格,使用Masonry布局适配所有ios机型 Shopping e-commerce projects, using automatic layout, suitable for any Ios model Website ;
Stars: ✭ 152 (-14.12%)
Mutual labels:  ios-ui
Tangerine
Swift µframework for fetching images 🍊
Stars: ✭ 149 (-15.82%)
Mutual labels:  ios-ui
Calendarkit
📅 Calendar for Apple platforms in Swift
Stars: ✭ 2,049 (+1057.63%)
Mutual labels:  ios-ui

JXTAlertManager

CocoaPods compatible  Support  License: MIT

更新说明:
CocoaPods支持:

  1. 在 Podfile 中添加 pod 'JXTAlertManager'。
  2. 执行 pod install 或 pod update。
  3. 导入 <JXTAlertManager/JXTAlertManagerHeader.h>。

如果只需要JXTAlertController,见JXTAlertController

UIAlertView/UIAlertController便捷调用工具
基于系统UIAlertView/UIAlertController封装,简化使用
详细用法参考Demo
JXTAlertManager

JXTAlertView

1.快速调试工具

jxt_showAlertTitle(@"简易调试使用alert,单按钮,标题默认为“确定”");

2.两个按钮

[JXTAlertView showAlertViewWithTitle:@"title" message:@"message" cancelButtonTitle:@"cancel" otherButtonTitle:@"other" cancelButtonBlock:^(NSInteger buttonIndex) {
	NSLog(@"cancel");
} otherButtonBlock:^(NSInteger buttonIndex) {
	NSLog(@"other");
}];

3.不定数量按钮

[JXTAlertView showAlertViewWithTitle:@"title"
                             message:@"message"
                   cancelButtonTitle:@"cancel"
                    buttonIndexBlock:^(NSInteger buttonIndex) {
    if (buttonIndex == 0) {
        NSLog(@"cancel");
    }
    else if (buttonIndex == 1) {
        NSLog(@"按钮1");
    }
    else if (buttonIndex == 2) {
        NSLog(@"按钮2");
    }
    else if (buttonIndex == 3) {
        NSLog(@"按钮3");
    }
    else if (buttonIndex == 4) {
        NSLog(@"按钮4");
    }
    else if (buttonIndex == 5) {
        NSLog(@"按钮5");
    }
} otherButtonTitles:@"按钮1", @"按钮2", @"按钮3", @"按钮4", @"按钮5", nil];

4.HUD

jxt_showLoadingHUDTitleMessage(@"indicatorView-HUD", @"message");  
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
	jxt_dismissHUD();
});

JXTAlertController(iOS8)

1.alert

[self jxt_showAlertWithTitle:@"title"
                     message:@"message"
           appearanceProcess:^(JXTAlertController * _Nonnull alertMaker) {
    alertMaker.
    addActionCancelTitle(@"cancel").
    addActionDestructiveTitle(@"按钮1");
} actionsBlock:^(NSInteger buttonIndex, UIAlertAction * _Nonnull action, JXTAlertController * _Nonnull alertSelf) {
    if (buttonIndex == 0) {
        NSLog(@"cancel");
    }
    else if (buttonIndex == 1) {
        NSLog(@"按钮1");
    }
}];

2.添加textField

[self jxt_showAlertWithTitle:@"title"
                     message:@"message"
           appearanceProcess:^(JXTAlertController * _Nonnull alertMaker) {
    alertMaker.
    addActionDestructiveTitle(@"获取输入框1").
    addActionDestructiveTitle(@"获取输入框2");
    
    [alertMaker addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {
        textField.placeholder = @"输入框1-请输入";
    }];
    [alertMaker addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {
        textField.placeholder = @"输入框2-请输入";
    }];
} actionsBlock:^(NSInteger buttonIndex, UIAlertAction * _Nonnull action, JXTAlertController * _Nonnull alertSelf) {
    if (buttonIndex == 0) {
        UITextField *textField = alertSelf.textFields.firstObject;
        [self logMsg:textField.text];//不用担心循环引用
    }
    else if (buttonIndex == 1) {
        UITextField *textField = alertSelf.textFields.lastObject;
        [self logMsg:textField.text];
    }
}];
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].