[TIMOB-10536] iOS: Deprecate updateLayout, startLayout, finishLayout
| GitHub Issue | n/a |
|---|---|
| Type | Sub-task |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-08-24T17:52:31.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | Sprint 2012-17 API, Release 3.0.0 |
| Components | iOS |
| Labels | api |
| Reporter | Ping Wang |
| Assignee | Sabil Rahim |
| Created | 2012-08-21T16:22:41.000+0000 |
| Updated | 2017-03-07T18:54:47.000+0000 |
PR pending [2810](https://github.com/appcelerator/titanium_mobile/pull/2810)
Testing Instruction.
1. You should see startlayout , finishlayout and updateLayout deprecationTitanium.UI.setBackgroundColor('#000'); var win = Titanium.UI.createWindow({ title:'Tab 1', }); var view = Ti.UI.createView({ top:10, width: 200, height: 300, backgroundColor:'blue', }); win.add(view); var button= Ti.UI.createButton({ title:'startLayout/finishLayout', width:Ti.UI.SIZE, height:Ti.UI.SIZE, bottom: 50 }); win.add(button); button.addEventListener('click',function(){ view.startLayout(); view.top = 50; view.backgroundColor = 'red'; view.finishLayout(); }); var button1= Ti.UI.createButton({ title:'updateLayout', width:Ti.UI.SIZE, height:Ti.UI.SIZE, bottom: 150 }); win.add(button1); button1.addEventListener('click',function(){ view.updateLayout({top:150, left:50, backgroundColor:'yellow'}); }); win.open();[DEBUG]warning when click the appropriate buttonClosing ticket due to time passed.