There are several tabs in my tabBarController application. Each of them has its own class viewController, the only difference of which is how the instance is initialized. Is there a way to get the interface builder to send various tab initialization custom options?
I am currently doing initialization in viewWillAppear, but for a number of reasons it would be advisable to do this in IB rather than in code.
Any suggestions?
thanks Kelso
Builder , . IB, .
viewWillAppear:, awakeFromNib, , , , , .
viewWillAppear:
awakeFromNib
, , initWithCoder: (. NSCoding ). , , , .
initWithCoder:
NSCoding
, , , . [[UIApplication sharedApplication] delegate] .
[[UIApplication sharedApplication] delegate]
, , IB, nib. , (, viewDidAppear ), , .
Source: https://habr.com/ru/post/1704320/More articles:Customized options or site assembly - coldfusionWi-Fi app - iphoneСкалярный тройной продукт и определение - mathExtract solution file from WSS - wssКак распаковать ZIP файл в Windows Mobile? - windows-mobileC #: How can I elegantly and easily simplify end-to-end calls? - c #Triple Search Tree Insensitive - javaCustom Attributes in ASP.NET Web Form HTML Tags - .netMono on linux & windows - c #Преобразование BindingList в массив из T - genericsAll Articles