0

i have a Round corner button in custom tableview footer section am using this line code ( addRecordButton.layer.cornerRadius = 3.0f; ) it's show "property cornerRadius can't found in forward class please anyone can suggest me how to do it ?

user1418679
  • 51
  • 1
  • 2

1 Answers1

1

You need to add the QuartzCore framework before you can use that property. First, link the QuartzCore framework to your project, then:

#import <QuartzCore/QuartzCore.h>

at the top of your file. Then you can use:

addRecordButton.layer.cornerRadius = 3.0f;

to set the corner radius.

This is a very common problem.

Community
  • 1
  • 1
CrimsonDiego
  • 3,616
  • 1
  • 23
  • 26