MonoTouch.Dialog.JsonElement.ToCellStyle C# (CSharp) Method

ToCellStyle() static private method

static private ToCellStyle ( string style ) : UITableViewCellStyle
style string
return UITableViewCellStyle
		static UITableViewCellStyle ToCellStyle (string style)
		{
			switch (style){
			case "default": return UITableViewCellStyle.Default;
			case "subtitle": return UITableViewCellStyle.Subtitle;
			case "value1": return UITableViewCellStyle.Value1;
			case "value2": return UITableViewCellStyle.Value2;
			default:
				Console.WriteLine ("unknown cell style `{0}', valid values are default, subtitle, value1 and value2", style);
				break;
			}
			return UITableViewCellStyle.Default;
		}