Adding New Emoji | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5429927-beginning-collection-views/lessons/18

Hi Pasan! Great course so far! I have a question about the logic in prepareForSegue. Would you have anything against using the value of the cell’s label to pass to the detail controller? i.e. emojiDetailController.emoji = emojiCell.emojiLabel.text

1 Like

None at all, that’s a good suggestion. My preference would be to only get data from the data model that way you have “one source of truth” but in this case I see no issues