Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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;
        }