This code should be showing a shadow, but it isn't: CGContextRef context = UIGraphicsGetCurrentContext(); //Border CGMutablePathRef outerPath = createRoundedRectForRect(self.bounds, MENU_BUTTON_OUTER_RADIUS); CGContextSetFillColorWithColor(context, [[UIColor colorWithWhite:0 alpha:0.18] CGColor]); CGContextAddPath(context, outerPath); CGContextFillPath(context); //Button UIColor *buttonColor; if (self.type == JMenuButtonTypeBlack) { buttonColor = [UIColor colorWithWhite:0 alpha:1.0]; } else if (self.type == JMenuButtonTypeWhite) { buttonColor = [UIColor colorWithWhite:0.72 alpha:1.0]; } CGRect insideRect = rectForRectWithInset(self.bounds, 3); CGMutablePathRef innerPath = createRoundedRectForRect(insideRect, MENU_BUTTON_INNER_RADIUS); CGPoint gradientTop = CGPointMake(0, insideRect.origin.y); CGPoint gradientBottom = CGPointMake(0, insideRect.origin.y + insideRect.size.height); //Base color CGContextSaveGState(context); CGContextSetFillColorWithColor(context, [buttonColor
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update