Everytime I print percent1, it says 0.0. any thoughts?
percent1 = 100 * Double(categ1 / any1)
percent2 = 100 * Double(categ2 / any2)
percent3 = 100 * Double(categ3 / any3)
percent4 = 100 * Double(categ4 / any4)
There is a fantastical thing named NSUserDefaults. It is a dictionary that can be accessed at an time within the app. To set an object:
NSUserDefaults.standardUserDefaults().setObject(YourObject, forKey: "key")
Then to access it somewhere else:
Keep in mind that you would have to cast the object in the second snippet, because the returned object is of type AnyObject.
Hope this helps!