I'm fairly new using the SDK and want to overlay static and dynamic text over a section of a UIView. I have a "board" that I construct using the full 480x320 size of the screen in landscape mode.
First I rotate the view:
Code:
[self initWithFrame:CGRectMake(x, y, 480, 320)];
[self setCenter:CGPointMake(160.0f, 240.0f)];
[self setTransform:CGAffineTransformMakeRotation(3.141592f / 2.0f)];
then create the scene in a 15x9 loop: x,y
Code:
NSString* imgKey = [myBoard getCell:x:y];
UIImage* img=[figures objectForKey:imgKey];
[img drawAtPoint:CGPointMake(x*cellSize, y*cellSize)];
and this leaves me with a 480x32 strip at the bottom to add my text and nav buttons. The buttons will be centered and they are not at issue here. I.m not sure how to build and then display the text. For example, I'll want the equivalent of a UILabel positioned at 0,288 and another at 0,304 then another set of labels on the other side of the nav buttons at 320,288 and 320,304.
Can I just create a couple of UILabel instances and position them, or is there some better way. Can someone point me to an example that does this, or tell me how to do it?
Thanks!