I went through the tutorial once while reading the book and then tried reprogramming the app on my own without assistance (did most of it, but had to look up a few pieces). My question was in the book the showAnswer method is as below.
//Find out answer to the current question using currentQuestionIndex
NSString *answer = self.answers[self.currentQuestionIndex];
//Show the answer in the answer label
self.answerLabel.text = answer;
When I did the solution myself I used the following:
//Will this work?
//change the text of the answerLabel to be the same index as the answers array
self.answerLabel.text = self.answers[self.currentQuestionIndex];
What is the advantage of using the pointer (as in the book) versus the way that I wrote it when I redid the exercise? Both get the the correct answer but I know that one of the big advantages in C is pointers but don’t know why it would be.
One more question, does anyone have a list of simple shortcuts for a noob to help with their typing?