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

  • Home
  • SEARCH
  • 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 8723409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:37:10+00:00 2026-06-13T07:37:10+00:00

This has bugged me several time. I am debugging a custom subview for example.

  • 0

This has bugged me several time.

I am debugging a custom subview for example.

I want to know the type of subviews that my custom subviews have.

I type:

(lldb) po self.subviews
error: property 'subviews' not found on object of type 'BGBaseOfAllUIView *'
error: 1 errors parsing expression
(lldb) 

Which is idiotic given that self is has UIView as ancestor and does support .subviews property.

I type

(lldb) po self
(BGDetailBusinessViewController *) $2 = 0x088d01f0 <BGDetailBusinessViewController: 0x88d01f0>

Which is not a lot of information. It doesn’t explain what the frame is or where things go.

The so called variable view is also not helping.

enter image description here

Say I want to know some simple information. What is self.subviews? What is self.frame?

Why getting something so simple is so difficult?

The only way how to do so is to borrow a code from my friend and add

#define CLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
#define PO(x) CLog(@#x ": %@", x)

But that’s not real time. I have to modify the program first and insert stuff just to get that simple information.

What am I missing?

  • 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-13T07:37:11+00:00Added an answer on June 13, 2026 at 7:37 am

    Please avoid moaning in your questions – people have to read a lot of “it doesn’t work how I want it to” before they can get to any real questions – which is what we are here for not for listening to you vent your frustrations.

    First thing to note is: BGDetailBusinessViewController is a viewController and not a view – so no it does not have subviews but it manages a view hierarchy. The root view would be the ivar called view.

    So to get the subviews you would need to do something like

    po [self.view subviews]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well,This thing has bugged me for days. I have developed an app that checks
This problem has bugged me so many times and i have now decided to
This has defeated me. I want to have a static class variable which is
This one has bugged me for the longest time and a great question to
This has bugged me for a long time. 99% of the time, the GROUP
This has bugged me for a long time, and try as I might I
OK this is a problem that has bugged be for ages. I am looking
This is a minor presentation thing that has bugged me for ages: http://gyazo.com/e5bed138e234fef7f570bd36edee3edd.png Checkout
This has been a rather problematic issue on numerous occasions. We have alot of
This has always bugged the hell out of me. Why are lists like this?

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.