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
Post a Comment