Wednesday, April 18, 2012

how to support rotate in the textbox created by code?

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