I'm trying to draw a shadow under the bottom edge of a UIView in Cocoa Touch. I understand that I should use CGContextSetShadow() to draw the shadow, but the Quartz 2D programming guide is a little vague:
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Monday, June 11, 2012
How do I draw a shadow under a UIView?
Thursday, May 24, 2012
UIImagePickerController, UIImage, Memory and More?
I've noticed that there are many questions about how to handle UIImage objects, especially in conjunction with UIImagePickerController and then displaying it in a view (usually a UIImageView ). Here is a collection of common questions and their answers. Feel free to edit and add your own.
Friday, April 27, 2012
How to create a colored 1x1 UIImage on the iPhone dynamically?
I would like to create a 1x1 UIImage dynamically based on a UIColor.
iPhone board game: OpenGL ES or CoreGraphics?
I want to program a board game (similar to checkers) for the iPhone. Would OpenGL ES or CoreGraphics be a better option? What do most games of this type on the App Store use?
Tuesday, April 10, 2012
Inner shadow effect on UIView layer?
I have the following CALayer:
CAGradientLayer *gradient = [CAGradientLayer layer];
gradient.frame = CGRectMake(8, 57, 296, 30);
gradient.cornerRadius = 3.0f;
gradient.colors = [NSArray arrayWithObjects:(id)[RGB(130, 0, 140) CGColor], (id)[RGB(108, 0, 120) CGColor], nil];
[self.layer insertSublayer:gradient atIndex:0];
Thursday, March 8, 2012
Wednesday, February 29, 2012
Friday, January 20, 2012
UIImage Resize without loss of quality
Im looking for an external library (or a method using Apple frameworks that doesn't destroy the quality) which will let me scale down images.