Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-20196] iOS: ScrollableView is not possible to change views #7617

Merged
merged 2 commits into from
Jan 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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