小编and*_*wan的帖子

如何在visual studio mac中添加对程序集的引用?

对不起.我是C#的新手.我使用Visual Studio Mac.我想尝试连接mysql数据库.我添加了mysql包.当我跑步时,我得到错误.错误是:

添加对程序集'System.Data,Version-4.0.0.0,Culture = neutral,PublicKeyToken的引用

在此输入图像描述

c# mysql macos visual-studio-mac

6
推荐指数
3
解决办法
2万
查看次数

React JS-如何在对象内添加对象

我在构造函数中有以下代码:

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)

如何将临时变量添加到收件人

state object reactjs

5
推荐指数
1
解决办法
6591
查看次数

objective c - 单击表格行并转到另一页面

我想用户点击表格行然后用户将转到其他页面.该页面具有故事板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)

objective-c tablerow ios

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

c# ×1

ios ×1

macos ×1

mysql ×1

object ×1

objective-c ×1

reactjs ×1

state ×1

tablerow ×1

visual-studio-mac ×1