开发者

Change UIViewController title from UITableViewCell

开发者 https://www.devze.com 2023-02-27 02:09 出处:网络
I have a custom UITableViewCell with a UITextField and a method that is being called when the user changes the text in the textField. How do I change the title of the ViewController when the tex开发者

I have a custom UITableViewCell with a UITextField and a method that is being called when the user changes the text in the textField. How do I change the title of the ViewController when the tex开发者_如何学JAVAt in the textField is changed?


You have to create an outlet for your textField and then you can just set your ViewControllers title property to be your textField's text. Something like the following should do the trick:

[self.delegate.title=textField.text];
0

精彩评论

暂无评论...
验证码 换一张
取 消