iphone - warning: format not a string literal and no format arguments -
when run below code
nslog([nsstring stringwithformat:@"response count %d",response.products.count]);
i warning message below
warning: format not string literal , no format arguments
what problem in syntax..
you don't need create autoreleased string, pass straight nslog
:
nslog(@"response count %d",response.products.count);
the reason why warning popping because didn't supply format string first argument nslog
.
Comments
Post a Comment