iOS5 Storyboard UIViewController ¿qué método init es llamado por el storyboard?
¿Qué método init
es llamado por el storyboard para UIViewControllers
agregado al storyboard?
78
3 answers
El inicializador utilizado es initWithCoder:
- (id)initWithCoder:(NSCoder *)decoder
Luego también recibirá un mensaje awakeFromNib
.
127
Author: Firoze Lafeer,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-01-07 03:32:24
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-01-07 03:32:24
Creo que es awakeFromNib
5
Author: agilityvision,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-01-07 02:31:09
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-01-07 02:31:09
Es el - (id)initWithCoder:(NSCoder *)decoder
Así que si tienes que hacer un init personalizado, digamos que usando un controlador de Paginador personalizado tienes que hacerlo allí como
- (id)initWithCoder:(NSCoder *)decoder {
self = [super initWithCoder:decoder];
return [self initWithViewControllers:@[self.playerViewController, self.categoriesViewController]
andTitles:@[@"Player",@"Categories"]];
}
0
Author: loretoparisi,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-10-12 10:36:01
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-10-12 10:36:01