-
Notifications
You must be signed in to change notification settings - Fork 4
/
MKAlertView.h
43 lines (38 loc) · 1.25 KB
/
MKAlertView.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// MetroUIStyleAlertView.h
// Metroa
//
// Created by Glenn Forbes on 12/10/2013.
// Copyright (c) 2013 Glenn Forbes. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MKButton.h"
#import "MKTextField.h"
#import <MediaPlayer/MediaPlayer.h>
typedef enum MKAlertViewType {
MKAlertViewTypeTextEntry,
MKAlertViewTypeDialog,
} MKAlertViewType;
@class MKAlertView;
@protocol MKAlertViewDelegate
- (void)alertViewConfirmed:(MKAlertView *)alertView;
- (void)alertViewDismissed:(MKAlertView *)alertView;
- (void)alertViewConfirmed:(MKAlertView *)alertView withText:(NSString *)enteredText;
@end
@interface MKAlertView : UIView
{
NSMutableDictionary *viewsDict;
MKTextField *d;
UIButton *backgroundDim;
UIView *view;
UIWindow *mainWindow;
}
@property (strong, nonatomic) UILabel *titleLabel;
@property (strong, nonatomic) UILabel *textLabel;
@property (strong, nonatomic) MKButton *leftButton;
@property (strong, nonatomic) MKButton *rightButton;
@property (nonatomic) MKAlertViewType type;
@property (nonatomic, strong) id <MKAlertViewDelegate> delegate;
- (void)show;
- (id)initWithType:(MKAlertViewType)type title:(NSString *)title body:(NSString *)bodyText leftButton:(NSString *)leftButtonText rightButton:(NSString *)rightButtonText;
@end