Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8587693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:37:50+00:00 2026-06-11T22:37:50+00:00

I have using the following code for get identifier deviceName = [[UIDevice currentDevice]uniqueIdentifier]; But

  • 0

I have using the following code for get identifier

        deviceName = [[UIDevice currentDevice]uniqueIdentifier];

But i got the warning uniqueIdentifier is deprecated in ios5.

so how to get the identifier value in ios5?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:37:51+00:00Added an answer on June 11, 2026 at 10:37 pm

    You can use the following code

    if ([[UIDevice currentDevice] respondsToSelector:@selector(identifierForVendor)]) {
        // This will run if it is iOS6 or higher
        return [[[UIDevice currentDevice] identifierForVendor] UUIDString];
    } else {
       // This will run before iOS6 and you can use openUDID or other 
       // method to generate an identifier
    }
    

    And this way you can maintain the previous min requirement.

    This identifier is unique for all the apps from one vendor. If you want unique identifier for device you need to use:

    if (!NSClassFromString(@"ASIdentifierManager")) {
        // This will run before iOS6 and you can use openUDID, per example...
        return [OpenUDID value];
    }
    return [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
    

    Warning: There is a bug on iOS6 that reports “null” identifier if the device was updated “by air” – More info

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Tornado and I have the following code: class UserHandler(RequestHandler): def get(self):
I have following code using hibernate to throw a custom exception on error and
I have an issue with using the following code in my CakePHP app. In
I am using the following code for the Share Price Application I have been
I've have already implemented pagination using the following code: public Paginacao<Anuncio> consultarPaginado(int pagina, Integer
When I using the following code to read file: lines=file(data.txt).read().split(\n) I have the following
I have a Dictionary bound to DataGridView by using following sample code. DataGridView bound
I have generated a pdf file with password protection by using the following code:
I have created an alert view with two buttons using the following code: UIAlertView
I have displayed the map in my app by using the following code. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.