I get that asterix is for pointers, and I understand about pointers now. But I’m still not sure why when declaring a variable in a header I need to use an asterix, for example:
UINavigationController * navController;
why isn’t that:
UINavigationController navController;
Thanks
Because in your example:
UINavigationController * navController;
navController is a pointer to object of UINavigationController type;
and you always work with pointers using Objective-C objects, when you create new instance with:
it returns pointer to newly created object of type MyClass i.e (MyClass *)