Search Results

Search found 2 results on 1 pages for 'telkitty'.

Page 1/1 | 1 

  • Configure UIDatePicker with current locations time

    - by Telkitty
    I am using UIDatePicker in my current app, here is how I set a UILabel with the date time string obtained from the UIDatePicker. -(IBAction)AddTimeEnd:(id)sender { NSDate * date = [m_DateTimePicker date]; m_DateTimeLabel.text = [date description]; } Somehow the time I have entered (EST) kept on getting converted to US time in the UILabel. Does anyone know how to fix it? I would like the time entered in UIDatePicker to be consistent with the text in the label (probably the simplest way is set the locale for the UIDatePicker to be the local timezone)?

    Read the article

  • Getting country calling prefix

    - by Telkitty
    Just wondering whether there are easy ways to retrieve country calling code from a user's phone. For example, my app would like to pre-fill country calling code for the users. If the user is located in the U.S. the code +1 will be returned, +83 for China, +61 for Australia etc. I had a look around but I could only see: NSLocale *locale = [NSLocale currentLocale]; NSString *countryCode = [locale objectForKey: NSLocaleCountryCnode]; Which returns the abbreviation for the country code, not the calling prefix? Help is appreciated!

    Read the article

1