回答編集履歴
1
編集
answer
CHANGED
@@ -3,9 +3,10 @@
|
|
3
3
|
|
4
4
|
今回は引数がString型なので、「%@」という記載をしています。
|
5
5
|
引数がInt型なら「%d」など、"%〜"の形式で色んなデータ型の記載方法があります。
|
6
|
-
|
6
|
+
その他使い方などは、以下参考URLなどご参照ください。
|
7
7
|
|
8
8
|
---
|
9
9
|
|
10
10
|
**参考URL**
|
11
|
-
- [String Format Specifiers](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html)
|
11
|
+
- [String Format Specifiers](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html)
|
12
|
+
- [【Swift入門】数値を文字列(String)にformatする方法](https://www.sejuku.net/blog/34872)
|