Custom border color on UIView in iOS.

Total Post:214

Points:1642

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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.