I designed a UITableViewController with static cells in XCode. After click on a button I want to add a row in one of the sections with a result.
My code:
InvokeOnMainThread (() => {
List<NSIndexPath> indexPaths = new List<NSIndexPath>();
indexPaths.Add(NSIndexPath.FromRowSection(0, 2));
TableView.InsertRows(indexPaths.ToArray(), UITableViewRowAnimation.Fade);
});
didn't work :-) I get this error message: * Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-2380.17/UITableView.m:1070