Friday, November 9, 2012

2.Type casting UIText field using tag values assign the border color…[ Use custom UIView class]






 UITextField *txtAddressLine1Ref = (UITextField*)[self viewWithTag:4]; //txtAddressLine1
        
        txtAddressLine1Ref.layer.borderColor = [[UIColor colorWithRed:197.0f/255.0f green:215.0f/255.0f blue:224.0f/255.0f alpha:1]CGColor];
        txtAddressLine1Ref.layer.borderWidth = 1.0f;

No comments:

Post a Comment