forked from organicmaps/organicmaps
[cherry] [release-76-crash-fix] [ios] Fixed crash with wrong format specifier.
This commit is contained in:
parent
eb1c0a8112
commit
f01432d41c
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
extension String {
|
||||
init(coreFormat: String, arguments: [CVarArg]) {
|
||||
let format = coreFormat.replacingOccurrences(of: "%s", with: "%@")
|
||||
self.init(format: format, arguments: arguments)
|
||||
self.init(format: format, arguments: arguments.map { "\($0)" })
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue