gmarm / BetterSegmentedControl

An easy to use, customizable replacement for UISegmentedControl & UISwitch.
MIT License
2.21k stars 280 forks source link

set cornerRadius error #51

Closed DaokunBai closed 7 years ago

DaokunBai commented 7 years ago

ambiguous use of 'cornerRadius'

gmarm commented 7 years ago

Could you please provide some additional details?

DaokunBai commented 7 years ago
wx20170509-172941 2x
DaokunBai commented 7 years ago

When modify "cornerRadius" to "viewCornerRadius" The error dismiss

wx20170509-180540 2x wx20170509-180516 2x
gmarm commented 7 years ago

Hmmm... interesting.

The message seems to indicate you might have declared cornerRadius before somewhere in your code. One thing I can guess is that you have maybe created a UIView extension with a cornerRadius property, and it conflicts with the property declared in the control itself.

DaokunBai commented 7 years ago

YES,Thank you. I found the declared property in SwifterSwift library.

gmarm commented 7 years ago

Happy to help. :)

VictorCamargo commented 6 years ago

@DaokunBai and how did you resolved that?