ios - Using @IBInspectable setting a Bool failed -


this class:

class viewcontroller: uiviewcontroller {      @ibinspectable var double: double!     @ibinspectable var string: string!       override func viewdidload() {         super.viewdidload()     }      override func didreceivememorywarning() {         super.didreceivememorywarning()     }  } 

and set double , string in storyboard

enter image description here

i run app. string can set correctly double failed.the console output:

failed set (double) user defined inspected property on (test1.viewcontroller): [<test1.viewcontroller 0x7f892ad25910> setvalue:forundefinedkey:]: class not key value coding-compliant key double. 

could tell me why setting failed ? thanks!


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -