FTProgressIndicator 1.2.9

FTProgressIndicator 1.2.9

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2018年5月

liufengting 维护。



FTIndicator

FTIndicator

Twitter GitHub license Version Platform Download CocoaPods CocoaPods CI Status GitHub stars

一个轻量级的 UI 包,包含本地通知、进度 HUD、吐司,具有模糊效果优雅的 API和 iOS 的主题支持,灵感来自苹果的处理 HUD、通知和安卓的吐司。

3 IN 1

  • 如果您想使用所有三个指示器,请使用 FTIndicator
  • 此外,FTNotificationIndicatorFTProgressIndicatorFTToastIndicator还可以单独使用。您愿意使用它们中的哪个都可以。

FTIndicator

FTNotificationIndicator FTProgressIndicator FTToastIndicator


屏幕截图

纵向

风格 浅色 深色
通知
进度
吐司

横幅

风格 浅色 深色
通知
进度
吐司

安装

手动安装

  • 克隆此仓库。
  • 简单地将'/FTIndicator'文件夹放入您的项目中。
  • 导入 'FTIndicator.h'

CocoaPods

FTIndicator可在CocoaPods中获取。安装它时,只需将其以下行添加到您的Podfile中

⚠️注意:

语法错误修复在1.2.2中:语法错误已修复。可能会影响您的项目,请谨慎更新。

⚠️注意:

1.2.0中的主要修复:应用启动时进度HUD不显示

在v1.1.5之后,FTNotificationIndicatorFTProgressIndicatorFTToastIndicator的Podfile停止更新。如果您想单独使用其中任何一个,请在Podfile中像这样使用它们作为子Pod

    pod 'FTIndicator/FTNotificationIndicator'
    pod 'FTIndicator/FTProgressIndicator'
    pod 'FTIndicator/FTToastIndicator'

使用FTIndicator,全部三者

  • FTIndicator,三合一
pod 'FTIndicator'

单独使用

  • FTNotificationIndicator

pod 'FTNotificationIndicator' 现已不可用,请使用以下选项

# use as a subPod

pod 'FTIndicator/FTNotificationIndicator'
  • FTProgressIndicator

pod "FTProgressIndicator" 现已不可用,请使用以下选项

# use as a subPod

pod 'FTIndicator/FTProgressIndicator'
  • FTToastIndicator

pod 'FTToastIndicator' 现已不可用,请使用以下选项

# use as a subPod

pod 'FTIndicator/FTToastIndicator'

使用方法

使用 FTIndicator

通知

  • 显示不带图片的通知
[FTIndicator showNotificationWithTitle:@"Here is a notification title."
								message:@"Here is a notification message."]; 
  • 显示带图片的通知
[FTIndicator showNotificationWithImage:[UIImage imageNamed:@"maps_icon"]
								   title:@"Here is a notification title."
                               message:@"Here is a notification message."]; 
  • 显示带图片的通知,带有点击处理程序和完成处理程序
[FTIndicator showNotificationWithImage:[UIImage imageNamed:@"maps_icon"]
                                 title:@"Here is a notification title."
                               message:@"Here is a notification message. Try to tap and see tap handling or do nothing to see completion"
                            tapHandler:^{
							// handle user tap
                            } completion:^{
							// handle completion
                            }];
  • 手动取消
[FTIndicator dismissNotification];

进度条

  • 显示进度条
[FTIndicator showProgressWithMessage:@"Here is a progress message."];  
// or disable user interactions

[FTIndicator showProgressWithMessage:@"Here is a progress message." userInteractionEnable:NO]; 
  • 显示成功
[FTIndicator showSuccessWithMessage:@"Here is a success message."]; 
// or disable user interactions

[FTIndicator showSuccessWithMessage:@"Here is a success message." userInteractionEnable:NO]; 
  • 显示信息
[FTIndicator showInfoWithMessage:@"Here is a info message."]; 
// or disable user interactions

[FTIndicator showInfoWithMessage:@"Here is a info message." userInteractionEnable:NO]; 
  • 显示错误
[FTIndicator showErrorWithMessage:@"Here is a error message."];
// or disable user interactions

[FTIndicator showErrorWithMessage:@"Here is a error message." userInteractionEnable:NO];
  • 手动取消
[FTIndicator dismissProgress];

吐司提示

  • 显示带图片的通知
[FTIndicator showToastMessage:@"Short Toast."];  
  • 手动取消
[FTIndicator dismissToast];

单独使用 FTNotificationIndicator, FTProgressIndicator, FTToastIndicator

FTNotificationIndicator

  • 显示带图片的通知
[FTNotificationIndicator showNotificationWithImage:[UIImage imageNamed:@"maps_icon"]
                                             title:@"Here is a notification title."
                                           message:@"Here is a notification message."]; 
  • 显示不带图片的通知
[FTNotificationIndicator showNotificationWithTitle:@"Here is a notification title."
										     message:@"Here is a notification message."]; 
  • 手动取消
[FTNotificationIndicator dismiss];

FTProgressIndicator

  • 显示进度条
[FTProgressIndicator showProgressWithmessage:@"Here is a progress message."]; 
// or disable user interactions
[FTProgressIndicator showProgressWithmessage:@"Here is a progress message." userInteractionEnable:NO]; 
  • 显示成功
[FTProgressIndicator showSuccessWithMessage:@"Here is a success message."]; 
// or disable user interactions
[FTProgressIndicator showSuccessWithMessage:@"Here is a success message." userInteractionEnable:NO]; 
  • 显示信息
[FTProgressIndicator showInfoWithMessage:@"Here is a info message."]; 
// or disable user interactions
[FTProgressIndicator showInfoWithMessage:@"Here is a info message." userInteractionEnable:NO]; 
  • 显示错误
[FTProgressIndicator showErrorWithMessage:@"Here is a error message."];
// or disable user interactions
[FTProgressIndicator showErrorWithMessage:@"Here is a error message." userInteractionEnable:NO];
  • 手动取消
[FTProgressIndicator dismiss];

FTToastIndicator

  • 显示带图片的通知
[FTToastIndicator showToastMessage:@"Short Toast."];  
  • 手动取消
[FTToastIndicator dismiss];

CHANGELOG

变更日志

许可协议

库代码 根据 MIT 许可协议提供。更多详情请参阅 LICENSE 文件。