SimpleTableView 概述: 获取系统支持的时区名字,然后排序后,在tableView中显示出来. 技术细节: 获取所有的时区名字 NSArray *timeZones = [NSTimeZone knownTimeZoneNames]; 对名字进行排序后,存储到rootViewController的timeZoneNames数组中 rootViewController.timeZoneNames = [timeZones sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)]; 设置navigationController的title,使用NSLocalizedString方法从Lacalizable.string文件中读取 self.title = NSLocalizedString(@"Time Zones", @"Time Zones title");
SimpleTableView
最新推荐文章于 2021-05-26 01:49:08 发布