Custom border color on UIView in iOS.

Total Post:214

Points:1642
 926  View(s)
Ratings:
Rate this:
I want to set border color of UIView controller in our iPhone application.
Can I set custom border color by programmatically?
  1. Post:214

    Points:1642
    Re: Custom border color on UIView in iOS.

    I got a solution, we can set UIView border width and border color using this code:

    view.layer.borderWidth = 1;
    view.layer.borderColor = UIColor.blueColor().CGColor;

      Modified On Jan-11-2016 01:27:49 AM

Answer