2 ms·
You could just write: id color = [UIColor green]; id viewController = [[MyViewController alloc] initWithBackgroundColor:color]; The UIColor* is largely
by mpweiher 13y ago
You could just write:
id color = [UIColor green];
id viewController = [[MyViewController alloc] initWithBackgroundColor:color];
The UIColor* is largely there for your benefit, for the compiler it makes hardly a difference (pre ARC). If you don't find it a benefit, just leave it out.