【发布时间】:2012-06-20 17:12:18
【问题描述】:
我如何加载一个。 XIB 通过单击表格视图的行? 下面这个例子是一个类的一部分,因为我会提醒这个类的加载?
public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
{
tableView.DeselectRow (indexPath, true);
//this.PresentModalViewController(home,true);
}
【问题讨论】:
-
你到底为什么要使用看起来像普通的 C 方法?使用 UITableViewController 中的 Objective-c 方法。
-
他的帖子被标记为 MonoTouch - 那是 C#,而不是 Obj-C
-
抱歉,我不知道你可以在不使用 Obj-C 的情况下为 iPhone 编程
-
该类与其余代码分离,我不能使用 this.PresentModalViewController(home,true);
标签: c# iphone uitableview xamarin.ios nib