flashisobar's Blog

Blog Navigation

  • Home
  • Archives
  • RSS
  • Search

difference between id and void * in Objective-C

簡單來說
id is a pointer to an objective C object.
void * is a pointer to anything.

Symbol Value
NULL (void *)0
nil (id)0
Nil (Class)0
NSNull [NSNull null]

參考資料

Tweet
October 15, 2013
  • iOS

© 2013 flashisobar. Powered by Logdown. Theme Frankies by Zhusee.