private UITableViewCell GetCellSectionOne(UITableView tableView, NSIndexPath indexPath) { UserProfileHeaderCell headerCell = new UserProfileHeaderCell (UserProfile); headerCell.OnImageChangeRequest += (originalImage) => { AvatarSelectorController ctrl; this._controller.NavigationController.PushViewController (ctrl = new AvatarSelectorController (originalImage), true); ctrl.SelectorView.ImageApplied += (image) => { headerCell.ImageView.Image = image; PostNewAvatar (image); }; }; return headerCell.LoadCell (tableView); }
public override UITableViewCell GetCell(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) { UserProfileHeaderCell innerCell = new UserProfileHeaderCell (Users[indexPath.Row]); UITableViewCell cell = innerCell.LoadCell (tableView); cell.Accessory = UITableViewCellAccessory.DisclosureIndicator; cell.SelectionStyle = UITableViewCellSelectionStyle.Blue; return cell; }