ios - Check if one method has been run in a different method -
i'm writing code in xcode iphone app , want able detect if method has been run (i.e. button pressed, causing method run) in method (i want use if statement if button pressed this, if wasn't else).
there no has_method_been_run() function can check see if state changed.
for example method button_clicked() calls method change_font_to_blue(). in case can check see if font blue , there method called.
that's basic example of course check number of variables / state of ui see if changed.
or can add boolean object , set true when execute you're method you're watching.
Comments
Post a Comment