I want to display a shadow on UIView controller because I have a need in our iPhone application to display a shadow under the bottom edge of UIView Controller.
I have searched and found CGContextSetShadow() for drawing the shadow, but still I have getting problem:
Here is my code:
CGContextRef context = UIGraphicsGetCurrentContext();
[super drawRect: rect];
but the above code is not working.
Please tell me what is wrong in my code if any. or is any other best solution for that then please provide me the code.