Skip to content

Commit

Permalink
Merge pull request #7627 from AngelkPetkov/TIMOB-20196_5_2_X
Browse files Browse the repository at this point in the history
[TIMOB-20196](5_2_X) iOS: ScrollableView is not possible to change views
  • Loading branch information
pec1985 committed Jan 11, 2016
2 parents 0ee5551 + 113b364 commit ceac20a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions iphone/Classes/TiUIScrollableViewProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -94,15 +94,14 @@ -(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)
{
[[self view] addSubview:[proxy view]];
}
#endif
[self unlockViews];
[self replaceValue:args forKey:@"views" notification:YES];
}

-(void)addView:(id)args
Expand Down

0 comments on commit ceac20a

Please sign in to comment.