Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10536] iOS: Deprecate updateLayout, startLayout, finishLayout

GitHub Issuen/a
TypeSub-task
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-08-24T17:52:31.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sSprint 2012-17 API, Release 3.0.0
ComponentsiOS
Labelsapi
ReporterPing Wang
AssigneeSabil Rahim
Created2012-08-21T16:22:41.000+0000
Updated2017-03-07T18:54:47.000+0000

Description

Comments

  1. Sabil Rahim 2012-08-22

    PR pending [2810](https://github.com/appcelerator/titanium_mobile/pull/2810)
  2. Sabil Rahim 2012-08-24

    Testing Instruction.

       Titanium.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();
       
    1. You should see startlayout , finishlayout and updateLayout deprecation [DEBUG] warning when click the appropriate button
  3. Lee Morris 2017-03-07

    Closing ticket due to time passed.

JSON Source