CUSTOM BORDER COLOR ON UIVIEW IN IOS.

Tarun Kumar

Total Post:214

Points:1642
Posted by  Tarun Kumar
 605  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. Tarun Kumar

    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!