summaryrefslogtreecommitdiff
path: root/Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockTextPromptAlertView.h
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-14 15:17:39 -0600
committermo khan <mo@mokhan.ca>2013-07-14 15:17:39 -0600
commit6ff632a1444a214ba61597ae9e1a034e5f1f6073 (patch)
treef11725593b3fcb7d266e16d76b57755cd3e39af1 /Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockTextPromptAlertView.h
parentb4051750b51ad5b9ee0574fa5ceaa71649c19e95 (diff)
add more pods
Diffstat (limited to 'Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockTextPromptAlertView.h')
-rw-r--r--Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockTextPromptAlertView.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockTextPromptAlertView.h b/Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockTextPromptAlertView.h
new file mode 100644
index 0000000..02d0eb3
--- /dev/null
+++ b/Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockTextPromptAlertView.h
@@ -0,0 +1,48 @@
+//
+// BlockTextPromptAlertView.h
+// BlockAlertsDemo
+//
+// Created by Barrett Jacobsen on 2/13/12.
+// Copyright (c) 2012 Barrett Jacobsen. All rights reserved.
+//
+
+#import "BlockAlertView.h"
+
+@class BlockTextPromptAlertView;
+
+typedef BOOL (^BlockTextPromptAlertShouldDismiss)(NSInteger buttonIndex, BlockTextPromptAlertView* theAlert);
+typedef BOOL(^TextFieldReturnCallBack)(BlockTextPromptAlertView *);
+
+@interface BlockTextPromptAlertView : BlockAlertView <UITextFieldDelegate> {
+
+ NSCharacterSet *unacceptedInput;
+ NSInteger maxLength;
+ NSInteger buttonIndexForReturn;
+}
+
+@property (nonatomic, retain) UITextField *textField;
+
+@property (nonatomic, assign) BOOL disableAutoBecomeFirstResponder;
+@property (nonatomic, assign) BOOL selectAllOnBeginEdit;
+
++ (BlockTextPromptAlertView *)promptWithTitle:(NSString *)title message:(NSString *)message defaultText:(NSString*)defaultText;
++ (BlockTextPromptAlertView *)promptWithTitle:(NSString *)title message:(NSString *)message defaultText:(NSString*)defaultText block:(TextFieldReturnCallBack) block;
+
++ (BlockTextPromptAlertView *)promptWithTitle:(NSString *)title message:(NSString *)message textField:(out UITextField**)textField;
+
++ (BlockTextPromptAlertView *)promptWithTitle:(NSString *)title message:(NSString *)message textField:(out UITextField**)textField block:(TextFieldReturnCallBack) block;
+
+- (id)initWithTitle:(NSString *)title message:(NSString *)message defaultText:(NSString*)defaultText;
+
+- (id)initWithTitle:(NSString *)title message:(NSString *)message defaultText:(NSString*)defaultText block: (TextFieldReturnCallBack) block;
+
+@property (readwrite, copy) BlockTextPromptAlertShouldDismiss shouldDismiss;
+
+- (void)setAllowableCharacters:(NSString*)accepted;
+- (void)setUnacceptedInput:(NSCharacterSet*)charSet;
+- (void)setMaxLength:(NSInteger)max;
+
+- (void)setButtonIndexForReturn:(NSInteger)index;
+
+
+@end