我在5号SOS中存在文本现场曲线问题,4号SOS公司正在做罚款。
The bottom text field is iOS 4 and top one is iOS 5. The starting space in the front is missing in iOS 5.
Can any one please help how can I fix this? The code is as follows:
- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier
{
if (self = [super initWithStyle:UITableViewStyleGrouped reuseIdentifier:reuseIdentifier])
{
// Set the frame to CGRectZero as it will be reset in layoutSubviews
textField = [[UITextField alloc] initWithFrame:CGRectZero];
textField.delegate=self;
textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
textField.returnKeyType =UIReturnKeyDone;
textField.textColor = [UIColor darkGrayColor];
[textField setClearButtonMode:UITextFieldViewModeWhileEditing];
[self.contentView addSubview:textField];
}
return self;
}