Hi everyone, I'm glad to have found a forum where I can get together with other iOS enthusiasts!
I've been learning for a little over a month now, but I have a couple syntax questions I'm hoping to get a little clarification on, since i can't seem to find an explanation on when to use a couple things and when not to, and I want to really understand.
1. In the partial example -(NSInteger)tableView
UITableView *)tableView
What specifically does that asterisk represent and when is it used? I am guessing perhaps with certain datatypes and not with others?
2. I am working with a tutorial on navigation-based table views. And the example uses an array for a datasource. I am noticing that references in this example are prefixing the array references with self., as in self.myArray whereas other variables I've worked with before have not. I understand, I believe, the self. prefix, but I am unsure - when is it appropriate to use this prefix with a variable and when not?
Anyway, I appreciate any input (and sorry for the newbie questiand right off the bat) and I'm glad to have joined the group!
I've been learning for a little over a month now, but I have a couple syntax questions I'm hoping to get a little clarification on, since i can't seem to find an explanation on when to use a couple things and when not to, and I want to really understand.
1. In the partial example -(NSInteger)tableView
What specifically does that asterisk represent and when is it used? I am guessing perhaps with certain datatypes and not with others?
2. I am working with a tutorial on navigation-based table views. And the example uses an array for a datasource. I am noticing that references in this example are prefixing the array references with self., as in self.myArray whereas other variables I've worked with before have not. I understand, I believe, the self. prefix, but I am unsure - when is it appropriate to use this prefix with a variable and when not?
Anyway, I appreciate any input (and sorry for the newbie questiand right off the bat) and I'm glad to have joined the group!