if ((int)[[UIScreen mainScreen] bounds].size.height == 568)
{
// This is iPhone 5 screen
NSLog(@"iPhone 5: viewDidAppear: picker");
labelRect = CGRectMake(20.0, 79.0, 167.0, 21.0);
address1Label = [[UILabel alloc] initWithFrame:labelRect];
address1Label.text = @"Address 1";
[self.view addSubview:address1Label];
}
else
{
// This is iPhone 4/4s screen
NSLog(@"iPhone 4: viewDidAppear: picker");
labelRect = CGRectMake(20.0, 79.0, 280.0, 30.0);
address1TextField = [[UITextField alloc] initWithFrame:labelRect];
address1TextField.returnKeyType=UIReturnKeyDone;
[address1TextField addTarget:self action:@selector(hideKeyBoard:)
forControlEvents:UIControlEventEditingDidEndOnExit];
address1TextField.placeholder = @" Address 1";
}