How to trigger a UIProgressView to a specific value?

Will it be in .h or .m and how to do it?

0
source share
3 answers

it will definitely be in the file .m.

Initialize your UIProgressView and then call setProgress:on it.

+3
source

As defined in the UIProgressViewdocumentation , UIProgressViewhas a property progress. Just set this when creating your view:

UIProgressView *view = [[UIProgressView alloc] initWithProgressViewStyle:whateverStyle];
view.progress = 0.75f;
// Do whatever you want with the view
// (and don't forget to -release it later)

will initialize UIProgressViewwith its run value set to 75%

+13
source

The .h- "header" file is usually located where the information about your class goes ... its structure is "what it does" and not "how it does it." As such, .m is probably the right place, but it will help you talk more about how the user interface is configured. Do you use the Builder interface or programmatically create a UIProgressView? Is the class a view, a view controller, an application delegate, or what?

0
source

All Articles