Access source table view in performDropWith delegate callbackHow do I size a UITextView to its content?-didSelectRowAtIndexPath: not being calledHow do I create delegates in Objective-C?UITableView - scroll to the topUITableView didSelectRowAtIndexPath: not being called on first tapiOS - Calling App Delegate method from ViewControllerPassing Data between View ControllersHow to disable scrolling in UITableView table when the content fits on the screenUnable to drag/drop Table View Cell under Table ViewSwift iOS In table view Can I use reloadData after adding a row?
What can I do with a research project that is my university’s intellectual property?
What is appropriate short form for "laboratoires" in French?
Does Doppler effect happen instantly?
How does a blind passenger not die, if driver becomes unconscious
How do I farm creepers for XP without them exploding?
How to remove this component from PCB
Why does the Saturn V have standalone inter-stage rings?
What's currently blocking the construction of the wall between Mexico and the US?
I don't like coffee, neither beer. How to politely work my way around that in a business situation?
Are all Ringwraiths called Nazgûl in LotR?
Encounter design and XP thresholds
How do I professionally let my manager know I'll quit over an issue?
Number of solutions mod p and Betti numbers
"Correct me if I'm wrong"
Trainee keeps passing deadlines for independent learning
RandomInteger with equal number of 1 and -1
Count All Possible Unique Combinations of Letters in a Word
Heavily limited premature compiler translates text into excecutable python code
Do I have to explain the mechanical superiority of the player-character within the fiction of the game?
How can you guarantee that you won't change/quit job after just couple of months?
Am I legally required to provide a (GPL licensed) source code even after a project is abandoned?
Story about hunting giant lizards for hides on privately owned planet
What are Elsa's reasons for selecting the Holy Grail on behalf of Donovan?
Concurrent normals conjecture
Access source table view in performDropWith delegate callback
How do I size a UITextView to its content?-didSelectRowAtIndexPath: not being calledHow do I create delegates in Objective-C?UITableView - scroll to the topUITableView didSelectRowAtIndexPath: not being called on first tapiOS - Calling App Delegate method from ViewControllerPassing Data between View ControllersHow to disable scrolling in UITableView table when the content fits on the screenUnable to drag/drop Table View Cell under Table ViewSwift iOS In table view Can I use reloadData after adding a row?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have added the drag and drop functionality using iOS 11 UITableViewDragDelegate
/UITableViewDropDelegate
pair for multiple table views.
Is there any way for me to get access to the source table object so that I can call .reloadData()
on it?
ios swift uitableview
add a comment |
I have added the drag and drop functionality using iOS 11 UITableViewDragDelegate
/UITableViewDropDelegate
pair for multiple table views.
Is there any way for me to get access to the source table object so that I can call .reloadData()
on it?
ios swift uitableview
what you mean "Is there any way for me to get access to the source table object"
– Mohmmad S
Mar 25 at 11:47
add a comment |
I have added the drag and drop functionality using iOS 11 UITableViewDragDelegate
/UITableViewDropDelegate
pair for multiple table views.
Is there any way for me to get access to the source table object so that I can call .reloadData()
on it?
ios swift uitableview
I have added the drag and drop functionality using iOS 11 UITableViewDragDelegate
/UITableViewDropDelegate
pair for multiple table views.
Is there any way for me to get access to the source table object so that I can call .reloadData()
on it?
ios swift uitableview
ios swift uitableview
edited Mar 25 at 14:16
AtulParmar
2,121926
2,121926
asked Mar 25 at 7:52
zaitsmanzaitsman
4,63642550
4,63642550
what you mean "Is there any way for me to get access to the source table object"
– Mohmmad S
Mar 25 at 11:47
add a comment |
what you mean "Is there any way for me to get access to the source table object"
– Mohmmad S
Mar 25 at 11:47
what you mean "Is there any way for me to get access to the source table object"
– Mohmmad S
Mar 25 at 11:47
what you mean "Is there any way for me to get access to the source table object"
– Mohmmad S
Mar 25 at 11:47
add a comment |
1 Answer
1
active
oldest
votes
It's not clear for me the part
Is there any way for me to get access to the source table object
however you can use property observer didSet
to reload the tableView each time the variable modified.
something like this should work,
var dataSrouce: [String] = [] // your data source object.
didSet
tableView.reloadData() // reload the tableView using that data source.
This does not answer the question. I have 20 table views and the user drags from one to whichever he wants. The delegate method is called in the target on the import. How do i get access to the source table view?
– zaitsman
Mar 25 at 11:52
you want to reload the tableview because the datasource changed right ?
– Mohmmad S
Mar 25 at 11:53
implement that on each data source you are using and it will automatically reload any tableView that have any changes in the dataSource.
– Mohmmad S
Mar 25 at 11:53
No, i want to reload it only if we finished a successful drop. At the moment I have to reload on dragEnd
– zaitsman
Mar 25 at 11:54
Mate did you read the question? Datasource does NOT change. User drags ONE item across tables.
– zaitsman
Mar 25 at 11:54
|
show 1 more 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%2f55333305%2faccess-source-table-view-in-performdropwith-delegate-callback%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
It's not clear for me the part
Is there any way for me to get access to the source table object
however you can use property observer didSet
to reload the tableView each time the variable modified.
something like this should work,
var dataSrouce: [String] = [] // your data source object.
didSet
tableView.reloadData() // reload the tableView using that data source.
This does not answer the question. I have 20 table views and the user drags from one to whichever he wants. The delegate method is called in the target on the import. How do i get access to the source table view?
– zaitsman
Mar 25 at 11:52
you want to reload the tableview because the datasource changed right ?
– Mohmmad S
Mar 25 at 11:53
implement that on each data source you are using and it will automatically reload any tableView that have any changes in the dataSource.
– Mohmmad S
Mar 25 at 11:53
No, i want to reload it only if we finished a successful drop. At the moment I have to reload on dragEnd
– zaitsman
Mar 25 at 11:54
Mate did you read the question? Datasource does NOT change. User drags ONE item across tables.
– zaitsman
Mar 25 at 11:54
|
show 1 more comment
It's not clear for me the part
Is there any way for me to get access to the source table object
however you can use property observer didSet
to reload the tableView each time the variable modified.
something like this should work,
var dataSrouce: [String] = [] // your data source object.
didSet
tableView.reloadData() // reload the tableView using that data source.
This does not answer the question. I have 20 table views and the user drags from one to whichever he wants. The delegate method is called in the target on the import. How do i get access to the source table view?
– zaitsman
Mar 25 at 11:52
you want to reload the tableview because the datasource changed right ?
– Mohmmad S
Mar 25 at 11:53
implement that on each data source you are using and it will automatically reload any tableView that have any changes in the dataSource.
– Mohmmad S
Mar 25 at 11:53
No, i want to reload it only if we finished a successful drop. At the moment I have to reload on dragEnd
– zaitsman
Mar 25 at 11:54
Mate did you read the question? Datasource does NOT change. User drags ONE item across tables.
– zaitsman
Mar 25 at 11:54
|
show 1 more comment
It's not clear for me the part
Is there any way for me to get access to the source table object
however you can use property observer didSet
to reload the tableView each time the variable modified.
something like this should work,
var dataSrouce: [String] = [] // your data source object.
didSet
tableView.reloadData() // reload the tableView using that data source.
It's not clear for me the part
Is there any way for me to get access to the source table object
however you can use property observer didSet
to reload the tableView each time the variable modified.
something like this should work,
var dataSrouce: [String] = [] // your data source object.
didSet
tableView.reloadData() // reload the tableView using that data source.
answered Mar 25 at 11:49
Mohmmad SMohmmad S
2,8232527
2,8232527
This does not answer the question. I have 20 table views and the user drags from one to whichever he wants. The delegate method is called in the target on the import. How do i get access to the source table view?
– zaitsman
Mar 25 at 11:52
you want to reload the tableview because the datasource changed right ?
– Mohmmad S
Mar 25 at 11:53
implement that on each data source you are using and it will automatically reload any tableView that have any changes in the dataSource.
– Mohmmad S
Mar 25 at 11:53
No, i want to reload it only if we finished a successful drop. At the moment I have to reload on dragEnd
– zaitsman
Mar 25 at 11:54
Mate did you read the question? Datasource does NOT change. User drags ONE item across tables.
– zaitsman
Mar 25 at 11:54
|
show 1 more comment
This does not answer the question. I have 20 table views and the user drags from one to whichever he wants. The delegate method is called in the target on the import. How do i get access to the source table view?
– zaitsman
Mar 25 at 11:52
you want to reload the tableview because the datasource changed right ?
– Mohmmad S
Mar 25 at 11:53
implement that on each data source you are using and it will automatically reload any tableView that have any changes in the dataSource.
– Mohmmad S
Mar 25 at 11:53
No, i want to reload it only if we finished a successful drop. At the moment I have to reload on dragEnd
– zaitsman
Mar 25 at 11:54
Mate did you read the question? Datasource does NOT change. User drags ONE item across tables.
– zaitsman
Mar 25 at 11:54
This does not answer the question. I have 20 table views and the user drags from one to whichever he wants. The delegate method is called in the target on the import. How do i get access to the source table view?
– zaitsman
Mar 25 at 11:52
This does not answer the question. I have 20 table views and the user drags from one to whichever he wants. The delegate method is called in the target on the import. How do i get access to the source table view?
– zaitsman
Mar 25 at 11:52
you want to reload the tableview because the datasource changed right ?
– Mohmmad S
Mar 25 at 11:53
you want to reload the tableview because the datasource changed right ?
– Mohmmad S
Mar 25 at 11:53
implement that on each data source you are using and it will automatically reload any tableView that have any changes in the dataSource.
– Mohmmad S
Mar 25 at 11:53
implement that on each data source you are using and it will automatically reload any tableView that have any changes in the dataSource.
– Mohmmad S
Mar 25 at 11:53
No, i want to reload it only if we finished a successful drop. At the moment I have to reload on dragEnd
– zaitsman
Mar 25 at 11:54
No, i want to reload it only if we finished a successful drop. At the moment I have to reload on dragEnd
– zaitsman
Mar 25 at 11:54
Mate did you read the question? Datasource does NOT change. User drags ONE item across tables.
– zaitsman
Mar 25 at 11:54
Mate did you read the question? Datasource does NOT change. User drags ONE item across tables.
– zaitsman
Mar 25 at 11:54
|
show 1 more comment
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%2f55333305%2faccess-source-table-view-in-performdropwith-delegate-callback%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
what you mean "Is there any way for me to get access to the source table object"
– Mohmmad S
Mar 25 at 11:47