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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:54:32+00:00 2026-05-28T07:54:32+00:00

I have a UIView. I need to make only it’s top left and top

  • 0

I have a UIView. I need to make only it’s top left and top right corners rounded and also to have a 1 point border width.

Any idea?

Thanks

  • 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-28T07:54:33+00:00Added an answer on May 28, 2026 at 7:54 am

    Try this:

    #import <QuartzCore/QuartzCore.h>
    
    view.layer.cornerRadius = 8.0;
    view.layer.borderWidth = 1.0;
    view.layer.borderColor = [UIColor blueColor].CGColor;
    

    however, it’ll make all of your corners rounded. If you don’t want this, there are two options:

    1. Draw the rounded corner yourself using CoreGraphics (How to draw a rounded rectangle in Core Graphics / Quartz 2D?) or
    2. Use a mask (CALayer’s @property mask here: http://developer.apple.com/library/ios/#DOCUMENTATION/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to have two UITableViews on one UIView. I can make it work
I have a UIView which I need to stretch to the width of a
I have a structure like this.... UITableViewController -> UITableViewCell -> UIView I need the
I have a complex UIView with lots of custom subviews, and I need to
I need to draw a .png image on an UIView. I have no clue
I have a UIView subclass that draws itself when -drawRect: is called. It only
I have a UIView subclass onto which I need to blit a UIImage .
Is it possible to make a UIView only appear inside a limited area of
I have subclassed UIView, but I need to prevent the frame from changing, so
From top to bottom I have UIView, UIScrollView, a UIImage, a UILabel, a UITextView

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.