Controlling Table display from another viewMaking a UITableView scroll when text field is selectedHow do I check if a string contains another string in Objective-C?Passing Data between View Controllersback button callback in navigationController in iOSHow to use auto-layout to move other views when a view is hidden?navigation from tableview to another viewTable view return wrong values when scrollingNavigate between detail views of a table view controllerCan I put a table view within a page view controller?Table View Cell Action Between View Controllers

What's the idiomatic (or best) way to trim surrounding whitespace from a string?

To “Er” Is Human

Is it theoretically possible to hack printer using scanner tray?

Can I hire several veteran soldiers to accompany me?

Find the closest three-digit hex colour

Other homotopy invariants?

Why did the Middle Kingdom stop building pyramid tombs?

What verb goes with "coup"?

Replacing 5 gang light switches that have 3 of them daisy chained together

Why is the saxophone not common in classical repertoire?

Old story where computer expert digitally animates The Lord of the Rings

Is there a connection between representation theory and PDEs?

Are there advantages in writing by hand over typing out a story?

What was the ASCII end of medium (EM) character intended to be used for?

How far can gerrymandering go?

Is it advisable to inform the CEO about his brother accessing his office?

Why should I allow multiple IP addresses on a website for a single session?

Was Wolfgang Unziker the last Amateur GM?

What is the meaning of "it" in "as luck would have it"?

Available snapshots for main net?

Displace Mesh along Curve on single axis

Emphasize numbers in tables

German idiomatic equivalents of 能骗就骗 (if you can cheat, then cheat)

Cannot overlay, because ListPlot does not draw same X range despite the same PlotRange



Controlling Table display from another view


Making a UITableView scroll when text field is selectedHow do I check if a string contains another string in Objective-C?Passing Data between View Controllersback button callback in navigationController in iOSHow to use auto-layout to move other views when a view is hidden?navigation from tableview to another viewTable view return wrong values when scrollingNavigate between detail views of a table view controllerCan I put a table view within a page view controller?Table View Cell Action Between View Controllers













-2















I am trying to display a table on the home view with 10 potential cells.



I need to press a button, go to the next view and select which cells I want to use via switches.



For example, if the switch is on, the cell is displayed. If the switch is off the cell will not be displayed and there will not be a gap between displayed cells on the previous page.










share|improve this question



















  • 1





    Welcome to Stack Overflow! Please take some time to review these guidelines for asking a good question to ensure you get responses to your question.

    – shim
    Mar 25 at 18:05















-2















I am trying to display a table on the home view with 10 potential cells.



I need to press a button, go to the next view and select which cells I want to use via switches.



For example, if the switch is on, the cell is displayed. If the switch is off the cell will not be displayed and there will not be a gap between displayed cells on the previous page.










share|improve this question



















  • 1





    Welcome to Stack Overflow! Please take some time to review these guidelines for asking a good question to ensure you get responses to your question.

    – shim
    Mar 25 at 18:05













-2












-2








-2








I am trying to display a table on the home view with 10 potential cells.



I need to press a button, go to the next view and select which cells I want to use via switches.



For example, if the switch is on, the cell is displayed. If the switch is off the cell will not be displayed and there will not be a gap between displayed cells on the previous page.










share|improve this question
















I am trying to display a table on the home view with 10 potential cells.



I need to press a button, go to the next view and select which cells I want to use via switches.



For example, if the switch is on, the cell is displayed. If the switch is off the cell will not be displayed and there will not be a gap between displayed cells on the previous page.







ios uitableview






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 25 at 18:07









shim

4,3417 gold badges50 silver badges80 bronze badges




4,3417 gold badges50 silver badges80 bronze badges










asked Mar 25 at 17:22









naprotonnaproton

11 bronze badge




11 bronze badge







  • 1





    Welcome to Stack Overflow! Please take some time to review these guidelines for asking a good question to ensure you get responses to your question.

    – shim
    Mar 25 at 18:05












  • 1





    Welcome to Stack Overflow! Please take some time to review these guidelines for asking a good question to ensure you get responses to your question.

    – shim
    Mar 25 at 18:05







1




1





Welcome to Stack Overflow! Please take some time to review these guidelines for asking a good question to ensure you get responses to your question.

– shim
Mar 25 at 18:05





Welcome to Stack Overflow! Please take some time to review these guidelines for asking a good question to ensure you get responses to your question.

– shim
Mar 25 at 18:05










1 Answer
1






active

oldest

votes


















0














Uses the switches to control the data source for your UITableView, the best way to do this would be to break out your UITableViewDataSource into a separate class and then you can modify the data source array from your second view controller. I think this tutorial would be a good starting point






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55343323%2fcontrolling-table-display-from-another-view%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Uses the switches to control the data source for your UITableView, the best way to do this would be to break out your UITableViewDataSource into a separate class and then you can modify the data source array from your second view controller. I think this tutorial would be a good starting point






    share|improve this answer



























      0














      Uses the switches to control the data source for your UITableView, the best way to do this would be to break out your UITableViewDataSource into a separate class and then you can modify the data source array from your second view controller. I think this tutorial would be a good starting point






      share|improve this answer

























        0












        0








        0







        Uses the switches to control the data source for your UITableView, the best way to do this would be to break out your UITableViewDataSource into a separate class and then you can modify the data source array from your second view controller. I think this tutorial would be a good starting point






        share|improve this answer













        Uses the switches to control the data source for your UITableView, the best way to do this would be to break out your UITableViewDataSource into a separate class and then you can modify the data source array from your second view controller. I think this tutorial would be a good starting point







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 25 at 18:06









        Cody DeckardCody Deckard

        11 bronze badge




        11 bronze badge
















            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55343323%2fcontrolling-table-display-from-another-view%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript