pass-data

how I should send data from xib to viewcontroller?

半世苍凉 提交于 2021-02-11 12:47:16
问题 i have a view that is a xib, this view contains a buttons for a calculator, I did this because I need a custom keyboard for my app, my app has some views that needs this keyboard the problem is, how I send the data from view to my view controller? in my view controller I only has a textfield and a view with xib custom class I use swift 4.2 custom view and textflied this is my code from my xib import UIKit class keyboardView: UIView { @IBOutlet var viewKeyboard: UIView! var textIntroduced = ""

Pass data between 2 components in Angular

落爺英雄遲暮 提交于 2020-06-29 04:18:13
问题 I'm trying to pass data from my ag-Grid to a form in a new component by clicking on the row. I could get the data from the row by clicking on the cell via onCellClicked . But i don't know how to pass it to my other component now. here is my 2 interfaces : and here is my code : ag-Grid.ts : import { Component, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Grid, GridApi } from 'ag-grid-community'; import { AgGridAngular } from 'ag-grid-angular';

How to navigate between pages in ionic 4 & 5?

折月煮酒 提交于 2020-06-15 10:16:38
问题 I had a project that I developed with ionic 3. But I took a break and when I started working again with ionic, I saw the navigation system change in the new versions. My project is a simple project. This project that lists the data in the a array and details about the data appear on a different page. I was doing this on Ionic 3: homepage.ts export class HomePage { items = []; constructor(public navCtrl: NavController) { this.initializeItems();} initializeItems() { this.items = [ { 'title':

How to navigate between pages in ionic 4 & 5?

泪湿孤枕 提交于 2020-06-15 10:13:16
问题 I had a project that I developed with ionic 3. But I took a break and when I started working again with ionic, I saw the navigation system change in the new versions. My project is a simple project. This project that lists the data in the a array and details about the data appear on a different page. I was doing this on Ionic 3: homepage.ts export class HomePage { items = []; constructor(public navCtrl: NavController) { this.initializeItems();} initializeItems() { this.items = [ { 'title':

how to pass data from activity to running service

时光怂恿深爱的人放手 提交于 2020-01-22 14:33:19
问题 I want to send data to the server periodically, I'm using background Service for that, but I want to send when the data got updated, and updated data I'm getting in Activity and the Service is running in background.. so how can i pass data to running Service from Activity . Using Intent I can send data only one time while starting the Service . Intent serviceIntent= new Intent(DriverActivity.this,demoService.class); serviceIntent.putExtra("token", token); startService(serviceIntent); 回答1:

how to pass data from activity to running service

北战南征 提交于 2020-01-22 14:33:12
问题 I want to send data to the server periodically, I'm using background Service for that, but I want to send when the data got updated, and updated data I'm getting in Activity and the Service is running in background.. so how can i pass data to running Service from Activity . Using Intent I can send data only one time while starting the Service . Intent serviceIntent= new Intent(DriverActivity.this,demoService.class); serviceIntent.putExtra("token", token); startService(serviceIntent); 回答1:

Pass the value from 1st activity to 2nd activity in android

。_饼干妹妹 提交于 2020-01-06 04:30:07
问题 As am getting article title on textview on first activity.how can i pass these textview to next activity... I have used below code: for ( j = 0; j <Appscontent.Sub_arraylisttwo.size(); j++) { LinearLayout ly = new LinearLayout(this); ly.setOrientation(LinearLayout.VERTICAL); ly.setOnClickListener(mArticleClick); TextView tv = new TextView(this); tv.setText(Appscontent.Sub_arraylisttwo.get(j)); ly.addView(tv); lLayout.addView(ly); } int num=Integer.parseInt(number); number=String.valueOf(num

is it possible pass data between two different browsers?

痞子三分冷 提交于 2019-12-25 16:41:40
问题 I have to pass data between two different browser windows ( Eg: Chrome , Firefox ) . But the two browser windows does not have any parent window . Assumption: Suppose if I know one browser window name , is it possible to get the data from other browser? Its is an R&D . 回答1: Server Option using (node.js) If you are open to use node.js i suggest you to take a look on Socket.io. They have a pretty good example of how to communicate on 2 or more browser using the chat example. Take a look on this