从故事板实例化视图控制器和创建它的新实例之间的功能区别是什么?例如:
#import "SomeViewController.h"
...
SomeViewController *someViewController = [SomeViewController new];
对
#import "SomeViewController.h"
...
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
SomeViewController *someViewController = [storyboard instantiateViewControllerWithIdentifier:@"SomeViewController"];
在这两种情况下,someViewController
实际上是一回事吗?