美文网首页IOSbug
UITableViewController使用问题

UITableViewController使用问题

作者: 司马捷 | 来源:发表于2016-06-24 14:59 被阅读97次

    UITableViewController 已经封装了当Cell中有UITextField.点击UITextField进行编辑的时候,会自动滚动,防止键盘遮挡.
    但是UItableViewController 中的tableView是Plain,如果我们需要一个Group类型的UItablview.还想要它封装的这种特性.
    可以使用

    self.tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, KSrceenWidth, KSrceenHeight-40) style:UITableViewStyleGrouped];
    

    对tableView进行替换.

    相关文章

      网友评论

        本文标题:UITableViewController使用问题

        本文链接:https://www.haomeiwen.com/subject/vdbodttx.html