From 113b364a2062adfa85c36978717e5df4761f5e1b Mon Sep 17 00:00:00 2001 From: AngelkPetkov Date: Mon, 11 Jan 2016 09:39:56 -0800 Subject: [PATCH] [TIMOB-20196](5_2_X) iOS: ScrollableView is not possible to change views [JIRA](https://github.com/appcelerator/titanium_mobile/pull/7617) --- iphone/Classes/TiUIScrollableViewProxy.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iphone/Classes/TiUIScrollableViewProxy.m b/iphone/Classes/TiUIScrollableViewProxy.m index 18bc015a972..e1960bc52e1 100644 --- a/iphone/Classes/TiUIScrollableViewProxy.m +++ b/iphone/Classes/TiUIScrollableViewProxy.m @@ -71,7 +71,7 @@ -(NSUInteger)viewCount -(void)setViews:(id)args { -#ifndef TI_USE_AUTOLAYOUT +#ifdef TI_USE_AUTOLAYOUT ENSURE_UI_THREAD(setViews, args) #endif ENSURE_ARRAY(args); @@ -94,8 +94,6 @@ -(void)setViews:(id)args [viewProxies autorelease]; viewProxies = [args mutableCopy]; - [self replaceValue:args forKey:@"views" notification:NO]; - #ifdef TI_USE_AUTOLAYOUT for (TiViewProxy* proxy in viewProxies) { @@ -103,6 +101,7 @@ -(void)setViews:(id)args } #endif [self unlockViews]; + [self replaceValue:args forKey:@"views" notification:YES]; } -(void)addView:(id)args