Find current country from iPhone device

前端 未结 9 1027
醉话见心
醉话见心 2020-12-04 08:38

I have to get the current country in the iPhone settings. Can anyone tell me how to get the current country in iPhone application.

I have to use the current country

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 09:02

    NSTimeZone *gmt = [NSTimeZone localTimeZone];
    
    NSLog(@"timezone gmt %@",gmt.abbreviation);
    

提交回复
热议问题