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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:51:22+00:00 2026-05-26T14:51:22+00:00

Is this a UIButton? If it is, how is the background red done? Obviously,

  • 0

Is this a UIButton? If it is, how is the background red done? Obviously, it is not
red UIColor? Is there same tool or utility included with Xcode to allow making buttons
like this?

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-26T14:51:22+00:00Added an answer on May 26, 2026 at 2:51 pm

    You can generate similar buttons with private class UIGlassButton.
    I saw it first here http://pastie.org/830884 by @schwa.

    Run an app with this code in your iOS simulator to create a custom button (or in the device, save to $(APP)/Documents and enable iTunes file sharing).

    Class theClass = NSClassFromString(@"UIGlassButton");
    UIButton *theButton = [[[theClass alloc] initWithFrame:CGRectMake(10, 10, 120, 44)] autorelease];
    // Customize the color
    [theButton setValue:[UIColor colorWithHue:0.267 saturation:1.000 brightness:0.667 alpha:1.000] forKey:@"tintColor"];
    //[theButton setTitle:@"Accept" forState:UIControlStateNormal];
    [self.view addSubview:theButton];
    
    UIGraphicsBeginImageContext(theButton.frame.size);
    CGContextRef theContext = UIGraphicsGetCurrentContext();
    [theButton.layer renderInContext:theContext];
    
    UIImage *theImage = UIGraphicsGetImageFromCurrentImageContext();
    NSData *theData = UIImagePNGRepresentation(theImage);
    [theData writeToFile:@"/Users/<# your user #>/Desktop/button.png" atomically:NO];
    UIGraphicsEndImageContext();
    

    Once you obtain the png, use it as button background.

    Alternatively, you can build the buttons programmatically (by Jeff Lamarche).

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

Sidebar

Related Questions

What I Want: A border indicating if a UIButton is selected or not. Background:
is there a possibility to animate an uibutton in this way that a thing
I have customized UIButton with the following properties: 84x44 frame 84x44 background image 32*32
I am looking to create a Custom UIButton (not subclass) progrmatically, I would like
I have created a custom UIButton (UIButton subclass) for my application. Within this button's
Anywhere there is a UIButton in my app i would like it to have
I am looking for a solution to this problem that does NOT require using
I've built a view with IB, and included a UIButton in the view to
This one has me stumped. Is it possible at all to change the background
This is something that is stumping me; I have a simple UIButton with 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.