-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFSAlertView.h
More file actions
30 lines (25 loc) · 1.14 KB
/
FSAlertView.h
File metadata and controls
30 lines (25 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// FSAlertView.h
// FSAlertView https://github.com/Ericfengshi/FSAlertView
//
// Created by fengs on 14-11-28.
// Copyright (c) 2014年 fengs. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol FSAlertViewDelegate <NSObject>
@optional
- (void)fsAlertView:(UIView*)fsAlertView clickedButtonAtIndex:(NSInteger)buttonIndex;
@end
@interface FSAlertView : UIView<UITableViewDataSource,UITableViewDelegate,UIGestureRecognizerDelegate>
@property(nonatomic,assign) id delegate;
@property (nonatomic,retain) UIWindow *window;
@property (nonatomic,retain) UIView *shadowView;
@property (nonatomic,retain) UILabel *titleLabel;
@property (nonatomic,retain) UILabel *messageLabel;
@property (nonatomic,retain) UITableView *btnTableView;
@property (nonatomic,retain) NSMutableArray *btnList;
@property (nonatomic,retain) NSString *cancelButtonTitle;
@property (nonatomic,assign) BOOL hasTwoBtns;
- (id)initWithTitle:(NSString*)title message:(NSString*)message delegate:(id /*<FSAlertViewDelegate>*/)delegate cancelButtonTitle:(NSString*)cancelButtonTitle otherButtonTitles:(NSString*)otherButtonTitles, ... NS_REQUIRES_NIL_TERMINATION;
- (void)showInView;
@end