PageViewController with a TableViewController

Hi everyone,

I’ve got the following situation. I have a viewController with labels and a tableViewController, containing questions and answers. Answers have a score. So far, I went to the next question after choosing an answer at a certain question.

Now I like to implement a pageViewController so I can swipe thru the questions, and I want to keep track of the score after chosing an answer.

I have no clue how to fix this :slightly_smiling_face:

Please guide me :slight_smile:

Hi Anton,

You can absolutely keep a label, linked to a variable (stored on your pageViewController) added on your pageViewController’s view which remain visible no matter the controller presented. You can also add a protocol on your viewControllers, implement it on your pageCollectionView to increment your score for each answer given.

I hope this answer to your question.

This topic was automatically closed after 166 days. New replies are no longer allowed.