
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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You need to
#import <QuartzCore/QuartzCore.h>and then change the radius value on the desired UIView like thisview.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:
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:
And add this line:
to your application didFinishLaunchingWithOptions method