Comments (3)
@secuder das wird schon abgefangen, die Fehlermeldung generiere ich ja auch selber (kommt nicht von iOS). Den 1. Part der Fehlermeldung ist meine Meldung, den 2. Part, in Klammern ist die lokalisierte Fehlermeldung vom Framework. Ich werde das so lassen, weil es sinnvoll ist, dass man mitbekommen, woran der Fehler lag. z.B. ob Adresse falsch oder ob kein Netzwerk verfügbar oder sonst was. Dass da noch die Codes mit kommen, ist halt so, so kann der User wenigstens mit dem Code googeln, wenn er noch mehr Infos dazu haben will.
Im code sieht das in Etwa so aus
let alert = UIAlertController(
title: NSLocalizedString("Geocoding Error", comment: "Alert Title Geocoding Error"),
message: String.localizedStringWithFormat(
NSLocalizedString("Could not geocode address \"%@\" (%@)",
comment: "Geocoding Error Message Format String"),
addressString, error.localizedDescription),
preferredStyle: .alert
)
Man könnte natürlich alle Error-Codes, die zurückkommen selber parsen und eine passende Fehlermeldung erzeugen, da da lohnt der Aufwand in diesem Falle nicht. Auch die Wartung später nicht, wenn in iOS11 da neue Codes dazu kommen etc.. Da ist localizedDescription
quasi "wartungsfrei".
from evplugfinderpublic.
Oki. Ich fand das einfach komisch mit den zwei Klammern und dem Punkt nach der 8
from evplugfinderpublic.
ja, die () außen kommt von meinem Format String, das könnte man weglassen, stimmt! Ich ändere das mal!
from evplugfinderpublic.
Related Issues (20)
- Feature: Google Maps HOT 1
- Ladesäule Hochfelln Süd wird nicht angezeigt HOT 3
- Konformität GE API Nutzungsbedingungen HOT 3
- Anzeige der Ladekosten bzw. optimalen Ladekarte bei einem Ladepunkt
- Feature: iOS 12 SiriKit integration
- Links to GoingElectric opens privacy statement (since update 16.8.2018) HOT 2
- Charging station sharing: use deep links HOT 1
- Implement what3words for navigation HOT 1
- Ladesäulen werden nicht aktualisiert HOT 5
- iOS10 Geofencing Notification Rendering Tweaks HOT 4
- iOS 10 Push Messages Localization
- Tesla Superchargers are displayed even when not selected HOT 2
- Filter Zugangssystem/Ladekarte funktioniert nicht
- Feature request: Anzeige kompatible Ladekarten
- Widgets Not working
- Feature request : CarPlay Unterstützung mit iOS 14
- Feature request : Darkmode support
- New Tesla Supercharger don´t show up HOT 2
- Apple M1 Desktop Support
- Let user choose map layout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evplugfinderpublic.