Questions tagged [pass-data]
252 questions
1
vote
4 answers
Can not pass Data To ContainerView
I have tried 2 methods to pass the data from ViewController to ContainerView, with and without segue
Here is without segue method
ViewController
class DetailPostBookReviewVC: UIViewController {
var postid: String!
@IBAction func…

Harryng
- 13
- 6
1
vote
1 answer
Fatal error when trying to pass data to another view controller
In order to practice my networking, I built an app with a text field where you can input something. I use the wikipedia API to fetch the definition of that term / name/ expression. My goal is to then display that definition into another view…

LEKYSMA
- 141
- 10
1
vote
1 answer
Swift, How to use data passed back from VC in other functions?
I'm having trouble accessing and using the variable the value I got from a popover
First time ever asking a question on here and fairly new to programming so please be gentle. My program has a popup that displays a date for the user to select, and…

Ariana
- 13
- 3
1
vote
1 answer
Get value from JSON and pass to another view
I've to get value from my JSON and pass this string to a variable in the second View. So, my problem it's not get value from JSON because I did it. How I can do it. I've just tried prepare (for segue) and other code but any of thats worked. Do you…
user10607720
1
vote
1 answer
NativeScript How to pass Data from service to component?
I have a service which make an HttpGet method and I want to pass the object that returns from the server to array in Task component
I know it is a better approach to use Promise, but I'm not so familiar with it.
So this is what I did so…

Johnny
- 105
- 2
- 14
1
vote
1 answer
Swift delegate beetween two VC without segue
I have 3 classes:
ChatLogControoller
GetImageFromLibraty(NSObject class)
ImagePreviewViewController
I want to press a clip from the first VC, then open the media library to pick an image. Then the selected image is passed to the third VC as a…

George Heints
- 1,303
- 3
- 20
- 37
1
vote
1 answer
Passing params in ionic sidemenu
When a user logins the ionic app, how do I pass the user ID to the pages listed in side menu.. Is there a possibility to send data through navParams?

Karthika
- 45
- 1
- 8
1
vote
2 answers
Passing data from one TableView to another TableView
I have setup a prepare for segue method and I believe I have successfully sent my data to the second ViewController but I'm unsure how to use the passed data.
For Example:
When the user taps Protein I want to send to the second tableViewController…

Nicholas Richardson
- 55
- 1
- 10
1
vote
1 answer
How to pass the CloudKit records data from "TableView-Controller B" to "View-Controller C"?
I've got records data from my CloudKit and show on TableViewController-B successfully, but how can i pass the CloudKit's records(strings, images) to next ViewController-C??
ps. not tableViewcontroller-C
my first TableViewController-B
import UIKit …

TS Denzon
- 29
- 9
1
vote
1 answer
How to pass data back to an interface controller in Watchkit
I know that this question has been asked a lot but it seems that nobody has given a proper answer.
I have an interface controller that has a table. Now when the user selects a a row I push the information to a new interface controller…

michaels
- 23
- 1
- 8
1
vote
1 answer
Error: Found nil while unwrapping an Optional value; While Pass Data to the New Controller
I'm learning swift 2. I'm trying to pass the data of the cell (UITableView) that is tapped to the new View Controller. But I constantly get the error of: "unexpectedly found nil while unwrapping an Optional value" for the code line…

Wang Nan
- 15
- 3
1
vote
1 answer
ios-passing data between two view controllers without segue?
i want to pass data from one view controller to another view controller thats not connect to each other with segue.in firstviewcontroller when a button touch(favorite) want data pass to secondviewcontroller (favoriteviewcontroller) that is part of…

Mehdi Negahban
- 85
- 2
- 9
1
vote
1 answer
Swift - Unwind segue passes back nil value?
I have two view controllers. The second view controller hosts a table view with a custom cell that unwinds back to the first view controller and sends back the data associated with that cell.
In the second view controller class I implemented…

lifewithelliott
- 1,012
- 2
- 16
- 35
1
vote
3 answers
How to pass data to another view
I'm working on a map which have some markers and I want to create an info view which will show an image and some text for each marker.
So, when I press the info button, it goes to a info view.
I have this on the code:
func mapView(mapView:…

Tárraga
- 461
- 1
- 6
- 13
1
vote
2 answers
Passing data from fragment to activity (working example)
I want to pass some data from a fragment to an activity.
This question has been asked already many times, and this answer is the best i have found so far.
I have followed the official documentation, but I still haven't got any results. What I have…

Alvaro
- 1,430
- 2
- 23
- 41