Changes between Version 10 and Version 11 of IOS3/UI


Ignore:
Timestamp:
08/12/2011 02:50:29 PM (15 years ago)
Author:
liuxin2
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IOS3/UI

    v10 v11  
    4747文章列表:有更新,更多,异步下载图片的功能[[BR]] 
    4848文章内容查看:能响应pcaction,pchttp协议,显示评论数,页码,分享和调用计数器功能[[BR]] 
     49 
     50== JSON 模板 == 
     51 
     52开发过程中遇到部分XML解析功能不能正常使用,现尝试使用JSON完成当前版本 
     53的部分模板,示例如下: 
     54 
     55{{{ 
     56{ 
     57    "class":"Category", 
     58    "title bar":{"class":"CategoryBar", 
     59                "FunctionButton":{"class":"ContextMenu" 
     60                } 
     61               }, 
     62    "tool bar":{"class":"ChannelBar", 
     63               "default index":1 
     64               }, 
     65    "content view":{"class":"ChannelView", 
     66                    "cell template":{"class":"information cell", 
     67                                     "image":{"frame":[5, 5, 80, 60]}, 
     68                                     "title":{"frame":[90, 1, 230, 20]}, 
     69                                     "publish date":{"frame":[90, 21, 115, 10]}, 
     70                                     "summary":{"frame":[90, 31, 230, 35]} 
     71                                    } 
     72                   }, 
     73    "function bar":{"class":"tab bar", 
     74                    "items":[{"title":"资讯", 
     75                              "uri":"category://information" 
     76                             }, 
     77                             {"title":"产品库", 
     78                              "uri":"category://production" 
     79                             }, 
     80                             {"title":"论坛", 
     81                              "uri":"category://bbs" 
     82                             }, 
     83                             {"title":"更多" 
     84                              "uri":"category://more"} 
     85                            ] 
     86                   } 
     87} 
     88}}}