您的位置:首页 > 移动开发 > Objective-C

Objective-C type encodings

2015-09-23 21:15 295 查看
Table 6-1 Objective-C type encodings
Code
Meaning
c
A char
i
An int
s
A short
l
A long
l is treated as a 32-bit quantity on 64-bit programs.
q
A long long
C
An unsigned char
I
An unsigned int
S
An unsigned short
L
An unsigned long
Q
An unsigned long long
f
A float
d
A double
B
A C++ bool or a C99
_Bool
v
A void
*
A character string (char *)
@
An object (whether statically typed or typed
id)
#
A class object (Class)
:
A method selector (SEL)
[array type]
An array
{name=type...}
A structure
(name=type...)
A union
bnum
A bit field of num bits
^type
A pointer to type
?
An unknown type (among other things, this code is used for function pointers)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: