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 7052201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:21:19+00:00 2026-05-28T03:21:19+00:00

How do we get unique IDs in Objective C. I want to create a

  • 0

How do we get unique IDs in Objective C. I want to create a unique ID for my session & then generate a ID each time a server call happens. Each time this ID should be unique.

I tried using CFUUID class which gives us a huge unique ID (4FE9D00C-531E-45E8-B10E-11968ACC36E9). I want a unique ID of smaller size.

Any clue?

  • 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-05-28T03:21:19+00:00Added an answer on May 28, 2026 at 3:21 am

    A guid (by shear combinations) generates a unique id. If it’s less characters you want then one option is to base64encode the guid. That allows for 64 possibilities per char instead of 16 (0-9, A-F)

    This:

    540c2d5f-a9ab-4414-bd36-9999f5388773
    

    Becomes:

    Xy0MVKupFES9NpmZ9TiHcw
    

    For example: (C# though) http://www.singular.co.nz/blog/archive/2007/12/20/shortguid-a-shorter-and-url-friendly-guid-in-c-sharp.aspx

    Here’s a SO post on objective-c encode/decode (look @ Mike Ho post):

    How do I do base64 encoding on iphone-sdk?

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

Sidebar

Related Questions

Is it possible to get DynamoDB to automatically generate unique IDs when adding new
I have an XML document that I want to generate unique IDs for. Some
I'm trying to get unique IDs for object instances in PHP 5+. The function,
I'm trying to get the top N records for each unique row of data
I'm trying to get data where order doesn't matter with unique ids. So simply
I usually use the UUID class to generate unique IDs. This works fine if
I'm retrieving data from another database that has already created unique IDs for each
How to get unique Google Gadget ID from a gadget added to a iGoogle
I can get the unique id like className@2345 of my object by calling its
How can I get only unique departments from the below example? Dept Id Created

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.