Fixed: setupViewFlags was not called when creating a view from a xib

Previously, the method setupViewFlags was not called when creating from a xib. This issue was introduced by the commit #448c2a2

Fixed #2380
This commit is contained in:
Alexandre Wilhelm
2015-09-28 11:37:37 -07:00
parent 5db9f28b33
commit 36cdcbc3c1
+1
View File
@@ -3720,6 +3720,7 @@ var CPViewAutoresizingMaskKey = @"CPViewAutoresizingMask",
_opacity = 1.0;
[self setBackgroundColor:[aCoder decodeObjectForKey:CPViewBackgroundColorKey]];
[self _setupViewFlags];
_theme = [CPTheme defaultTheme];
_themeClass = [aCoder decodeObjectForKey:CPViewThemeClassKey];