Questions tagged [pass-data]
252 questions
0
votes
1 answer
how to pass data from one fragment to a replaced fragmnet
Having Fragment A and B, B is kinda of extended A. The UI data update from B need to store back in A and A's UI makes decision whether to save to database.
So A is put on the backstack first, then at some time it needs B and B is put on the…

lannyf
- 9,865
- 12
- 70
- 152
0
votes
2 answers
pass data from custom cell(in table which is on ViewController) to the viewcontroller itself Swift3 iOS
I have a ViewController. The ViewController has a TableView in it.
The TableView has a few custom cells (say one is with the DatePicker, second is TextField, third is whatever it is - that's not the case) - cells are described in a TableViewCell
So,…

Gulz
- 1,773
- 19
- 15
0
votes
1 answer
Pass data from Parent Controller to popup Controller in Swift
I want to create a popup controller in Swift, but I can't pass data from the parent controller to the popup (set label text in pop up)
Code:
let popUpPreload = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier:…

Humyl
- 143
- 2
- 9
0
votes
1 answer
How to pass data from Realm to ViewController
I do news app in swift 2.3, xcode 7.3.1. I have Realm DB and data therein from server. I need move to ViewController when I press button and display selected data(news). The button over by my elements of news. How to pass data from selected elements…

Janserik
- 2,306
- 1
- 24
- 43
0
votes
1 answer
Pass data from ViewController (not Detail) to MasterViewController in UISplitView Swift
How to pass data from ViewController (VC) to MasterView (MV) in UISplitView? As I figured out I can't use segue because it goes from VC to SplitView, not to MV.
Check please picture below
screenshot of storyboard
UPD:
Thanks Stepan for the help, I…

Nikolai Prokofev
- 184
- 3
- 14
0
votes
2 answers
How to pass data from two different activities to another
I have three different classes and when the ImageButton in class1 is clicked I want that the TextView in class3 should change to "50". On the other hand when the ImageButton in class2 is clicked I want that the TextView in class3 should change to…

Raphale p.
- 1
- 4
0
votes
0 answers
Passing data from view controller to tab bar controller
I tried to pass the data from ViewController to one of children of TabBarController with this block of code:
class LoginViewController: UITabBarController{
//here are the requests and after all are finished the next is
dispatch_group_notify(group,…

anna.O
- 101
- 1
- 1
- 7
0
votes
2 answers
How to take the EditText's value from one activity in another?
There are two activities. I want to take the entered in the EditText field dat from the first screen into the second one. I used this code in the first activity:
Intent i = new Intent(this.getApplicationContext(),MainActivity.class);
…

user6456773
- 381
- 2
- 10
- 18
0
votes
0 answers
distinguish between segue that incomming to same view controller
I have three view controller.A is table view,B in another table view with different data and C is detail for this tableviews. A and B is going to C with different segues and pass their data to C and C retrieve their data in viewdidload…

Mehdi Negahban
- 85
- 2
- 9
0
votes
2 answers
send data to DetailView from FavoriteTableView?
i have tableview,detailview ,and favoriteview in my app.when user touch cell in tableview will go to detailview thats contain photo,label,textfield and button for add to favorite.user can touch favorite button to add specific cell to…

Mehdi Negahban
- 85
- 2
- 9
0
votes
1 answer
How to store data within javafx application
It is my first post so it might be little inappropriate.
I try to develop an application in JavaFX to regain my programming skills from past years.
I trying to create a JavaFX application that consists several views and controllers like…

Icarium
- 53
- 9
0
votes
0 answers
Passing data between angular 1.5 module in typescript
How can I pass data from A parent module to A child module in typescript angular 1.5 using require property

user3564488
- 13
- 6
0
votes
2 answers
Matlab: Pass Multiple Matrices Between Functions
I’ve got a series of matrices
zeroingMatrix{i} % i going from 1 to 'matrixQuantity'
I need to pass these to another Callback function. So the idea was:
for i = 1:matrixQuantity
setappdata(0, 'zeroingMatrix{'i '}', zeroingMatrix{i});
end
and…

Mike-C
- 43
- 7
0
votes
1 answer
Xcode- IF...ELSE IF...ELSE Statement in prepareForSegue replaces data in IF block with data from ELSE block
It is very long method and it got a bit messed up trying to cut it out so StackOverflow allows me to post so much.
StatsViewController prepareForSegue method:
`-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
//stat1 data...…

user3884788
- 43
- 6
0
votes
1 answer
Using itemClickListener to pass data from api call to another fragment
I have a list of data from my API call into my RecyclerView. I have an itemClickListener interface that opens a new fragment with item image and details.
When I click on the item, I need to pass data to the 2nd fragment and it's adapter. How will it…

MikeB
- 257
- 1
- 4
- 15