现在的位置: 首页 > 综合 > 正文

mono touch中重置UITableView选中行

2014年06月24日 ⁄ 综合 ⁄ 共 306字 ⁄ 字号 评论关闭

有不明白的地方欢迎入群 347636249 探讨

/// <summary>

/// 重置UITableView选中行
/// </summary>
/// <param name="rowindex">要选中的行索引.</param>
public void SetTableSelectRow(int rowindex)
{
      NSIndexPath indexPath = NSIndexPath.FromRowSection (rowindex, 0);
      TBCourseView.SelectRow (indexPath, true, UITableViewScrollPosition.None);
}

抱歉!评论已关闭.