I have tried all the solutions suggested here, for this question, but none of them works. Could the solution for Xamarin be a different one?
This is what I have tried, based on this answer here:
actionSheetAlert = new UIActionSheet("Select Make",null,null,null,null);
foreach(string item in allData)
{
actionSheetAlert.AddButton(item);
}
actionSheetAlert.AddButton("Cancel");
//Add Cancel button
actionSheetAlert.CancelButtonIndex = actionSheetAlert.ButtonCount-1;
actionSheetAlert.ShowInView(tableView);
Adding a cancel button with an empty string(instead of null) as others have also suggested , during the initialization of the actionsheet also doesn't solve it for me. I still have missing separator lines towards the end.
See screen shot below.