-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5512569
Showing
6 changed files
with
821 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// | ||
// InformationDialogViewController.h | ||
// Snapp | ||
// | ||
// Created by Apple on 10/30/16. | ||
// Copyright © 2016 Snapp. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
typedef NS_ENUM(NSUInteger, SNPDialogStyle) { | ||
SNPDialogStyleInformation, | ||
SNPDialogStyleError, | ||
SNPDialogStyleDecision, | ||
}; | ||
|
||
typedef NS_ENUM(NSUInteger, SNPDialogButtonArrangement) { | ||
SNPDialogButtonArrangementVertical, | ||
SNPDialogButtonArrangementHorizontal, | ||
}; | ||
|
||
|
||
|
||
@interface SNPDialog : UIViewController <UIPickerViewDelegate,UIPickerViewDataSource> | ||
|
||
@property (nonatomic,assign) BOOL loadingMode; | ||
@property (nonatomic,assign) BOOL shouldCloseOnOutsideTouch; | ||
|
||
@property (nonatomic,retain) UITextField* textField; | ||
@property (nonatomic,retain) NSMutableArray* buttons; | ||
|
||
@property (nonatomic,assign) SNPDialogStyle style; | ||
@property (nonatomic,assign) SNPDialogButtonArrangement buttonArrangement; | ||
|
||
@property (nonatomic,retain) UIViewController* presentorViewController; | ||
|
||
|
||
-(instancetype) initWithImage:(NSString *)imageText andTitle:(NSString *)title andMessage:(NSString *)message andStyle:(SNPDialogStyle)style andButtonArrangement:(SNPDialogButtonArrangement)arrangement; | ||
|
||
|
||
-(void) addButtonWithTitle:(NSString*)title andCallback:(void (^)(void) )callback; | ||
|
||
|
||
-(void) setupTextInputMode; | ||
-(void) setupOptionsModeWithOptions:(NSArray<NSString *>*)options; | ||
|
||
-(NSInteger) getOptionsSelectedIndex; | ||
|
||
|
||
// if we set presentorViewController, the dialog will present through it , other wise the dialog will add to UIWindow | ||
-(void) show; | ||
-(void) dismiss; | ||
|
||
@end |
Oops, something went wrong.