【发布时间】:2010-05-28 04:58:07
【问题描述】:
NSDate *now = [NSDate date];
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yyyy"];
NSString *stringFromDate = [formatter stringFromDate:now];
CGContextShowTextAtPoint(context, 50, 50, stringFromDate, 5);
我没有得到确切的日期?编译时也收到警告
警告:从不兼容的指针类型传递“CGContextShowTextAtPoint”的参数 4
【问题讨论】:
标签: objective-c iphone