HXGearDemoAlert 2.0.0

HXGearDemoAlert 2.0.0

huangxuan518 维护。



  • 作者
  • 黄玄

HXGearDemoAlert

一个项目状态悬浮提示窗,可以用于多项目,Pod集成。根据项目的追踪码识别项目,并显示当前项目的服务器状态

使用环境

iOS 8+

Xcode 8+

安装

  • CocoaPods

CocoaPods 是 Objective-C 的依赖管理器,它自动化并简化了在项目中使用第三方库的过程。有关详细信息,请参阅“入门”指南。

platform :ios, '8.0'

pod 'HXGearDemoAlert'

  • 手动安装

手动将 Classes 文件夹拖入项目中,导入头文件:#import "HXGearDemoAlert.h"

示例

  • Objective-C

1.导入头文件 HXGearDemoAlert.h

2.使用 [[HXGearDemoAlert shareInstance] startWithTrackCode:@"X9BGgi"]; 开始注册

3.需要刷新状态的页面 [[HXGearDemoAlert shareInstance] refreshStatus];

(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

[[HXGearDemoAlert shareInstance] startWithTrackCode:@"X9BGgi"];

self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

[self.window addSubview:[self genView]];

[self.window makeKeyAndVisible];

return YES;

}

联系我

wechat: huangxuan518