Convert Apple Emoji (String) to UIImage
问题 I need all Apple Emojis. I can get all the emojis and put them into a String by copying them from the site getemoji but in my app i need the emojis in the right order as images . Is there a nice way to convert the emojis I copy into a String to a UIImage ? Or a better solution to get all the Apple emojis in the right order? 回答1: Updated for Swift 4.1 Add this extension to your project import UIKit extension String { func image() -> UIImage? { let size = CGSize(width: 40, height: 40)