2012-12-14 34 views

回答

1

使用此格式的日期:

NSLocale *hebrew = [[NSLocale alloc] initWithLocaleIdentifier:@"he_IL"]; 
NSDateFormatter *format = [[NSDateFormatter alloc] init]; 
format.locale = hebrew; 
[format setDateFormat:@"MMM dd, yyyy HH:mm"]; 

NSDate *now = [NSDate date]; 
NSString *today = [format stringFromDate:now]; 
UILabel *lbl = [[UILabel alloc] initWithFrame:CGRectMake(30, 40, 240, 30)]; 
lbl.text = today; 
NSLog(@"today: %@", today); 
+0

但我怎么告诉你(与标签 – dsadasd

+0

什么关系reletionship?我没有得到你? – laxonline

+0

我需要标签显示我今天的日期(希伯来语日期) – dsadasd

2

查阅这些twolinks ...可能是它会有助于您