ios - IBInspectable property set at design time not keeping value -


we in process of implementing ibinspectable large app in hopes of allowing settings set in interface builder reduce amount of code in our views. don't have experience ibinspectable/ibdesignable , looking answers and/or clarification on i'm doing wrong.

i have declared property in uitableviewcell subclass follows:

@property (nonatomic,strong) ibinspectable uicolor* backgroundcolor; 

when declaring property this, option set color in interface builder > attributes inspector, expected. when set color, value _backgroundcolor nil @ runtime.

[_labelloginbackground setbackgroundcolor:_backgroundcolor]; 

could clarify might going here? thanks!

uitableviewcell subclass of uiview, contains property named "backgroundcolor". 1 of following:

  1. rename own "backgroundcolor" property "loginbackgroundcolor" , start debugging there.

or

  1. do not create redundant property. set background color using selection widget present in interface builder before ever add ibinspectable.

enter image description here


Comments