can’t i give the cornerRadius to UIViewController Object.
Share
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.
cornerRadiusis a property of a CALayer, which is associated with a UIView. A view controller can’t have one, but it’sviewproperty can have:At the top of your view controller’s .m file
In viewDidLoad:
You will probably also want to set the
borderWidthandborderColorproperties of the layer, if you are looking for a visible rounded rect border, ormasksToBoundsif you just want to round off the corners.