UIViewShadow 1.0.0

UIViewShadow 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • Bogdan Iusco

UIView+BIShadow

UIView category for setting shadow.

Installation

Just drag&drop the UIView+BIShadow.h/m files in your Xcode Project.

Usage

myView.shadowColor = [UIColor lightGrayColor];
myView.shadowOpacity = 0.8;

// Set shadow above the view.
NSDictionary *shadowDictionary = @{UIViewShadowOffset.top : @(20)};
[myView setShadow:UIViewShadowTop withOffsets:shadowDictionary];