Quote:
Originally Posted by Domele
Post how/where you are creating the textfield and how/where you are hiding it.
|
The UITextField is created in IB and is set to hidden. It is then connected to
.h
UIPickerView *pickerView;
IBOutlet UILabel *healthType;
IBOutlet UITextField *projectName;
IBOutlet UIImageView *projectNameMask;
IBOutlet UILabel *projectNameLabel;
IBOutlet UITextView *instructions;
IBOutlet NSString *alertString;
}
@property (retain, nonatomic) UIPickerView *pickerView;
@property (nonatomic, retain) UILabel *healthType;
@property (retain, nonatomic) UITextField *projectName;
@property (retain, nonatomic) UIImageView *projectNameMask;
@property (retain, nonatomic) UITextView *instructions;
@property (retain, nonatomic) UILabel *projectNameLabel;
@property (retain, nonatomic) NSString *alertString;
.m
@synthesize pickerView;
@synthesize healthType;
@synthesize projectName;
@synthesize projectNameMask;
@synthesize instructions;
@synthesize projectNameLabel;
@synthesize alertString;
// SHOW HIDDEN TEXTFIELD AND CREATE PROJECT
-(IBAction) createProject: (id) sender {
// Show field for entry of Project Name
[pickerView removeFromSuperview];
projectNameMask.hidden =NO;
projectNameLabel.hidden =NO;
projectName.hidden =NO;
instructions.hidden =YES;
}