Are you following the tutorial exactly? Please provide a link to the tutorial.
The problem I see is that your table view is configured for dynamic prototypes. Normally the storyboard would have a single prototype cell representing a To Do Item. The table view controller would programmatically set the cell's label text for each To Do Item in cellForRowAtIndexPath: "Finish Geography," "Study for Exams," "Sum Up Weather."
Xcode throws the multiple prototype cells have the same identifier error because your storyboard has three To Do Item prototype cells, when it should have only one.
If you want to add each To Do Item to the storyboard, set the table view to use static cells instead of dynamic prototypes. This would not be the right solution for a real app because the To Do Items can change, so should be persisted in the model, not in the storyboard.
0 comments:
Post a Comment