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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:03:44+00:00 2026-05-18T08:03:44+00:00

I understood changing corner and disable navigation bar. but i need to build through

  • 0

alt text

I understood changing corner and disable navigation bar. but i need to build through in xib.
Now you will get clear idea about my question.

How can i build my uiview like sample one.

  • 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-18T08:03:45+00:00Added an answer on May 18, 2026 at 8:03 am

    You need to #import <QuartzCore/QuartzCore.h> and then change the radius value on the desired UIView like this view.layer.cornerRadius = 4;

    If for example you have a UIViewController and you want to add two views like above you do this at the loadView method of your viewcontroller:

    UIView *testView1 = [[UIView alloc] initWithFrame:CGRectMake(10,10,200,200)];
    UIView *testView2 = [[UIView alloc] initWithFrame:CGRectMake(20,20,150,150)];
    [testView1 setBackgroundColor:[UIColor greenColor]];
    [testView2 setBackgroundColor:[UIColor blackColor]];
    testView1.layer.cornerRadius = 4;
    testView2.layer.cornerRadius = 4;
    [self.view addSubview testView1];
    [self.view addSubview testView2];
    [testView1 release];
    [testView2 release];
    

    This will create two views one “inside” the other both with rounded corners.

    If you want to make the viewcontroller’s initial view appear with round corners do this:

    -(void)loadView {
     UIView *view = [[UIView alloc] init];
     [view setBackgroundColor:[UIColor redColor]];
     view.layer.cornerRadius = 15;
     self.view =view;
     [view release];
    }
    
    -(void)viewDidLoad {
     self.navigationController.navigationBarHidden = YES;
    }
    

    And add this line:

    window.backgroundColor = [UIColor blackColor];
    

    to your application didFinishLaunchingWithOptions method

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

Sidebar

Related Questions

I understood that this Bind attribute was not necessary, but JSON type is not
I thought I understood Java generics pretty well, but then I came across the
OK thought I understood IDipose but just reading the best practices section of Accelerated
I've always understood XMLSchemas and DTDs to be equivalent but that the latter is
I have this code example, but I don't understand why changing the values in
For what i understand proxy_cache can only be disable by changing the incoming request
Working through these posts had me thinking I understood self-types, at least somewhat. So
I need assistance changing the value of a custom-select box. I cannot use JQuery
I'm just changing design errors made in the past, but want to keep backwards
I had a strange bug i don't understand, and changing LINQ's IEnumerable to list

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.