PDA

View Full Version : [IOS] beginner confused about the guide



ttttjjjj2008
13.11.2015, 00:48
I am carefully reading the guide and follow IOS steps, but still stuck, I have several questions,

1. in "Using the MapCreator settings file", it asked to generate the Json file and give code snippet code, but how to do that.
2. how to create a SKMapView instance, which view should I chose?

jimt2000
13.11.2015, 01:09
1. in "Using the MapCreator settings file", it asked to generate the Json file and give code snippet code, but how to do that.
I haven't used the MapCreator file, so I don't know anything on that.


2. how to create a SKMapView instance, which view should I chose?
Create a mapView just like you would any UIView, except use SKMapView

swift:



let mapView = MKMapView(frame: CGRectMake(0,0, width, height))


Objective C



SKMapView *mapView = [[SKMapView alloc] initWithFrame:CGRectMake(0,0, width, height)];


or

In your storyboard, add a UIView. Then in the Identity Inspector, change its class from UIView to SKMapView

ttttjjjj2008
13.11.2015, 04:29
god bless, thank you

Adela_Silvia
13.11.2015, 14:44
Using the MapCreator settings file: http://developer.skobbler.com/getting-started/ios#sec07