Reputation: 375
In my current iOS project I have added a dynamic cell to my tableView with a label and a textField. I am using the following code to make the textField:
UITextField *inputField;
inputField = [[UITextField alloc] initWithFrame:CGRectMake(120,12,185,30)];
inputField.textAlignment = UITextAlignmentRight;
inputField.adjustsFontSizeToFitWidth = YES;
inputField.placeholder = @"your text here...";
[cell addSubview:inputField];
The results look like this:
My question is how do I style the code generated textFields to look like a regular IB textField?
Upvotes: 0
Views: 156