TuSDKICAlertView Class Reference

Inherits from NSObject
Declared in TuSDKICAlertView.h

Overview

提示信息视图

+ alertShowWithController:message:

显示提示信息视图 (对话框样式)

+ (void)alertShowWithController:(nullable UIViewController *)controller message:(nullable NSString *)message

Parameters

controller

控制器

message

信息

Declared In

TuSDKICAlertView.h

+ alertShowWithController:title:message:

显示提示信息视图 (对话框样式)

+ (void)alertShowWithController:(nullable UIViewController *)controller title:(nullable NSString *)title message:(nullable NSString *)message

Parameters

controller

控制器

title

标题

message

信息

Declared In

TuSDKICAlertView.h

+ alertShowWithController:message:cancelTitle:

显示提示信息视图 (对话框样式)

+ (void)alertShowWithController:(nullable UIViewController *)controller message:(nullable NSString *)message cancelTitle:(nullable NSString *)cancelTitle

Parameters

controller

控制器

message

信息

cancelTitle

取消按钮文字

Declared In

TuSDKICAlertView.h

+ alertShowWithController:title:message:cancelTitle:

显示提示信息视图 (对话框样式)

+ (void)alertShowWithController:(nullable UIViewController *)controller title:(nullable NSString *)title message:(nullable NSString *)message cancelTitle:(nullable NSString *)cancelTitle

Parameters

controller

控制器

title

标题

message

信息

cancelTitle

取消按钮文字

Declared In

TuSDKICAlertView.h

+ alertShowConfigWithController:title:message:

显示提示信息视图 (对话框样式,大于等于IOS7时显示系统设置按钮)

+ (void)alertShowConfigWithController:(nullable UIViewController *)controller title:(nullable NSString *)title message:(nullable NSString *)message

Parameters

controller

控制器

title

标题

message

信息

Declared In

TuSDKICAlertView.h

+ alertWithController:title:message:

提示信息视图 (对话框样式)

+ (instancetype)alertWithController:(nullable UIViewController *)controller title:(nullable NSString *)title message:(nullable NSString *)message

Parameters

controller

控制器

title

标题

message

信息

Return Value

message 提示信息视图

Declared In

TuSDKICAlertView.h

+ actionSheetWithController:title:message:

提示信息视图 (下拉样式)

+ (instancetype)actionSheetWithController:(nullable UIViewController *)controller title:(nullable NSString *)title message:(nullable NSString *)message

Parameters

controller

控制器

title

标题

message

信息

Return Value

message 提示信息视图

Declared In

TuSDKICAlertView.h

– addAction:

添加提示信息动作

- (void)addAction:(TuSDKICAlertAction *)action

Parameters

action

提示信息动作

Declared In

TuSDKICAlertView.h

– show

显示提示信息视图

- (void)show

Declared In

TuSDKICAlertView.h

  actions

提示信息动作列表

@property (nonatomic, readonly) NSArray<TuSDKICAlertAction*> *actions

Declared In

TuSDKICAlertView.h

  title

标题

@property (nullable, nonatomic, copy) NSString *title

Declared In

TuSDKICAlertView.h

  message

信息

@property (nullable, nonatomic, copy) NSString *message

Declared In

TuSDKICAlertView.h

  preferredStyle

提示信息样式

@property (nonatomic, readonly) TuSDKICAlertStyle preferredStyle

Declared In

TuSDKICAlertView.h