View Controllers in cocoa
When you instantiate a new view control开发者_如何学Pythonler is it faster to create the objects present within, in code like [UIButton buttonWithType:]
and [self.view addSubView:]
or by loading them from a nib/xib file.
Earlier the first way was definitely faster, but with iOS 4 and UINib caching it depends on how often do you hit the cache.
精彩评论