UIView で、文字を描画する
- (void)drawRect:(CGRect)rect { UIColor *color = [UIColor colorWithRed: 0xff green: 0xff blue: 0xff alpha: 0xff]; [color set]; NSString *string = [[NSString alloc] initWithCString:title]; [string drawAtPoint:CGPointMake(x+2, y+2) withFont:[UIFont systemFontOfSize: fontsize]]; [string release]; }
こうやるらしい。。(汗)
color オブジェクトを作って、setを送ると、色が変わるというのが、よくわからんのですが。(^^;;