I recently tried working with the MainStoryboard.storyboard within Xcode and so far It\'s going pretty good and I\'m wondering why I\'ve never used it before. While playing
My version:
- (instancetype)initWithData (NSArray *)someData
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
self = [storyboard instantiateViewControllerWithIdentifier:@"MyViewController"];
if(self)
{
//default initialization
}
return self;
}
...one initializer ;)