对不起.我是C#的新手.我使用Visual Studio Mac.我想尝试连接mysql数据库.我添加了mysql包.当我跑步时,我得到错误.错误是:
添加对程序集'System.Data,Version-4.0.0.0,Culture = neutral,PublicKeyToken的引用
我在构造函数中有以下代码:
constructor() {
this.state = {
recipient: {
lat: -6.173752,
lon: 106.8925773
}
}
}
Run Code Online (Sandbox Code Playgroud)
我想将此添加到收件人:
var temp = {
address: 'example street',
phone: '+623123131321'
}
Run Code Online (Sandbox Code Playgroud)
如何将临时变量添加到收件人?
我想用户点击表格行然后用户将转到其他页面.该页面具有故事板ID"其他视图"和恢复ID"其他视图".但我不能去有目的的观点
这是我的代码:
- (UITableViewCell *)tableView:(UITableView *)tabel cellForRowAtIndexPath:(NSIndexPath *)indeksBaris
{
static NSString *simpleTableIdentifier = @"TampilanCell";
TabelBeritaCell *cell = (TabelBeritaCell *)[tabel dequeueReusableCellWithIdentifier:simpleTableIdentifier];
NSLog(@"nilai : %d", indeksBaris.row );
//detecting NIB of table view
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"TableView" owner:self options:nil];
cell = [nib objectAtIndex:0];
//Go To View Controller which have identifier "Other View"
UIViewController *otherViewCon;
otherViewCon = [self.storyboard instantiateViewControllerWithIdentifier:@"Other View"];
[self.navigationController pushViewController:otherViewCon animated:YES];
cell.judulBerita.text = [listBerita objectAtIndex:indeksBaris.row];
return cell;
}
Run Code Online (Sandbox Code Playgroud)
此代码不起作用:
UIViewController *otherViewCon;
otherViewCon = [self.storyboard instantiateViewControllerWithIdentifier:@"Other View"];
[self.navigationController pushViewController:otherViewCon …Run Code Online (Sandbox Code Playgroud)