Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Chapter 3 label text

I would like to clear or reset the label text, if the user hits the home button.

This should be done in AppDelegate.m - applicationWillResignActive

Please give me a hint, how i can access labelText.  


  • Found a (the) solution:
    - (void)applicationDidBecomeActive:(UIApplication *)application
    i add a call to
        [self.viewController resetLabel:@"DidBecomeActive"];

    where in ViewController.m i have created

    - (void) resetLabel :(NSString *)text {


       _statusLabel.text = text;


Sign In or Register to comment.