0

I tested some own design patterns but not satisfied because a bit complex compared to the task to achieve..

I have a playground, using pure C++ stuff without UI. At the bottom, I'd like to have only a basic button on which the user can click to show a menu (basically a view from a .xib)

I tried to do that with two view, one "calling" show/hide methods of the other... A mess, using tagged instances etc.

How would you achieve that without a toolbar which would take too much space on the screen ?

Many thanks for your advices and experiences.

4

1 回答 1

0

如果我正确理解您的问题,您可以阅读以下内容: Presting View Controllers from Other View Controllers

我建议您为应用程序中的每个视图使用一个视图控制器。因此,话虽如此,您制作了一个视图控制器和一个包含按钮的视图(以编程方式或界面生成器),然后单击时您将使用我链接的技术来呈现弹出框/模态视图控制器的视图。

我认为 Apple 的文档很好,但我也可以提供一些教程:

于 2012-04-05T19:16:55.097 回答