UIProgressView and Custom Track and Progress Images (iOS 5 properties)

Here’s what’s going on: The images you provide to the UIProgressView are basically being shoved in to UIImageViews, and the UIImageView is stretching the image to fill the space. If you simply do: [progressView setTrackImage:[UIImage imageNamed:@”track.png”]]; Then you’re going to get weird results, because it’s trying to stretch a 10px wide image to fill (for … Read more

GLKView set drawable properties

If you want to get kEAGLDrawablePropertyRetainedBacking in a GLKView, add the following category to your project. @interface CAEAGLLayer (Retained) @end @implementation CAEAGLLayer (Retained) – (NSDictionary*) drawableProperties { return @{kEAGLDrawablePropertyRetainedBacking : @(YES)}; } @end Setting the drawableProperties on the CAEAGLLayer maintained by the GLKView doesn’t work because the GLKView overwrites those properties when it binds its … Read more

Cell animation stop fraction must be greater than start fraction

I experienced the same crash when trying to use a dummy footer to remove potential “empty” table view cells. The solution was to get rid of tableView:viewForFooterInSection: tableView:heightForFooterInSection: and replace them with the following, in viewDidLoad : tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];