信息 0.0.2

信息 0.0.2

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后一次发布2014年12月

David Lawson 维护。



 
依赖项
Masonry>= 0
JRSwizzle>= 0
 


信息 0.0.2

  • David Lawson

这是一个创建位于状态栏下方信息视图的 iOS 库,类似于内部 iOS 在线状态栏。

兼容 iOS 6/7,iPhone 和 iPad。

  • 自动出现在所有 UINavigationControllers 上
  • 支持 tap 处理器
  • 支持使用任何 UIView,InformationView 提供的视图(可以子类化)
  • 不使用私有 API

Informative Demo

安装

pod 'Informative' 添加到您的 Podfile 中。

示例代码

Informative *informative = [Informative singleton];

informative.tapInformationView = ^{
  [[[UIAlertView alloc] initWithTitle:@"Tapped Information View" message:@"Awesome!" delegate:nil cancelButtonTitle:@"Close" otherButtonTitles:nil] show];
};

informative.createInformationView = ^UIView*
{
  InformationView *notReachableView = [[InformationView alloc] init];
  notReachableView.text = @"No Internet Connection";
  return notReachableView;
};

// Inside reachability handler
[Informative singleton].showInformation = !reachable;

许可证

此库可在MIT 许可证下使用。