ios - Text format not supported in UITextView -
i getting text information in format after firing url , not being able print in uitextview
. it's showing me error : "exc_bad_instruction
"
the result getting after json
parsing text in format:
"desc1":"new delhi: indian grand prix, dropped formula 1 calendar after 3 successful seasons between 2011 , 2013, on track in 2016, race promoters said.\r\n\r\n“we had been desperately trying grand prix @ buddh international circuit (bic) ever since dropped calendar,” said senior official of jaypee sports international (jpsi) on wednesday.\r\n\r\n“recently, our top boss, sameer gaur, had meeting f1 supremo bernie ecclestone in sochi on bringing race india. had fruitful discussion, , if goes accordingly, indian gp should vroom once again in 2016,” said.\r\n\r\nthe indian leg dropped rather abruptly after 2013 race despite fact formula 1 management (fom) had five-year contract promoters.\r\n",
try code:
nsdictionary *dict = [nsjsonserialization jsonobjectwithdata:returndata options:nsjsonreadingmutableleaves error:nil]; nsstring *message=[dict objectforkey:@"desc1"]; self.textview.text=message
note: returndata data getting web service responsedata (it of type nsdata).
or
nsstring * description=[yourdictionary objectforkey:@"desc1"]; self.textview.text= description;
Comments
Post a Comment