public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { EmailItem item = emailServer.Email[indexPath.Row]; UIAlertController popup = UIAlertController.Create(item.Subject, item.ToString(), UIAlertControllerStyle.Alert); popup.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null)); PresentViewController(popup, true, null); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { UITableViewCell cell = new UITableViewCell(UITableViewCellStyle.Subtitle,null); EmailItem item = emailServer.Email[indexPath.Row]; cell.TextLabel.Font = UIFont.FromName("Helvetica", 16); cell.TextLabel.Text = item.Subject; cell.DetailTextLabel.Text = item.Body; cell.ImageView.Image = item.GetImage(); //cell.TextLabel.Text = emailServer.Email[indexPath.Row].Subject; cell.Accessory = UITableViewCellAccessory.DetailButton; return cell; }