nib2cib fix for multiple subviews in a Custom View

This commit is contained in:
Tom Robinson committed 2008-10-22 18:01:54 -07:00
1 parent cb53db05dc
commit f34265a864
1 file changed
+3 -1
+3 -1
View File
@@ -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;