ios - Cannot use "description" keyword with NSObject -


i parsing json , use nsobject class access values, cant use "description" keyword match key "description" in json data. compiler says "description inner property in nsobject".

class jsondetails: nsobject {      var id: nsnumber?     var title: string?     var description: string?     var address: string?     var postcode: string?     var phonenumber: string?     var latitude: string?     var longitude: string?     var image: [img]?      class img: nsobject {         var small: string?         var medium: string?         var large: string?     } } 

because "description" inherited method of nsobject cannot have var of same name. renaming var 'desc' option though.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -