Results 1 to 1 of 1

Changing UITextField Boarder Style Programmatically

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 ...

          
   
  1. #1
    The Man Behind It All Fahad's Avatar
    Join Date
    Jun 2009
    Posts
    813

    Default Changing UITextField Boarder Style Programmatically

    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:

    Code:
    UITextBorderStyleBezel
    UITextBorderStyleNone
    UITextBorderStyleLine
    IF YOU NEED ANY HELP PLEASE DON'T HESITATE TO ASK BY LEAVING A REPLAY BELOW

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •