Pages

Tuesday, February 5, 2013

Counter across 3 View Controllers?

Need a way to make a counter work across at least 3 View Controllers.

One view controller has an -(IBAction)plus1 button and an -(IBAction)plus 0 button.

 

Those buttons segue to the next view controller, that has an -(IBAction)plus2 button and an -(IBAction)plus 0 button.... etc.

 

Each segues and adds all button clicks through to the last view controller with an IBOutlet UILabel *count text label.

 

I got this to work on one view controller. Can't figure out how to make it work across 3VCs. Someone suggested Singleton?

Thanks for any thoughts.

 

Thanks JDL55


View the original article here

0 comments:

Post a Comment