[Solved] Change button title [closed]


Try like this,

- (IBAction)buttonAction:(UIButton *)btn {

    yourNextVCobject.buttonTitle = [NSString stringWithFormat:@"%@",btn.titleLabel.text];


    // then push to ur vc.
}

In your Next VC,

In .h

@property (nonatomic, retain) NSString *buttonTitle;

In .m

[yourAnotherBtn setTitle:self.buttonTitle forState:UIControlStateNormal];

6

solved Change button title [closed]