FreeRDP
Loading...
Searching...
No Matches
EditSecretTextTableViewCell.m
1/*
2 Custom table cell with secret edit text field
3
4 Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
5
6 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
7 If a copy of the MPL was not distributed with this file, You can obtain one at
8 http://mozilla.org/MPL/2.0/.
9 */
10
11#import "EditSecretTextTableViewCell.h"
12
13@implementation EditSecretTextTableViewCell
14
15- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
16{
17 self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
18 if (self)
19 {
20 // Initialization code
21
22 // just set 'password' field
23 [_textfield setSecureTextEntry:YES];
24 }
25 return self;
26}
27
28- (void)prepareForReuse
29{
30 [super prepareForReuse];
31 [_textfield setSecureTextEntry:YES];
32}
33
34@end