Titanium Mobile 2.0.1.GA发布 布局系统重大更新

移动开发
Titanium Mobile SDK进入2.0时代,并且支持XCode 4.3。

诸多更新如下:

  • Layout System Updates

布局系统重大更新:

  • 改进view大小自动处理,如 子容器大小超过父容器的部分会被自动剪切。
  • 布局批量更新,提高布局性能,如下面代码:
    1. // [旧版本] 改变top和left,发生两次布局 
    2. view.top = 50
    3. view.left = 50
    4.  
    5. // [2.0版本] 下面为批量更新布局,只发生一次布局 
    6. view.startLayout(); 
    7. view.top = 50
    8. view.left = 50
    9. view.finishLayout(); 
    10.  
    11. // [2.0版本] 同上 
    12. view.updateLayout({ 
    13.     top: 50, left: 50 
    14. }); 
  • 布局完成后,触发Post-layout事件
  • 新的布局参数优先策略 ,如 top left 优先于 center.x center.y
  • Support for Appcelerator Cloud Services (formerly CocoaFish)

云服务更新,具体内容参照官网

  • Mobile Web Platform Release Candidate

Mobile Web平台更新,具体内容参考官网

  • Android Geolocation Enhancements

加强Android平台Geolocation支持

  • Defined Module APIs for Android and iOS

增加Android和IOS平台Module API 文档说明

官方链接(需要梯子)

责任编辑:佚名 来源: 互联网
相关推荐

2012-08-20 10:43:52

Titanium SD

2015-10-20 09:25:41

数据库mysql

2012-02-28 10:02:26

Opera发布

2013-03-05 09:45:03

智能手机移动OSWindows Pho

2012-05-23 09:46:15

Titanium MoTitanium

2012-05-25 13:12:57

TitaniumMobile WebHTML5

2012-04-19 16:22:12

TitaniumTabGroup

2022-08-21 10:39:04

开源Consul

2012-04-19 16:55:48

Titanium视频jQuery Mobi

2012-02-09 16:45:41

2012-02-14 09:33:14

Titanium MoTitaniumUbuntu 10.0

2011-07-20 14:11:24

响应布局jQuery Mobi

2014-04-03 10:20:09

Build 2014Windows 8.1

2012-04-19 17:42:46

Titanium布局

2012-02-09 17:07:50

Titanium MoTitaniumWindows 7

2015-11-13 10:59:53

Threshold 2更新Windows 10

2015-11-11 16:23:28

Threshold 2更新Windows 10

2012-02-21 09:18:54

MySQL

2015-11-18 11:48:54

2022-01-21 09:18:49

Wine 7.0LinuxWindows
点赞
收藏

51CTO技术栈公众号