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

The Archive Base Latest Questions

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

So I have a scrollView with like 10 buttons on one side. Always when

  • 0

So I have a scrollView with like 10 buttons on one side. Always when I scroll to that page, I get lots of bad performance. Then I noticed it was the CALayer that was creating the lag! I’ve used

button.layer.cornerRadius = 25;
button.layer.clipsToBounds = YES;

When I searched on the internet, I found out that I could use

button.layer.shouldRasterize = YES;

it should work better. But it just lowered the resolution and did not improve the performance. So I tried cutting the edges off in GIMP, but when I added them to XCode, they got filled in with white! So, please, tell me, is there any way that I can round corners without bad performance, by CALayer or without, doesn’t matter. Any help appreciated!

(ps. if you need the whole code or image, tell me and I’ll add it)

UPDATE:

It only works with bad performance on the iPhone 4, I tried it on my iPad Mini, and it worked just fine!

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

    You can create those images with GIMP like you suggested. The key to success is to set the opaque value of the view to NO, which means to enable transparency. But remember that setting a view’s opaque value to NO can result in loss of performance especially in fast changing views like UIScrollViewCell.

    In your case it’s fast enough, in other cases maybe not. If the background is a single color, it is better to use that color as background color in your image manipulation program. (and set opaque = YES;)

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

Sidebar

Related Questions

I have a paged scrollview. Each page has a viewcontroller (buttonViewController) that manages a
I have a relativelayout with 30 buttons within a scrollview. What I would like
I have a strange behavior with my buttons that I add to a scrollview.
i have a game with like 48 buttons that i have in a 6
I have one main Activity with layout wrapped into ScrollView like this: <ScrollView android:layout_height=wrap_content
I have main UIScrollView with lots off buttons which i create like this: UIButton
Okay, I have a Scroll View with Page Control that works properly between 2
For Example, I have a layout like this: <ScrollView> <LinearLayout> <LinearLayout> ... </LinearLayout> <LinearLayout>
I have a scrollview in my app and the second I scroll to the
I have a scrollview (IBOutlet); in that scrollview I have added an imageview. I

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.