2015-06-15 18 views
-2

我無法在Xcode 6.3中使用MapKit。它爲我創建屬性時顯示錯誤。 是 - Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named MKMapView'如何在Xcode 6.3中使用MapKit視圖?

+0

後一些代碼。確保你已經在你的項目中添加了MapKit框架,並嘗試遵循一些基本的教程,如http://www.devfright.com/mkmapview-and-mkmapview-delegate-tutorial/ –

+0

現在我變得像 - 嘗試啓動MapKit位置在不提示位置授權的情況下更新。必須首先調用 - [CLLocationManager requestWhenInUseAuthorization]或 - [CLLocationManager requestAlwaysAuthorization]。 –

+0

http://ashishkakkad.com/2014/12/ios-8-map-kit-obj-c-get-users-location/ –

回答

0

的錯誤確保您已在項目中加入MapKit框架並試圖遵循一些基本教程

IOS8 Mapkit tutorial