ios - How to resolve this error? - Class 'ViewController' has no initializers -


i have created uilabel programmatically in swift gives me following error :

class 'viewcontroller' has no initializers

enter image description here

code :

class viewcontroller: uiviewcontroller {      let lbl_lastname: uilabel!      override func viewdidload() {         super.viewdidload()         lbl_lastname.frame = cgrectmake(10, 230, 300, 21)         self.view.addsubview(lbl_lastname)        } } 

change let lbl_lastname: uilabel! var lbl_lastname: uilabel!


Comments

Popular posts from this blog

Upgrade php version of xampp not success -

amazon web services - S3 and apache mod_proxy with basic authentication -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -