Merge pull request #2163 from t00f/predicate_editor_with_date

set CPDatePicker elements to days, months, year when used within a CPPre...
This commit is contained in:
Antoine Mercadal committed 2014-07-28 17:29:25 -07:00
commit b6d76eb84e
1 file changed
+3
@@ -708,7 +708,10 @@ CPTransformableAttributeType = 1800;
view = [[CPCheckBox alloc] initWithFrame:CGRectMake(0, 0, 50, 26)];
}
else if (attributeType == CPDateAttributeType)
{
view = [[CPDatePicker alloc] initWithFrame:CGRectMake(0, 0, 180, 26)];
[view setDatePickerElements:CPYearMonthDayDatePickerElementFlag];
}
else
return nil;