JTFadingInfoView 1.0.2

JTFadingInfoView 1.0.2

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2015年8月

Junichi 维护。




  • JunichiTsurukawa

概述

JTFadingInfoView 是一个基于 UIButton 子类的类似 Google 的 Material Design 通知视图,具有平滑的淡入淡出动画功能。

您可以任意选择淡入/淡出方向。此外,可自定义的属性可以调整行为并增强您的应用程序 UI 的酷炫效果。

使用此库,您可以轻松地将浮动应用内通知集成到您的应用程序中,例如登录成功/失败通知消息。

Screen shot

安装

JTFadingInfoView 可在 CocoaPods 上使用。

您可以通过将以下命令添加到您的 Podfile 来使用此库

pod "JTFadingInfoView"

用法

基本设置

  CGRect frame = CGRectMake(150, 200, 150, 50);
  NSString *label = @"JTFadingInfoView!";
  JTFadingInfoView *infoView = [[JTFadingInfoView alloc] initWithFrame:frame
                                                                 label:label];
  [self.view addSubview:infoView];

Screen shot

自定义行为

JTFadingInfoView 具有参数来按需自定义行为

/** A float represeting the time for displaying this view itself (second).
/** If <= 0, view will not disappear */
@property float displayDuration;
/** A float representing the time the view is appeared by (second). */
@property float appearingDuration;
/** A float representing the time the view is disappeared by (second). */
@property float disappearingDuration;
/** A float representing how much the view moves during fading in/out. */
@property float animationMovement;
/** A JTFadeInType representing from which direction the view appears */
@property JTFadeInDirectionType fadeInDirection;
/** A JTFadeInType representing to which direction the view will be disappeared */
@property JTFadeOutDirectionType fadeOutDirection;

Screen shot

变更历史

1.0.0

  • 首次发布

1.0.1

  • 错误修复

1.0.2

  • 错误修复

要求

iOS 7.0 或更高版本

作者

Junichi Tsurukawa [email protected]

许可证

JTFadingInfoView 根据 MIT 许可证提供。