将节和单元格添加到UITableView Programmaticallly [英] Add Section and Cell to a UITableView Programmaticallly

查看:120
本文介绍了将节和单元格添加到UITableView Programmaticallly的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是目标c和xcode的新手。



我想要当用户点击按钮时向tableView添加更多部分,并在用户点击另一个按钮时向该部分添加行。



当用户点击任何按钮时单元格应该显示一个包含标签和按钮的新视图,标签显示点击的行的文本,然后点击按钮关闭视图以再次显示tableView。



有谁知道如何做到这一点?

Hi,

I'm new with objective c and xcode.

I want to add more sections to the tableView when the user clicks on a button and add rows to that sections when the user clicks on another button.

and when the user taps on any cell a new view should be presented that will contain label and a button, label shows the tapped row's text and tap on button dismiss the view to show the tableView again.

do anyone knows how to accomplish this?

推荐答案

这篇关于将节和单元格添加到UITableView Programmaticallly的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆