FIXED: corrected replaceSubview parameters order

This commit is contained in:
Didier Korthoudt committed 2016-01-20 22:08:10 +01:00
1 parent c8ce2343d7
commit 4482089712
1 file changed
+1 -1
+1 -1
View File
@@ -619,7 +619,7 @@ var CPBoxTypeKey = @"CPBoxTypeKey",
if (_boxType != CPBoxSeparator)
{
_contentView = [aCoder decodeObjectForKey:CPBoxContentView] || [[CPView alloc] initWithFrame:[self bounds]];
[self replaceSubview:_contentView with:[self subviews][0]];
[self replaceSubview:[self subviews][0] with:_contentView];
}
[self setAutoresizesSubviews:YES];