I'm creating a counter from PNG image using code similar to:
counterImage = [UIImage imageNamed:@"counter-1-2-inactive.png"];
UIImageView *counterImageView = [[[UIImageView alloc] initWithImage:counterImage] autorelease];
UILabel *countLabel = [[[UILabel alloc] initWithFrame:counterImageView.frame] autorelease];
[cell addSubview:counterImageView];
[counterImageView addSubview:countLabel];
You can see a result below, on the LHS there is a counter from iOS Simulator and on the RHS there is a original PNG.
Why the quality decreased slightly in the resulting UIImageView? How can I improve it? This is maybe only 1-pixel-height line, but in 1:1 scale is seems like a counter is shortened from the above.
Size of a resulting counterImageView is the same as original PNG: 40x24.