This is my original code. It does the job and put a specialised view into a cell of a UICollectionView
TT2TimeViewController* controller = [[TT2TimeViewController alloc] init];
controller.city = city;
UIView* view = [[[NSBundle mainBundle] loadNibNamed:@"TT2TimeViewController"
However, for some reason, the view controller
controller will miss the ViewDidLoad event. The selector is not called at all.
This problem is resolved if I switch to use
TT2TimeViewController* controller = [[TT2TimeViewController alloc] initWithNibName:@"TT2TimeViewController"