开发者

Change UIViewController title from UITableViewCell

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜