This technique/practice is a good one, so let's put it to use over setting up in -init.
I'll quickly refactor some existing tab_grid classes.
- (void)willMoveToSuperview:(UIView*)newSuperview {
// The first time this moves to a superview, perform the view setup.
if (newSuperview && self.subviews.count == 0) {
[self setupViews];
}
}
Comment 1 by olivierrobin@chromium.org
, Mar 16 2018