【发布时间】:2013-08-14 06:02:45
【问题描述】:
我使用setDefaultTimezone 设置时区并在UITableview 中显示时间和位置。
我使用下面的代码来设置默认时区
[cell.detailTextLabel setText:[NSString stringWithFormat:@"%@", evnt.location]];
[NSTimeZone setDefaultTimeZone:[NSTimeZone timeZoneWithName:evnt.location]];
[cell.textLabel setText:[NSString stringWithFormat:@"%@",[NSDate date]]];
我要做什么?
【问题讨论】:
-
@Tendulkar 现在可以正常工作了...我必须再次检查...
-
没关系。通过粘贴相同的代码,我不想增加 Stackoverflow 服务器的负载。谢谢。
标签: ios objective-c cocoa-touch uitableview nsdate