测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布最后一次发布 | 2014年12月 |
由 David Lawson 维护。
依赖项 | |
Masonry | >= 0 |
JRSwizzle | >= 0 |
这是一个创建位于状态栏下方信息视图的 iOS 库,类似于内部 iOS 在线状态栏。
兼容 iOS 6/7,iPhone 和 iPad。
InformationView
提供的视图(可以子类化)将 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 许可证下使用。