You can use auto layout or code. In code you can use layoutSubviews method. Just check view height to discover is it a iPhone 3.5 or 4 inch and do your set up:
-(void)layoutSubviews
{
if (self.view.bounds.size.height == 568)
{
[self.textField setFrame:CGRectMake(0, 0, 100, 30)];
//... other setting for iPhone 4inch
}
else
{
[self.textField setFrame:CGRectMake(0, 0, 100, 30)];
//... other setting for iPhone 3.5 inch
}
}