Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@arzola
Created March 21, 2014 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arzola/9680126 to your computer and use it in GitHub Desktop.
Save arzola/9680126 to your computer and use it in GitHub Desktop.
Add Top Border to UIView
CALayer *TopBorder = [CALayer layer];
TopBorder.frame = CGRectMake(0.0f, 0.0f, self.scrollView.frame.size.width, 1.0f);
TopBorder.backgroundColor = UIColorFromRGB(0xff716b).CGColor;
[self.scrollView.layer addSublayer:TopBorder];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment