Hey guys,
I'm currently learning Objective C and have a question about asterisk placement (I generally understand pointers using asterisks to declare them). In the book I'm reading (iPhone Development for Dummies) the asterisk is placed differently a few times, and I'm not sure why. Could someone tell me why it's in different locations in the following examples?
NSString* blah
(NSString *) blah
IBOutlet UITextfield *textField
And also why there is no asterisk in the following statement?
CGRect rect = self.view.frame;
Thanks for reading!
I'm currently learning Objective C and have a question about asterisk placement (I generally understand pointers using asterisks to declare them). In the book I'm reading (iPhone Development for Dummies) the asterisk is placed differently a few times, and I'm not sure why. Could someone tell me why it's in different locations in the following examples?
NSString* blah
(NSString *) blah
IBOutlet UITextfield *textField
And also why there is no asterisk in the following statement?
CGRect rect = self.view.frame;
Thanks for reading!