2014年4月26日土曜日

Xcode : ワーニング Writable atomic property 'page' cannot pair a synthesized getter with a user defined setter

ワーニング

Format string is not a string literal (potentially insecure)

がでる場合、NSLogなどでフォーマットを指定していない。

NSString *str = [NSString stringWithFormat:@"%.02f", width];
NSLog(str);

NSString *str = [NSString stringWithFormat:@"%.02f", width];
NSLog(@"%@", str);

0 件のコメント:

コメントを投稿