I want to get the width of a String, and I get the answer which is use this method( but it is just in OC):
I find it in Official API Document. Of course there is no Swift version.
Due to I know nothing about OC, I can't write all my code with OC language. But I find out that I can create a XXX-Bridging-Header.h
file, and import the header files of OC that I want to use in .swift
File.
However I don't know which header file is this function in. I hope someone could tell me the file name OR point out another way to get the width of String.
Fairly Appreciate!!