开发者

Accessing a textfield as a subview of UITableCell which is part of a viewcontroller

i have a viewcontroller which has a table view. this tableView has a custom tableview cell which has a UITextField. i would like to manipulate the UITextField from within t开发者_开发问答he viecontroller. how would i do that?

also, another question. what does it mean when using the following syntax

id<SomeDelegate> name;?

Thanks!!


If your view controller is a sub class of UITableViewController, you can do this

UITableViewCell *cell = [self.tableView cellAtIndexPath:(pass indexpath)];

and then manipulate the cell

If it is a custom cell

You can create member variables for

UITextField *mytextfield

at class level and store their references while constructing the cell, to manipulate them later

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜