我必须在iPhone设置中获取当前国家/地区。谁能告诉我如何在iPhone应用程序中获取当前国家/地区。我必须使用当前国家/地区来解析我需要传递当前国家/地区的RSS提要。请帮我找出国家。提前致谢。 最佳答案 要查找用户所选语言的国家/地区:NSLocale*currentLocale=[NSLocalecurrentLocale];//getthecurrentlocale.NSString*countryCode=[currentLocaleobjectForKey:NSLocaleCountryCode];//getcount
我必须在iPhone设置中获取当前国家/地区。谁能告诉我如何在iPhone应用程序中获取当前国家/地区。我必须使用当前国家/地区来解析我需要传递当前国家/地区的RSS提要。请帮我找出国家。提前致谢。 最佳答案 要查找用户所选语言的国家/地区:NSLocale*currentLocale=[NSLocalecurrentLocale];//getthecurrentlocale.NSString*countryCode=[currentLocaleobjectForKey:NSLocaleCountryCode];//getcount