首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

UIDatePicker中英文展示

2013-11-21 
UIDatePicker中英文显示1 NSLocale *locale [[NSLocale alloc] initWithLocaleIdentifier:@en_US]//

UIDatePicker中英文显示

1 NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];//设置为英文显示2 NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"zh_CN"];//设置为中文显示3 datePicker.locale = locale;4 [locale release];

热点排行