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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:26:21+00:00 2026-06-06T03:26:21+00:00

I have a Nib with a scrollview which i use on my controller. I

  • 0

I have a Nib with a scrollview which i use on my controller. I have to make some constant calculations based on the scrollview.subviews count. However, surprisingly the scrollview is always starting with two uiimage views.

The scrollview at my Nib file is empty, and i have even checked the nib source code to assure there is no garbage there. I also deleted the scrollview and created another with the same result.

I am always receiving the same views there (always at, so my scrollview.subviews.count always start at 2. What could be causing this??

If I print scrollview subviews just after initializing view..

[[NSBundle mainBundle] loadNibNamed:@"TileScreen" owner:self options:nil];
    NSLog(@"Started scrollview with subviews %@", _scrollView.subviews);

I receive:

Started scrollview with subviews (
    "<UIImageView: 0x1dcb50; frame = (294 400; 7 7); alpha = 0; opaque = NO; autoresize = TM; userInteractionEnabled = NO; layer = <CALayer: 0x1e51b0>>",
    "<UIImageView: 0x1bb6a0; frame = (294 400; 7 7); alpha = 0; opaque = NO; autoresize = LM; userInteractionEnabled = NO; layer = <CALayer: 0x1a9b50>>"
)
  • 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-06T03:26:23+00:00Added an answer on June 6, 2026 at 3:26 am

    Well before I posted this question I understood the problem. I wanted to share in case someone falls into this.

    The problem is that the “Show horizontal scrollbar, Show vertical scrollbar” add the mentioned UIImageViews. You can avoid this by simply unchecking the property on the IB.

    If you want to show the scrollbars though, you will need to take into account these two views in your count.

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

Sidebar

Related Questions

I use the scrollview to display multipage view, which have more than 10 pages.
I have a NIB with two NSWindow objects. The controller class has two IBOutlets,
I have a NIB with a UIView that contains some UILabels, UIButtons etc. and
I am using a UITableViewController which uploads a table. I have a Nib File
I have a root view controller with no nib file, I tried adding this
So, i have a view controller which contains just a scroll view. In viewDidLoad,
I have a NIB that contains a UINavigationController which has a UIViewController . The
I have a view controller which contains a scroll view. Inside the scroll view
I have two UIViewControllers each with their own nib files. Each controller serves a
I have renamed some nib files, from EEMSystemDetailElpho to EEMSystemDetailElphoView, EEMSystemDetailTransfer to EEMSystemDetailTransferView, EEMSystemDetailProbing

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.