官方的 ivar_getTypeEncoding 返回說明


 // 官方的 ivar_getTypeEncoding 返回說明.

 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)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM