Questions tagged [pass-data]

252 questions
0
votes
3 answers

How do I pass data from one table view to another view when clicking on a cell of a table view?

I am a beginner and facing some problems when doing my project. I have a table view where I get some NSString value by XML Parsing. This is like : cell 1 : basic name - name, address, phone number, date. cell 2 : featured name - name, address, phone…
0
votes
6 answers

pass value from first activity to fourth activity in android

Hi this is my singlemenuitemactivity: public class SingleMenuItemActivity extends ExpandableListActivity { Button btninsert; String selectedItem; /** Called when the activity is first created. */ @Override public void onCreate(Bundle…
Krishna Veni
  • 2,217
  • 8
  • 27
  • 53
0
votes
1 answer

Need to pass a NSMutableString object from a view controller to the AppDelegate

I've struggled for 6 hrs trying to pass a mutable string object from a view controller to the AppDelegate. I've seen a lot of comments on passing data between view controllers and have worked some of those tutorials, but can't seem to figure out…
ronsinda
  • 139
  • 1
  • 5
0
votes
1 answer

Call method in UIViewController from NSObject?

I'm new to iOS development so please bear with me. Say I have a basic method in a UIViewController that only NSLogs the words "hi". how would I call this method from an NSObject class? It's easy to call methods in an NSObject class from a…
Praxder
  • 2,315
  • 4
  • 32
  • 51
0
votes
1 answer

UITableView with UISegmented control and checkmark accessory

I am a newbie in the world of Objective-C and iOS coding so I'll appreciate a little bit of help. Here is my issue. I've got a UITableView with a UISegmentedControl. This one has 6 different segments which modify the content of the table by…
-1
votes
1 answer

How to pass data(count) from Quantity component to Mainpart component using lifting state up in react

Quantity component is my child class and Mainpart component is my parent class.i want to use my (count) in my parent class.but i dont know how to pass that data.sorry my english is not good.i think you will get the idea. const MainPart = () =>…
-1
votes
1 answer

how pass data on prepareForSegue function differently? swift 5

Hi everyOne actually I want to add Data of the cell in tableView that when I click on it , data should pass on showOfferController(another view controller) but I dont why my data is nil when passed on showOfferController: this is my prepareForSegue…
Ali kazemi
  • 84
  • 7
-1
votes
1 answer

How to activate modal from controlller passing data to view. (Laravel)

Suppose I have a login form and a bootstrap modal inside it and after checking login authentication from a controller, I want to pass data to that bootstrap modal. So how can I activate that modal from controller passing data to that modal?
Binay7587
  • 15
  • 1
  • 5
-1
votes
1 answer

Pass variable from UIPageViewController to UIViewController child

I am trying to create a tutorial / intro for my app and since at this point I am not sure how many pages will it have I decided to use a UIPageViewController with a single child. My intention is to store all the data I wanna display in an object…
daydr3am3r
  • 920
  • 4
  • 12
  • 31
-1
votes
1 answer

How to pass a string value from a class to another in the same activity in Flutter?

// I cant find a way to pass a string from a class to another. They are both in the same screen and i want to pass the index from a pageview on class to another. Any help would be grateful! //on the first class// onPageChanged: (int…
-1
votes
4 answers

How to pass data from activity to class

Here is my activity code @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate( savedInstanceState ); setContentView( R.layout.activity_engineer_recycler ); String value = "hello"; } Here is my class…
Nikhil Lohar
  • 127
  • 1
  • 9
-1
votes
3 answers

How to use share data between view controlles

i want to use a data between views but i have a tab bar view control. Actually my initial view login view i get "access_token" as a sting and if i can successfully login pass tab bar control's first view but i want to use access token string in…
C. Sayin
  • 1
  • 7
-1
votes
3 answers

Pass data from UITabBarController to its child view controllers objective C in Real Time

I have a UITabBarController with Tabs (say Tab1, Tab2, Tab3, Tab4) and UITabBarController is my RootViewController and I'm making an API Call in the same. Since it is a RootViewController I'm displaying Tab1 as my default View. When I get the…
Deepakraj Murugesan
  • 1,195
  • 11
  • 30
-1
votes
2 answers

Saving state of UISwitch of cells in UITableView to pass data to source controller

I have a ListTableView with cells organized in several sections. Another FilterTableView (filter settings for the ListTableView) provided by another controller. Every cell of FilterTableView has a UISwitch to set the showing/hiding state of a…
eli7ah
  • 355
  • 2
  • 10
-1
votes
2 answers

How to pass data from fragment to ActionBarActivity?

I have PatientList class that extends fragment and other AddPatient class that extends ActionBarActivity. Now i want to pass static string from PatientList to AddPatient then its getting null.Where is the problem?? Why it is getting null???
1 2 3
16
17