포맷 문자 NSLog 등 token Object C

SymbolDisplays
%@id
%d, %D, %ilong
%u, %Uunsigned long
%hishort
%huunsigned short
%qilong long
%quunsigned long long
%x, %Xunsigned long printed as hexidecimal
%o, %Ounsigned long printed as octal
%f, %e, %E, %g, %Gdouble
%cunsigned char as ASCII character
%schar * (a null-terminated C string of ASCII characters)
%Sunichar * (a null-terminated C string of Unicode characters)
%pvoid * (an address printed in hexidecimal with a leading 0x
% %A % character
  
@"Any text you want"prints some message you define


펌 : http://computermusicresource.com/xcode/cocoasyntax/nslog.html
참고 : http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265

Format specifiers

덧글

댓글 입력 영역