I created a text box by code in Xcode, by giving
if (isLandScape) {
textFieldRounded = [[UITextField alloc] initWithFrame:CGRectMake(800, 10, 200, 30)];
}
else {
textFieldRounded = [[UITextField alloc] initWithFrame:CGRectMake(550, 10, 200, 30)];
}
but when rotated, two box are created, I dont want this, what is the treatment for my code?
No comments:
Post a Comment