Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
UIContentSizeCategory GetConstant
public static NSString GetConstant (this UIContentSizeCategory self)
{
switch ((int) self) {
case 0: // UIContentSizeCategory.Unspecified
return UIContentSizeCategoryUnspecified;
case 1: // UIContentSizeCategory.ExtraSmall
return UIContentSizeCategoryExtraSmall;
case 2: // UIContentSizeCategory.Small
return UIContentSizeCategorySmall;
case 3: // UIContentSizeCategory.Medium
return UIContentSizeCategoryMedium;
case 4: // UIContentSizeCategory.Large
return UIContentSizeCategoryLarge;
case 5: // UIContentSizeCategory.ExtraLarge
return UIContentSizeCategoryExtraLarge;
case 6: // UIContentSizeCategory.ExtraExtraLarge
return UIContentSizeCategoryExtraExtraLarge;
case 7: // UIContentSizeCategory.ExtraExtraExtraLarge
return UIContentSizeCategoryExtraExtraExtraLarge;
case 8: // UIContentSizeCategory.AccessibilityMedium
return UIContentSizeCategoryAccessibilityMedium;
case 9: // UIContentSizeCategory.AccessibilityLarge
return UIContentSizeCategoryAccessibilityLarge;
case 10: // UIContentSizeCategory.AccessibilityExtraLarge
return UIContentSizeCategoryAccessibilityExtraLarge;
case 11: // UIContentSizeCategory.AccessibilityExtraExtraLarge
return UIContentSizeCategoryAccessibilityExtraExtraLarge;
case 12: // UIContentSizeCategory.AccessibilityExtraExtraExtraLarge
return UIContentSizeCategoryAccessibilityExtraExtraExtraLarge;
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment