ios - How to pass value to initWithCoder of second view controller? -


i using pushviewcontroller method. want check condition in initwithcoder method in second view controller, use instantiateviewcontrollerwithidentifier in first controller initwithcoder called before setting property of second view controller. how can check condition?

when create instance of viewcontroller @ time initwithcoder method called. used singleton class boolean variable set in prepareforsegue method , used in initwithcoder method works me.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -