I've tried figuring this out on my own, and am completely clueless as to how to accomplish it. Essentially what I'm trying to do is this:
The Overall Goal: Use the UIProgressView
as a "different type" of indicator than what it's meant for.
Details: When a user 'completes' a 'goal' (by pressing a UIButton named "complete" in a separate UIViewController
, let's call this one "View Controller 1") I'd like it to update a UIProgressView in a second UIViewController
(call this one "View Controller 2"). There are several UIProgressViews
in View Controller 2, each representing the # of goals in a category 'completed'. So I'd like to have a void method in View Controller
2 like this:
(void)progressMade:(NSString *)category
{
categoryOneProgressView.progress += 1/8 ;
//this would be called from View Controller 1, after the "complete" button was pressed.
}
Thank you in advance for your help.