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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:23:04+00:00 2026-06-13T21:23:04+00:00

I have a scroll view, containing a view into which I place paired background

  • 0

I have a scroll view, containing a view into which I place paired background color imageviews and image imageviews. I use this to present a simple scroll for my users to select an image to transfer to a main imageview display.

I have the scrollview background color set to light grey, alpha 0,5, the view set to clearcolor, alpha 1, opaque=true, the background color image set to either black or white, alpha 1, opaque = true and the image is set to alpha 1, opaque=true.

The issue I have is that within the app-info.plist, I have added “Renders with group opacity”, however regardless of the setting (yes or no), the background and image inherit the opacity of the scrollview.

opacity inheritence

In this image, you can see the main image in the background.
The light grey area is the scrollview, opaque = true, background = light grey, alpha=0,9
On top is the UIView, opaque=true, background = clear, alpha =1
The dark area around the first thumb is my active image indicator, opaque = true, background = dark grey, alpha =1
The white area (not visible) around the other thumbs is my notactive indicator, opaque=true, background = white, alpha =1
The imageview containing the thumbs is opaque =true, background white, alpha =1

However, you can see the background image through the thumbs. I wish the thumbs to be fully opaque and the grey to be alpha 0,5. This current setting of 0,9 is being used simply because this is the best I can make it.

This image is taken with the group opacity set to no, however the image is identical with group opacity set to yes.

I have seen this done elsewhere on other apps, however apart from a simple statement about what this parameters does,I cannot find simple instructions on how to implement this, as how I am doing must surely be wrong.

Any advice is welcome.

Regards
Chris H

  • 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-13T21:23:07+00:00Added an answer on June 13, 2026 at 9:23 pm

    This is a fairly common issue because people don’t anticipate that setting the alpha on a view will affect the rendering of the subviews. In your case this will be extremely easy to fix since you only want your background color to not be opaque. You can easily set a background color’s alpha and it will not affect the view’s subviews.

    First set all of your views alphas to 1.0.

    Second set the gray background color’s opacity to 0.5. You can do this in code creating a color like:

    [[UIColor darkGrayColor] colorWithAlphaComponent:0.5]
    

    or in IB by clicking the background color in the inspector and adjusting the opacity slider in the color picker:

    enter image description here

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

Sidebar

Related Questions

I have a scroll view with transparent background that covers most of the screen.
i have a scroll view with multiple images and i am using this code.
I have a table view controller which doesn't let me manually scroll to the
I'm trying to create horizontal scroll view(s). Each view containing one image. [done] Initially
i have a scroll view in my application and i want that when the
I have an scroll view with some sophisticated animations happening during scrolling. Although after
Suppose I have a scroll view in a view & a scroll view's size
In my app I have a scroll view and four table views. Each time
I have a paged scroll view in my app and it works almost perfectly...
I have following UI hierarchy Scroll View -->TableLayout-->Rows [each row has TextView+EditText] Problem Inside

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.