objective c - Encoded string to Normal string in ios? -


when take product list itunes connect in in app purchase app using following method.

   - (void)productsrequest:(skproductsrequest *)request didreceiveresponse:(skproductsresponse *)response {      nslog(@"loaded list of products...");     _productsrequest = nil;      nsarray * skproducts = response.products;     nslog(@"naveen =0%@",skproducts[0]);     (skproduct * skproduct in skproducts) {         nslog(@"found product: %@ %@ %0.2f",               skproduct.productidentifier,               skproduct.localizedtitle,               skproduct.price.floatvalue);     }      _completionhandler(yes, skproducts);     _completionhandler = nil;  } 

in methode trying print first product using nslog(@"naveen =0%@",skproducts[0]);

my out nslog following

naveen =0 skproduct: 0x7343d50

please help

navi try .check code between comment lines

   - (void)productsrequest:(skproductsrequest *)request didreceiveresponse:(skproductsresponse *)response {      nslog(@"loaded list of products...");     _productsrequest = nil;      nsarray * skproducts = response.products;    ////////////////////////////////////////  edit //////////////////////////////     skproduct * product = (skproduct *)skproducts[0];       nslog(@"naveen =0%@",product.localizedtitle);    ////////////////////////////////////////////////////////////////////////////     (skproduct * skproduct in skproducts) {         nslog(@"found product: %@ %@ %0.2f",               skproduct.productidentifier,               skproduct.localizedtitle,               skproduct.price.floatvalue);     }      _completionhandler(yes, skproducts);     _completionhandler = nil;  } 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -