The blog has been applying for some time and it feels like it should write something up. This article is mainly about the simple usage of some xib, hoping to help the novice who just used xib.
What is Xib? What can xib do?
A file used to describe a software interface.
Without xib, all interfaces need to be created manually by code.
With Xib, you can visualize the development in Xib, and then load the Xib file, the system automatically generates the corresponding code to create the interface.
PHP development framework YiiFramework tutorial (16) UI component StarRating example
CStarRating is mainly used for scoring. a group of stars (five stars) are displayed for scoring.
The basic usage is as follows:
BeginWidget ('cactiveform');?>
Widget ('cstarrating', array ('Model' => $ model,'Attribute' => 'rating ','Name' => 'rating ','Value' => 3,);?>
EndWidget ();?>
In th
PHP development framework YiiFramework tutorial (12) UI component ClipWidget example
The CClipWidget provides a function similar to the recording "macro". the content defined between the init and run of the CClipWidget can be stored in the Clip variable of the Controller, and then played back to any other location.
CClipWidget encapsulates the beginClip and endClip of CBaseController. The basic usage of beg
The CClipWidget provides a function similar to the recording "macro". the content defined between the init and run of the CClipWidget can be stored in the Clip variable of the Controller, and then played back to any other location. The CClipWidget provides a function similar to the recording "macro". the content defined between the init and run of the CClipWidget can be stored in the Clip variable of the Controller, and then played back to any other location.
CClipWidget encapsulates the beginC
CTreeView is used to display Data with hierarchies, and TreeView is used to set Data attributes. Data is an array with the following structure: CTreeView is used to display Data with hierarchies, and TreeView is used to set Data attributes. Data is an array with the following structure:
Ext: string, the text of the tree node.
Expanded: boolean (optional) indicates whether to expand the node.
Id: string. (optional) ID of the node.
HasChildren: boolean. optional. the default value is False. if it
Cstarrating is mainly used for scoring, showing a group of stars (5) for scoring.
Basic usage is as follows
Beginwidget (' Cactiveform ');? >widget (' Cstarrating ', Array (' model ' = = $model, ' attribute ' = ' rating ', ' name ' = > ' rating ', ' value ' =>3,));? >endwidget ();?>
The value of the star can be accessed by $_post[' rating ' in the controller, for example:
Public Function Actionindex () {$model =new datamodel (); $model->rating=3;
and layout in the Yii Framework similar to Java Swing allow nesting, which is achieved through ccontentdecorator, but does not require direct use of ccontentdecorator in code, but rather in defining layout using
$this->begincontent (' Path/to/view '),//... content to be decorated$this->endcontent ();
Where view is a different layout.
This example defines four layout, one nested one:
main.php
The results appear as follows:
These are the contents of
Instance of Address Book key knowledge technology point accumulationEffect Show:Knowledge point 1 about the login button whether or not the text content is clickableTo listen to the contents of the text box, when the account number and password have value, the login button can be clicked.第一种思路: 用代理的方式去监听文本框的内容改变 在这里前提是:这个控件有代理相关的协议,以及这个控件具有delegate属性,比如UITableView有数据源协议和代理协议,当然也会有数据源属性和delegate代理属性。 所以使用代理,就是使用这个控件代理协议中的响应控件的方法。比如UITableView中代理协议就有响应选中第几行能获取行数的方法。And then here t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.