What is the UITextField default borderColor in iOS8?
According to the Mac's Digital Color Meter the RGB of the borders is 230, 230, 230.
I set the border color for the button to be the standard light gray and the border width to be 0.25 and that matched
Swift 3:
myButton.layer.borderWidth = 0.25
myButton.layer.borderColor = UIColor.lightGray.cgColor
You can use the following code to apply same effect of textfield to buttton (borderwidth, bordercolor, & corner radius)
UIColor *borderColor = [UIColor colorWithRed:204.0/255.0 green:204.0/255.0 blue:204.0/255.0 alpha:1.0];
dateButton.layer.borderColor = borderColor.CGColor;
dateButton.layer.borderWidth = 1.0;
dateButton.layer.cornerRadius = 5.0;