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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:43:43+00:00 2026-06-11T23:43:43+00:00

What is the numeric value in the default description of a UIViewController? I had

  • 0

What is the numeric value in the default description of a UIViewController? I had expected it to be the instance address, or perhaps the hash, but when I tested this theory this is what I got:

NSLog(@"Self [%@]", self);
NSLog(@"Address [%p]", &self);
NSLog(@"Hash [%d]", [self hash]);

2012-09-26 10:28:00.202 QuickList7[85957:c07] Self [<SelectCategoryViewController: 0xa42fc60>]
2012-09-26 10:28:00.202 QuickList7[85957:c07] Address [0xbfffdea8]
2012-09-26 10:28:00.203 QuickList7[85957:c07] Hash [172162144]

I haven’t been able to find an explanation in the reference for UIViewController or it’s superclasses – anyone know?

  • 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-11T23:43:44+00:00Added an answer on June 11, 2026 at 11:43 pm

    That is indeed the instance address, as for any other description implementations that use the NSOBject‘s default implementation.

    But the instance address is already in the self variable, as self is of type UIViewController* and is already a pointer. Printing the pointer value of &self as you do in your example prints the address of the pointer (pointer to a pointer), not the address of the instance, as &self is indeed of type UIViewController**.

    If you use NSLog(@"%p", self) instead of NSLog(@"%p", &self) you will see the same address printed as the one used by description and displayed with NSLog(@"%@", self).

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

Sidebar

Related Questions

So I have a numeric value and on those two functions can be applied.
I'm trying to take a numeric value in a string and raise it by
I've created a regular expression that matches any numeric value (with leading or trailing
I would like to create a function that checks if a numeric value passed
I need to Convert Strings stored in my Database to a Numeric value. Result
Django python problem: The select drop down returns the numeric value of the item.
In PowerShell, how can I test if a variable holds a numeric value? Currently,
For the currency code ISO 4217, how do I retrieve the numeric value from
I have the field receiptno , which is a varchar holding a numeric value,
How can I increment numeric String value? If it is initially 1, I want

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.