用于解析 API 查询的 TableViewController 或带有表视图的视图控制器 [英] TableViewController or View Controller with Table View for Parse API Query

查看:31
本文介绍了用于解析 API 查询的 TableViewController 或带有表视图的视图控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在列表下显示一个名称列表和一个按钮,但不知道该怎么做.创建一个空白的视图控制器,然后将带有表格视图单元格和按钮的表格视图拖动到它是否正确?该按钮将导航到添加名称功能.或者是否可以直接使用表视图控制器?

I wanna display a name list and a button under the list, but not sure how should i do it. Is it correct to create a blank View Controller, then drag a table view with table view cell and a button to it? The button will navigate to the add names function. Or is it possible directly with a table view controller?

如果我用空白视图控制器来做,我必须为拖动的表格视图和单元格创建一个类,或者我可以在普通视图控制器的类中编辑它们?我想将它与 Parse.com 一起使用,它是 PFQueryTableViewController.

If i do it with blank view controllers ,i must make a class for the dragged table view and cell or i can edit them inside the class of a normal view controller? I wanna use it with Parse.com and it's PFQueryTableViewController.

这是现在的样子:

推荐答案

您不能使用 PFQueryTableViewController 作为 UIViewController 中的子视图,但您可以通过使用视图控制器包含.

You cannot use PFQueryTableViewController as a subview in a UIViewController, but you can probably get there by using viewcontroller containment.

有关更多信息,请参阅此 Q:如何我可以使用 PFQueryViewController 作为 UITableViewController 的子视图吗?

See this Q for some more info: How can I use PFQueryViewController as a subview of UITableViewController?

这篇关于用于解析 API 查询的 TableViewController 或带有表视图的视图控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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