Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字列に 2 つの Unicode 文字、つまり上付き文字を表示する必要があります。私はこのようにやっています:
NSLog(@"%@",[NSString stringWithFormat:@"\u02e2\u00B9 2010"]);
私もそれを示すことができますが、私の問題は、これらの 2 つの文字の間にスペースが表示されていることです。このスペースを減らすにはどうすればよいですか?
前もって感謝します。
2 文字の間にスペースはありませんが、"2010" の直前 ---> "ˢ¹ 2010"
スペースが必要かどうかは不明です...
必要な場合は、次を使用します。
NSLog(@"%@",[NSString stringWithFormat:@"\u02e2 \u00B9 2010"]);
以下のコードを使用して JSON データを解析しようとしています。Web サイトには API キーが必要です。これは今のところ、strings.xml に文字列として保存されています。
public class JSONParser { static InputStream is = null; static JSONArray jarray = null; stat