有一个简单的视图控制器管理主视图。
创建您的第一个视图控制器。
此视图从调用方视图控制器接收JSON数据文件。
This view receives the JSON data file from the caller view controller.
表1显示了每一个窗口的名称及其视图控制器类。
Table 1 shows each window's name and its view controller class.
视图控制器——这个部分用来控制着视图的显示。
View Controller - This is the view Controller for the view that it will hold.
在第2部分中,我们将开发和测试控制和视图组件。
In Part 2, we will develop and test the Control and View components.
控制表数据访问的一种常见方法是使用视图。
A common way to control access to table data is using views.
控制逻辑关注于在视图层和业务层之间移动信息。
Control logic is concerned with moving information between the view and business layers.
中断点视图是控制中断点的中心位置。
The breakpoints view is the central location for controlling breakpoints.
在许多情况下,ASP提供了所有应用程序的逻辑,包括视图、控制和业务逻辑。
In many cases, ASPs provide all application logic, including view, control and business logic.
DPTK设计为使用模型-视图-控制器模式。
视图访问由视图属性控制。
使用视图来控制数据访问。
action方法然后调用控制器的视图方法创建视图。
The action method then calls the controller's view method to create the view.
创建新的视图和控制器,请输入清单5所示的代码。
To create the new view and controller, type the code in Listing 5.
我们需要使用这些知识为应用程序创建更加个性化的控制器和视图。
We need this knowledge to create more customized controllers and views for your application.
视图和控制器对象都依赖于模型。
现在检查工具中的控制台视图。
在控制台视图中会显示其输出结果。
控制器还可以告诉视图更新自身,并传回更新后的值。
The controller can also tell the view to update itself and pass back updated values.
控制器和视图是完全自动基于模型的。
The controller and view are fully automated based on the model.
接下来,创建咖啡机的视图(V)和控制器(C)。
Next, the coffee machine's view (v) and controller (c) are created.
记住,控制器的职责是为视图准备模型对象。
Remember the job of the controller is to prepare the model for the view..
不想让视图与控制器混在一起?
控制器的目的是为视图准备模型对象。
The goal of the controller is to prepare the model for the view.
“模型-视图-控制器”(MVC)就是用来帮助您控制变化的一种设计模式。
Model-View-Controller (MVC) is a design pattern put together to help control change.
接下来,创建一个默认的控制器和视图。
通过这种分离方式,多个视图以及控制器就可以同时与一个模型一起工作了。
Because of this separation, multiple views and controllers can work with the same model.
视图并不直接与控制器交互。
当脚本被执行时,消息将被写入控制台视图。
As the script is executed, messages will be written to the Console view.
应用推荐