Skip to content

Instantly share code, notes, and snippets.

@prashantvc
Created August 21, 2013 04:18
Show Gist options
  • Save prashantvc/6290272 to your computer and use it in GitHub Desktop.
Save prashantvc/6290272 to your computer and use it in GitHub Desktop.
using System;
using MonoTouch.Dialog;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace DVC_Test_JanGundorf
{
public class AddressElement : StyledMultilineElement, IElementSizing
{
public AddressElement (string caption, string value, UITableViewCellStyle style) : base (
caption, value, style){
}
public override float GetHeight (UITableView tableView, NSIndexPath indexPath)
{
var height = base.GetHeight (tableView, indexPath);
return height + 26f; //Envelop image height
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment