1) Documentation > "UITextField" > UITextField Class Reference:
Quote:
Conforms to
NSCoding
UITextInputTraits
NSCoding (UIView)
NSObject (NSObject)
|
"UITextInputTraits" > UITextInputTraits Protocol Reference:
Quote:
secureTextEntry
Identifies whether the text object should hide the text being entered.
@property(nonatomic, getter=isSecureTextEntry) BOOL secureTextEntry
Discussion
This property is set to NO by default. Setting this property to YES creates a password-style text object, which hides the text being entered.
Availability
Available in iPhone OS 2.0 and later.
Related Sample Code
GenericKeychain
UICatalog
Declared In
UITextInputTraits.h
|
2)
Code:
myImageView.userInteractionEnabled = YES;
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(<#CGFloat x#>, <#CGFloat y#>, <#CGFloat width#>, <#CGFloat height#>)];
[button setImage:[UIImage imageNamed:@"TheImage.png"] forState:UIControlStateNormal];