12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // MessageAlert.h
- // XFilesPro
- //
- // Created by 青秀斌 on 14-8-15.
- // Copyright (c) 2014年 深圳元度科技有限公司. All rights reserved.
- //
- #import "BSAlertView.h"
- @class MessageAlert;
- typedef MessageAlert * (^AlertBlockF)(NSString *format,...);
- typedef MessageAlert * (^AlertBlockT)(NSString *placeholder, NSString *text);
- typedef MessageAlert * (^AlertBlockB)(NSString *title, void (^action)(MessageAlert *));
- typedef MessageAlert * (^AlertBlockA)(AlertAnimation animation);
- typedef MessageAlert * (^AlertBlockH)(NSString *placeholder, NSString *text, NSString *unit);
- typedef MessageAlert * (^AlertBlockG)(NSString *placeholder, NSString *text);
- @interface MessageAlert : BSAlertView
- @property (nonatomic, readonly) UILabel *titleLabel;
- @property (nonatomic, readonly) UILabel *messageLabel;
- @property (nonatomic, readonly) AlertBlockF setTitle;
- @property (nonatomic, readonly) AlertBlockF setMessage;
- @property (nonatomic, readonly) AlertBlockT addTextField;
- @property (nonatomic, readonly) AlertBlockH addTextFieldTwo;
- @property (nonatomic, readonly) AlertBlockB addRedButton;
- @property (nonatomic, readonly) AlertBlockB addBlueButton;
- @property (nonatomic, readonly) AlertBlockA showAlert;
- @property (nonatomic, readonly) AlertBlockA dismissAlert;
- + (instancetype)alert;
- - (UITextField *)textFieldAtIndex:(NSUInteger)index;
- - (UIButton *)buttonAtIndex:(NSUInteger)index;
- @end
|