3

My current code doesn't seem to do anything:

CGContextRef currentContext = UIGraphicsGetCurrentContext();
    CGContextSaveGState(currentContext);

float myColorValues[] = {1.0, 0, 0, .8};
CGColorSpaceRef myColorSpace = CGColorSpaceCreateDeviceRGB();
CGColorRef myColor = CGColorCreate(myColorSpace, myColorValues);
CGContextSetShadowWithColor (currentContext, CGSizeMake(-1, -1), 0, myColor);

//CGContextSetShadow(currentContext, CGSizeMake(-15, 20), 15);


[super drawRect: rect];

CGContextRestoreGState(currentContext);
Ankur
  • 5,086
  • 19
  • 37
  • 62
Arpit
  • 2,207
  • 1
  • 18
  • 29

0 Answers0