Permalink
Browse files

clang

  • Loading branch information...
1 parent d09d7c1 commit 591e14c91428694541d7effa39224751d495f0d6 @ptshih committed Mar 30, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 PSAlertView.m
View
@@ -48,13 +48,13 @@ - (void)dealloc {
@end
// UITextField
-@interface UITextField (PSAlertView)
+@interface PSAlertViewTextField : UITextField
- (CGRect)rectWithInset:(CGSize)inset;
@end
-@implementation UITextField (PSAlertView)
+@implementation PSAlertViewTextField
- (CGRect)rectWithInset:(CGSize)inset {
CGRect clearViewRect = [self clearButtonRectForBounds:self.bounds];
@@ -115,7 +115,7 @@ - (NSInteger)addButtonWithTitle:(NSString *)title;
@property (nonatomic, retain) UIImageView *backgroundView;
@property (nonatomic, retain) UILabel *titleLabel;
@property (nonatomic, retain) UILabel *messageLabel;
-@property (nonatomic, retain) UITextField *textField;
+@property (nonatomic, retain) PSAlertViewTextField *textField;
@property (nonatomic, retain) NSMutableArray *buttons;
@end
@@ -192,7 +192,7 @@ - (id)initWithTitle:(NSString *)title message:(NSString *)message buttonTitles:(
// Optional Text Field
if (textFieldPlaceholder) {
- self.textField = [[[UITextField alloc] initWithFrame:CGRectZero] autorelease];
+ self.textField = [[[PSAlertViewTextField alloc] initWithFrame:CGRectZero] autorelease];
self.textField.background = [[UIImage imageNamed:@"PSAlertView.bundle/TextFieldBackground.png"] stretchableImageWithLeftCapWidth:1 topCapHeight:0];
self.textField.placeholder = textFieldPlaceholder;
self.textField.autocorrectionType = UITextAutocorrectionTypeNo;

0 comments on commit 591e14c

Please sign in to comment.