사용자 정의 셀을 만들기 위해 this 자습서를 따라갔습니다.모노 터치 아이폰 사용자 정의 UITableView
나는 그처럼 보이는 인터페이스 빌더에서 사용자 지정 셀을 만든:
내의 ViewController에서 내가 jQuery과 추가 및 데이터에 바인딩 :
myTable.Source = new ListSource();
GetCell 방법 ListSource의 :
public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
{
// Reuse a cell if one exists
CustomListCell cell = tableView.DequeueReusableCell ("QCell") as CustomQuestionsListCell;
if (cell == null)
{
// We have to allocate a cell
var views = NSBundle.MainBundle.LoadNib ("CustomListCell", tableView, null);
cell = Runtime.GetNSObject (views.ValueAt (0)) as CustomListCell;
}
return cell;
}
마지막으로 표시되는 내용은 다음과 같습니다.
오버 랩핑과 같은 것으로 보입니다. 어떤 아이디어가 왜 이런 일입니까?
감사합니다.
감사! 그것은 내 문제를 해결 :) –