Keeping score in cocoa -


i have app tests students' knowledge. after each unit, transitions overall level view controller keep score of how many units complete. best way of doing this? present results in table view if possible. appreciated.

your question, commenters have said, rather vague, offer general advice. in class (or classes) test students knowledge, need have method passes name of unit, , presumably score, overall level view controller. there bunch of ways done. 1 way post notification nsnotificationcenter method postnotificationname:object:userinfo:. userinfo include name of unit, score, , other info want. overall level controller register observer of notification. same notification sent other classes, if have different class each unit. controller take info in notification , add array data source table view.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -