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

The Archive Base Latest Questions

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

I have a UIScrollView which contains a sub-UIView, insetView which is used to display

  • 0

I have a UIScrollView which contains a sub-UIView, insetView which is used to display other UIViews, swapped in and out at runtime. These subviews aren’t only images, or single-view objects. They are fully functional views containing buttons, label, images, etc.

The problem that I am seeing is that as I zoom in and out, I’m noticing around the edges of my buttons these flickering lines keep appearing. The odd thing about these lines is that they can appear on any side of my buttons, but they never extend all the way to the corner of the button.

I can consistently, slowly zoom in and out and when one of the lines appear, I can slightly pinch and expand my fingers and I’ll see the same line disappear and show up again, and again with pretty fair consistency.

Is this a bug with the scaling algorithm? Is there some way that I can stop this?

This is one of those small details that doesn’t affect the function of the application but it is affects the level of polish considerably. On a screen with enough buttons, this is actually quite an annoyance.

Please see the two images below for an example. These are taken from a screenshot on my iPad, and I scaled them up a bit so that you can see the highlight. The pixelation comes from cutting off the anti-aliasing in my photo editor, not from the iPad.

This is an example with two buttons, next to one another. The first image looks correct, the second is the mistake.

Good Image

enter image description here

Bad Image

enter image description here

  • 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-28T04:08:19+00:00Added an answer on May 28, 2026 at 4:08 am

    I found the answer. Buttons default to Rounded Rectangles. This means that it draws a rectangle in the background of the button.

    I’m new to iOS development, so when I was setting the Image in IB for each button, I didn’t realize that the UIButton class would still draw the rectangle, even though it was to be over-drawn by my image. Apparently, at certain scaling intervals, edges of the rectangles can show up on your button. I don’t think this should happen and, yes, is a bug. However, the solution is tochange the Type of button in IB from Rounded Rect to Custom.

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

Sidebar

Related Questions

I have a zooming UIScrollView that contains a UIView which contains some custom UIViews
I have a UIScrollView which contains some small UIView subclass. UIScrollView is scroll enabled,
I have a UIView which contains many items like UIScrollView. How can I specify
I have a UIScrollView that contains multiple UITableViews horizontally - all of which are
I have an Image inside UIScrollView which i can zoom in and out. I
I have subclassed UIView object inside a uiscrollview which displays a pdf page. I
I have a scroll view which has one UIView inside which contains the content.
I have a UIScrollView which contains many UIImageView s, UILabels, etc... the labels are
I have a UIScrollView which contains multiple UIImageViews. I want to know which UIImageView
I have a UIScrollView which contains any number of thumbnails that should detect the

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.