summaryrefslogtreecommitdiff
path: root/Example Apps
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2019-05-23 11:51:24 -0400
committerJoel Fischer <joeljfischer@gmail.com>2019-05-23 11:51:24 -0400
commit65b66c831b7ef59a7422ecdea2f32a628c4005fc (patch)
tree4ccb75e927924819fa5b607e2aa6a972eed4979b /Example Apps
parentda195f18e68ace86629ae0d91db2589eb674f61f (diff)
downloadsdl_ios-65b66c831b7ef59a7422ecdea2f32a628c4005fc.tar.gz
Fix obj-c example app issues
Diffstat (limited to 'Example Apps')
-rw-r--r--Example Apps/Example ObjC/VehicleDataManager.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Example Apps/Example ObjC/VehicleDataManager.m b/Example Apps/Example ObjC/VehicleDataManager.m
index afb6ab267..1ec3139f9 100644
--- a/Example Apps/Example ObjC/VehicleDataManager.m
+++ b/Example Apps/Example ObjC/VehicleDataManager.m
@@ -106,13 +106,13 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param notification A SDLOnVehicleData notification
*/
-- (void)vehicleDataNotification:(SDLRPCMessage *)notification {
- if (![notification isKindOfClass:SDLOnVehicleData.class]) {
+- (void)vehicleDataNotification:(SDLRPCNotificationNotification *)notification {
+ if (![notification.notification isKindOfClass:SDLOnVehicleData.class]) {
return;
}
SDLOnVehicleData *onVehicleData = (SDLOnVehicleData *)notification;
- self.vehicleOdometerData = [NSString stringWithFormat:@"%@: %@ kph", VehicleDataOdometerName, onVehicleData.odometer];
+ self.vehicleOdometerData = [NSString stringWithFormat:@"%@: %@ km", VehicleDataOdometerName, onVehicleData.odometer];
if (!self.refreshUIHandler) { return; }
self.refreshUIHandler();