Upvote:1

Aprove answer
2) How can I exit from application when pressed exit button ?

Upvote:1

 for (UIView *common in self.view.subviews) {
        if ([common isKindOfClass:[UITextField class]] || [common isKindOfClass:[UILabel class]]) {
            commonTextField.text = @"";
        }
    }

More Answer related to the Same Query

Upvote:1

-(void)fnClear{
tf1.text = @"";
..
lbl1.text = @"";
..
}

Upvote:1

-(IBAction)Clear
{
   [email protected]"";
   [email protected]""
}

Credit Goes to: stackoverflow.com

Related question with same questions but different answers