
Untitled
By: a guest on
Feb 14th, 2013 | syntax:
None | size: 0.43 KB | hits: 21 | expires: Never
UITextField *textField = [[UITextField alloc] init];
textField.frame = CGRectMake(38.0f, 0.0f, self.view.frame.size.width - 38.0f, 40.0f);
textField.text = @"Hello";
textField.background = [[UIImage imageNamed: @"field.png"] stretchableImageWithLeftCapWidth:12 topCapHeight:19];
textField.backgroundColor = [UIColor whiteColor];
textField.userInteractionEnabled = YES;
[bar addSubview: textField];
bar.userInteractionEnabled = TRUE;