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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -