在任意位置画上文字

来源:互联网 发布:mac怎么取消隐藏数据 编辑:程序博客网 时间:2024/04/30 03:56
UIFont * f = [UIFontsystemFontOfSize:20];
[[UIColor darkGrayColor] set];
NSString * text = @"hi \nKiloNet";
[text drawAtPoint:CGPointMake(center.x,center.y)withFont:f];