ios - Create segue based on a downloaded config file -


To perform advanced A / B testing, I want to be able to create segue based on a config file.

When I launch, my app downloads a JSON file to make the parts of the main page dynamically.

For example, will create 2 buttons on the following main view like a JSON. First button will be blue with the "button1" label and the second label will be red with "button2". {"Type": "button", "label": "button1" "color": "blue"}, "1": { "Type": "Button", "Label": "Button 2" "Color": "Red"}};

Now, I want to add something to JSON like this: "goto": "OptionViewController" where the value of the goto key is displayed when the displayed button Clicking on

I want to be able to add or remove the buttons on the main page (how to do this) and to change the view associated with a button (this is my problem) Remotely, just download By changing JSON to

The problem is that to move from one scene to another, I not only need the name of the new scene, I also need a cigu.

P> says that programming is impossible to make segu.

The only solution I have found is for every scene, which is to create a Segun on every other scene but it is very dirty.

If you are using the storyboard and if you are there with an identifier of "controller" If you want to define the controller of view, you can do this:

  UIStoryboard * Storyboard = [UIStoryboard sto RyboardWithName: @ "Main" bundle: zero]; OptionViewController * ovc = [storyboard instant viewer videadatifier: @ "OptionViewCentron"]; [Self-present ViewController: animated ovc: yes complete: zero];  

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -