开发者

Shared or sub UIViewController concept in iPhone programming

开发者 https://www.devze.com 2022-12-12 16:35 出处:网络
I have (at least) two views which have the same table view but other stuff around, depending on how the user navigated in the app. Ideally, I would like to have a generic table view and controller whi

I have (at least) two views which have the same table view but other stuff around, depending on how the user navigated in the app. Ideally, I would like to have a generic table view and controller which other views an开发者_运维知识库d controllers could, for lack of a better term, "include". This would then allow me to encapsulate all the table view and controller logic within one file, so I don't have to duplicate code and logic between different views. Hopefully this question makes sense. How do achieve this?

0

精彩评论

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