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
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
add a comment |
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
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
add a comment |
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
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
ios uitableview
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Mar 25 at 18:06
Cody DeckardCody Deckard
11 bronze badge
11 bronze badge
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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