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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

c# - How to execute a particular part of code asynchronously in a class -

c# - Asterisk click to call -