Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードを実行すると、「非関数型 'MKMapItem?' の値を呼び出せませんか?」というエラーが表示されます。
request.source(MKMapItem.mapItemForCurrentLocation())
何が変わったのですか?
Swift 2 (Xcode Beta 5) では、次sourceのプロパティになりましたMKDirectionsRequest。
source
MKDirectionsRequest
したがって、代わりに:
それは今です:
request.source = MKMapItem.mapItemForCurrentLocation()