Search code examples
ios6automatic-ref-countinguiprogressview

How to implement UIProgressView to display the progress of a method of another class?


I've been reading about delegate pattern. But answers and examples for this simple work are explained too bad and report many erros, expecially 'cause they are olds and I want to develop it in iOS6 with ARC and Storyboard.

(a class "myClass" that contain my method "myMethod")

(a UIViewController "myVC" with UIProgressView "myProgressView" where i call : [myClass myMethod] in a background thread and I can show progress in main thread.

Can anyone explains in a simply code what i mean?


Solution

  • Google on iOS delegate tutorial and i'm sure it'll come up with something