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;








0















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?










share|improve this question
























  • what you mean "Is there any way for me to get access to the source table object"

    – Mohmmad S
    Mar 25 at 11:47

















0















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?










share|improve this question
























  • what you mean "Is there any way for me to get access to the source table object"

    – Mohmmad S
    Mar 25 at 11:47













0












0








0








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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












1 Answer
1






active

oldest

votes


















0














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.







share|improve this answer























  • 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











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%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









0














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.







share|improve this answer























  • 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















0














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.







share|improve this answer























  • 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













0












0








0







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.







share|improve this answer













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.








share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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



















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%2f55333305%2faccess-source-table-view-in-performdropwith-delegate-callback%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