Changes between Version 8 and Version 9 of IOS3/UI


Ignore:
Timestamp:
08/01/2011 09:53:57 AM (15 years ago)
Author:
liaojiaohe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IOS3/UI

    v8 v9  
    1515== '''模板的例子,PCUIViewController复制View的生成''' == 
    1616 
     17模板先支持一层结构,object代表组件 
     18组件可以设置属性,现在支持string,int,bool和property属性 
     19key表示组件中对应的属性名字 
    1720 
    1821<?xml version="1.0" encoding="UTF-8"?> 
    1922<archive type="cn.pconline.IOSTemplate.xml" version="0.10">[[BR]] 
    20  
    2123    <layout>[[BR]] 
    22  
    23         <object class="PCButtonView" id="PCButtonView1">[[BR]] 
    24  
    25             <string key="setFrame:">{{0, 420}, {320, 50}}</string>[[BR]] 
    26  
    27             <int key="setButtonNum:">2</int>[[BR]] 
    28  
    29             <string key="setButtonIds:">PCButton1,PCButton2</string>[[BR]] 
    30  
    31             <string key="setButtonTitles:">栏目1,栏目2</string>[[BR]] 
    32  
    33             <string key="setTargetUrl:">http://mrobot.pcauto.com.cn/v2/cms/channels/1,http://mrobot.pcauto.com.cn/v2/cms/channels/2</string>[[BR]] 
    34  
     24        <object class="PCTabView" id="PCTabView1">[[BR]] 
     25            <string key="Frame">{{0, 420}, {320, 50}}</string>[[BR]] 
     26           <bool key="BackButton">YES</string>[[BR]] 
     27           <int  key="ButtonNum">4</int>[[BR]] 
     28           <property key="Config">[[BR]] 
     29                url=MainFrame2[[BR]] 
     30                bgPhoto=pcauto_tabbar_information.png[[BR]] 
     31           </property>[[BR]] 
    3532        </object>[[BR]] 
    36  
    37         <object class="PCTableView" id="PCTableView1">[[BR]] 
    38  
    39             <string key="setFrame:">{{0, 50}, {320, 350}}</string>[[BR]] 
    40  
    41             <string key="setUrl:">http://mrobot.pcauto.com.cn/v2/cms/channels/1</string>[[BR]] 
    42  
     33       <object class="PCTableView" id="PCTableView1">[[BR]] 
     34            <string key="Frame">{{0, 50}, {320, 350}}</string>[[BR]] 
     35            <string key="Url">http://mrobot.pcauto.com.cn/v2/cms/channels/1</string>[[BR]] 
    4336        </object>[[BR]] 
    44  
    4537    </layout>[[BR]] 
    46  
    4738</archive>[[BR]] 
    4839