I created UITextField programmatically all is working good but my UITextField is not editing, i.e when I try to tap on UITextField its not working here my sample code,
CGRect frame = CGRectMake(16, 281, 288, 47);
cycle = [[UITextField alloc] initWithFrame:frame];
cycle.placeholder = @"Cycle Number";
cycle.textColor = [UIColor blackColor];
cycle.font = [UIFont systemFontOfSize:17.0];
cycle.borderStyle = UITextBorderStyleLine;
cycle.autocorrectionType = UITextAutocorrectionTypeYes;
cycle.keyboardType = UIKeyboardTypeDefault;
cycle.clearButtonMode = UITextFieldViewModeWhileEditing;
cycle.delegate = self;
cycle.text = @"";
[self.view addSubview:cycle];
0 comments:
Post a Comment