Sandy_ios
Sandy_ios

Reputation: 667

Getting Warning like "Format not a string Literal and no format arguments"

Am getting the above warning at NSAssert(bgTask == UIBackgroundTaskInvalid,nil) line. Am working on Xcode4.5.1 with IOS SDK6.0. If any one know the reason, please let me know.

Upvotes: 0

Views: 58

Answers (1)

Michael Dautermann
Michael Dautermann

Reputation: 89509

"NSAssert" is expecting a NSLog / printf style format string as it's second argument. If you provide one (instead of "nil"), that warning will go away.

Upvotes: 1

Related Questions