Try this. Change your UIImageView
to be the same size as the UIImage
that you are going to load, then position the UIImageView
so that it's centered. This is the approach I've taken since I find UIImageView
to be a bit funny to work with. Or, if you prefer, skip the UIImageView
and just draw the UIImage
using it's - (void)drawInRect:(CGRect)rect
method.
Gordon Worley
2009-09-15 18:21:36