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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:30:16+00:00 2026-05-31T16:30:16+00:00

For some reason I have a black underlay under my round rect buttons. This

  • 0

For some reason I have a black underlay under my round rect buttons. This only happens with the round rect buttons that are over a custom UIView. I have the Custom UIView to make borders based on my clients design specs. If I remove the custom UIView (imgView3), then the buttons work fine. Also, after a brief period of time the black underlay disappears. Here is my code, I add in the buttons programmatically just to stay consistent but it also happens when I add the buttons via storyboard as well.

UIImageView *imgView3 = [[UIImageView alloc] initWithFrame:CGRectMake(409, 129, 361, 217)];
// Get the Layer of any view
l = [imgView3 layer];
[l setMasksToBounds:YES];
[l setCornerRadius:10.0];

// You can even add a border
[l setBorderWidth:1];
[l setBorderColor:[[UIColor blackColor] CGColor]];
l.shadowOffset = CGSizeMake(0, 3);
l.shadowRadius = 5.0;
l.shadowColor = [UIColor blackColor].CGColor;
l.shadowOpacity = 0.8;    
[l setBorderColor:[[UIColor blackColor] CGColor]];

UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[button addTarget:self 
               action:@selector(buttonPressed:)
     forControlEvents:UIControlEventTouchDown];

[button setTitle:@"North" forState:UIControlStateNormal];
button.frame = CGRectMake(545, 161, 90, 53);
[imgView3 addSubview:button];

[self.view addSubview: imgView3]

Heres an image of what I’m speaking of:
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-31T16:30:17+00:00Added an answer on May 31, 2026 at 4:30 pm

    Have you tried setting the Background Color of your button to Clear Color in the button’s Attributes Inspector?

    // or in code
    [myButton setBackgroundColor:[UIColor clearColor]];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason I have always assumed that most of the time a variable
For some reason the Windows command prompt is special in that you have to
For some reason, we have a script that creates batch files to XCOPY our
I have a crash that is happening deep within UIKit for some reason; an
I have this code. For some reason I can't get the contentpresenter to stretch
I have a form that uses a div that is positions over some input
I have been trying to create a red black tree that only implements an
For some reason I'm struggling with this. I have the following 2 arrays and
For some reason I have a very ugly orange part of a border around
I use prototype since a long time, but for some reason I have to

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.