objective c - change firstviewcontroller button title from different view controller -



objective c - change firstviewcontroller button title from different view controller -

when user select pick location button segue triggered next uiviewcontroller tableview in tableview if user select didselectrow, title of select pick locationbutton title had alter user selected address

please help me how overcome

in next view controller, add together property:

@property (strong, nonatomic) uiviewcontroller *formerviewcontroller;

and in first view controller, add together this:

- (void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender { yournextviewcontroller *nextviewcontroller = segue.destinationviewcontroller; nextviewcontroller.formerviewcontroller = self; }

so can phone call first view controller in next view controller through formerviewcontroller property.

and of course, there much more complicated ways, such kvo , notificationcenter.

objective-c uitableview uibutton ios7.1

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -