您可以使用任何字体缩放表情符号,即设置 UITextViews contentScaleFactor,然后使用 CGTransform 缩放文本字段。(您甚至可以将它们放大(具有高分辨率)比 AppleColorEmoji 允许您默认使用的更大。
float scaleFactor = 2.0f;
float resolutionFactor = 2.0f;
CGPoint tempCenter = theTextView.center;
theTextView.contentScaleFactor *= resolutionFactor;
theTextView.layer.contentsScale *= resolutionFactor;
for (UIView *subview in [theTextView subviews]) {
subview.contentScaleFactor *= resolutionFactor;
subview.layer.contentsScale *= resolutionFactor;
}
theTextView.transform = CGAffineTransformScale(CGAffineTransformIdentity, scaleFactor, scaleFactor);
theTextView.center = tempCenter;