This is a discussion on Changing UITextField Boarder Style Programmatically within the iPhone/iPad Programming Tutorials forums, part of the Programming Section category; Hello, Here are some of the changes you can do to UITextField programmatically: 1) Making a Rounded UITextField: Code: UITextField ...
Hello,
Here are some of the changes you can do to UITextField programmatically:
1) Making a Rounded UITextField:
Code:UITextField *EMAIL = [[[UITextField alloc] initWithFrame:CGRectMake(20, 300 , 218, 31)] autorelease]; //create the textfield EMAIL.borderStyle = UITextBorderStyleRoundedRect; //sets the boarder style [self.view addSubview:EMAIL];
This will return a UITextField with rounded board, there are other options like:
IF YOU NEED ANY HELP PLEASE DON'T HESITATE TO ASK BY LEAVING A REPLAY BELOWCode:UITextBorderStyleBezel UITextBorderStyleNone UITextBorderStyleLine
Screenshot:
Last edited by Fahad; 01-10-2011 at 10:55 AM.
MozyMac Founder,Chairman and CEO
MacBook Pro Unibody late 2008 2.4Ghz 4GB ram 250GB HD
MozyMac Youtube Channel