is possible pass an args on an init method? I’m working with UITableViewController classes and UINavigatorController, when I push a new view whit:
[self.navigationController pushViewController:[[Class alloc] init] animated:YES];
I would also pass a string to that controller, is it possible?
Sure, just define your own initializer for your view controller subclass:
(This is for a subclass of
UITableViewController.)