使用来自另一个视图控制器的原型单元格 [英] Use Prototype Cell From Another View Controller

查看:19
本文介绍了使用来自另一个视图控制器的原型单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在几个故事板场景中使用相同的表格视图单元格布局.我可以在其中一个场景中设计原型单元并以某种方式在另一个表视图控制器中访问它(即 dequeueReusableCellWithIdentifier)吗?

I want to use the same table view cell layout in several storyboard scenes. Can I design the prototype cell in one of the scenes and somehow access it (i.e. dequeueReusableCellWithIdentifier) in another table view controller?

推荐答案

这是不可能的,但是您可以将原型单元格从源表视图复制到故事板中的目标单元格,并且您可以轻松地重用它.

This is not possible, but you can copy the prototype cell from source table view to destination one inside storyboard and you can easily reuse it.

这篇关于使用来自另一个视图控制器的原型单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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