2014-01-06 17:55:14 -08:00
|
|
|
//
|
|
|
|
// OSKUsernamePasswordCell.h
|
|
|
|
// Overshare
|
|
|
|
//
|
|
|
|
// Created by Jared Sinclair on 10/19/13.
|
|
|
|
// Copyright (c) 2013 Overshare Kit. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
@import UIKit;
|
|
|
|
|
|
|
|
extern NSString * const OSKUsernamePasswordCellIdentifier;
|
|
|
|
extern CGFloat const OSKUsernamePasswordCellHeight;
|
|
|
|
|
|
|
|
@class OSKUsernamePasswordCell;
|
|
|
|
|
|
|
|
@protocol OSKUsernamePasswordCellDelegate <NSObject>
|
|
|
|
|
|
|
|
- (void)usernamePasswordCell:(OSKUsernamePasswordCell *)cell didChangeText:(NSString *)text;
|
2014-02-27 16:54:25 -08:00
|
|
|
- (void)usernamePasswordCellDidTapReturn:(OSKUsernamePasswordCell *)cell;
|
2014-01-06 17:55:14 -08:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface OSKUsernamePasswordCell : UITableViewCell
|
|
|
|
|
|
|
|
@property (weak, nonatomic, readwrite) id <OSKUsernamePasswordCellDelegate> delegate;
|
|
|
|
@property (strong, nonatomic, readonly) UITextField *textField;
|
|
|
|
@property (strong, nonatomic, readonly) UITextField *textFieldForFakingPlaceholderText;
|
|
|
|
|
|
|
|
- (void)setText:(NSString *)text;
|
|
|
|
- (void)setPlaceholder:(NSString *)placeholder;
|
|
|
|
- (void)setUseSecureInput:(BOOL)useSecureInput;
|
2014-02-27 16:54:25 -08:00
|
|
|
- (void)setKeyboardType:(UIKeyboardType)keyboardType;
|
2014-01-06 17:55:14 -08:00
|
|
|
|
|
|
|
@end
|
2014-02-27 16:54:25 -08:00
|
|
|
|
|
|
|
|
|
|
|
|