我对Objective-C并没有真正的经验。这是我遇到的一个问题。
当我想为类的特定实例定义一个指针时,我可以
NSString* foo;
但是有可能为这样的类的实例定义指针吗?
x* hotdog; //"x" is the type of pointer hotdog is
hotdog = NSString; //now points to NSString
hotdog* foo; //an instance of NSString is created
hotdog = UIView; //now points to UIView
hotdog* foo; //an instance of UIView is created
如何定义类指针hotdog
?(我应该用什么代替x
?)