This repository was archived by the owner on Jun 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomIOS7AlertView.h
More file actions
49 lines (35 loc) · 1.57 KB
/
CustomIOS7AlertView.h
File metadata and controls
49 lines (35 loc) · 1.57 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// CustomIOS7AlertView.h
// CustomIOS7AlertView
//
// Created by Richard on 20/09/2013.
// Copyright (c) 2013 Wimagguc.
//
// Lincesed under The MIT License (MIT)
// http://opensource.org/licenses/MIT
//
#import <UIKit/UIKit.h>
@protocol CustomIOS7AlertViewDelegate
- (void)customIOS7dialogButtonTouchUpInside:(id)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
@end
@interface CustomIOS7AlertView : UIView<CustomIOS7AlertViewDelegate>
@property (nonatomic, retain) UIView *parentView; // The parent view this 'dialog' is attached to
@property (nonatomic, retain) UIView *dialogView; // Dialog's container view
@property (nonatomic, retain) UIView *containerView; // Container within the dialog (place your ui elements here)
@property (nonatomic, retain) UIView *buttonView; // Buttons on the bottom of the dialog
@property (nonatomic, assign) id<CustomIOS7AlertViewDelegate> delegate;
@property (nonatomic, retain) NSArray *buttonTitles;
@property (nonatomic, assign) BOOL useMotionEffects;
@property (copy) void (^onButtonTouchUpInside)(CustomIOS7AlertView *alertView, int buttonIndex) ;
- (id)init;
/*!
DEPRECATED: Use the [CustomIOS7AlertView init] method without passing a parent view.
*/
- (id)initWithParentView: (UIView *)_parentView __attribute__ ((deprecated));
- (void)show;
- (void)close;
- (IBAction)customIOS7dialogButtonTouchUpInside:(id)sender;
- (void)setOnButtonTouchUpInside:(void (^)(CustomIOS7AlertView *alertView, int buttonIndex))onButtonTouchUpInside;
- (void)deviceOrientationDidChange: (NSNotification *)notification;
- (void)dealloc;
@end