mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-25 07:55:52 +00:00
nib2cib fix for multiple subviews in a Custom View
This commit is contained in:
1 parent
cb53db05dc
commit
f34265a864
1 file changed
+3
-1
@@ -73,7 +73,9 @@ var _CPCibCustomViewClassNameKey = @"_CPCibCustomViewClassNameKey";
|
||||
[view setBounds:[self bounds]];
|
||||
|
||||
// Since the object replacement logic hasn't had a chance to kick in yet, we need to do it manually:
|
||||
var subviews = [self subviews],
|
||||
|
||||
// we need to copy subviews since each time we add a subview to a different view its removed from the original subviews array
|
||||
var subviews = [[self subviews] copy],
|
||||
index = 0,
|
||||
count = subviews.length;
|
||||
|
||||
|
||||
Reference in new issue
Block a user