Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is a fairly complicated task and if you are a beginner it might not make too much sense. You might need to spend some more time and get comfortable with iPhone development a little more to grasp all of this... but here ya go:</p> <p>There are many ways to do this, this is just one, but it should work.</p> <p>On your settings tab, you can create an IBAction method, something like:</p> <pre><code>-(IBAction) changedSegmentedControlDefault:(id)sender </code></pre> <p>In the xib for your settings tab, I would probably put another segmented control with the same options as the other tab and whatever choice the user makes on the settings tab becomes the default for the other tab. Connect the Value Changed event on that settings control to the changedSegmentedControlDefault method so that whenever a user change that control it will call your method.</p> <p>In that method, I would either save the selectedIndex from the control for later use either using CoreData or a Settings bundle. These are huge topics all on their own, so its too much to go into here. Whichever way you save that information for later use.... just save it every time they change.</p> <p>Then on the original tab... in the viewDidLoad method of the view controller for that tab, look up that saved value from CoreData or your Settings bundle and use that selectedIndex to set the starting value on your segmented control. Something like:</p> <pre><code>self.segmentedControl.selectedSegmentIndex = savedDefaultIndex; </code></pre> <p>Again, there are a hundred different ways you could do this and it is a fairly complicated task which involves many different things to learn. I hope this helps you move in the right direction though.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload