Discussion Forums  >  Introduce Yourself

Replies: 5    Views: 119

RachelB
Aspiring developer
Profile
Posts: 4
Reg: May 23, 2013
Queensland
10,690
07/07/13 04:33 AM (12 years ago)

Steep Learning Curve

New to app building and finding Buzztouch and forum great! Two questions: 1. When I make a change in Xcode to the downloaded project is/how this reflected in the Control Panel? 2. When using the Map Location plugin is it possible to change the map that first loads (America) before the Location loads? Thx
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/07/13 06:03 AM (12 years ago)
1) Well, it's not. What happens is, the "Project" is a collection of plugins and core files, that respond to the configuration file you build via the control panel. Settings in the control panel are downloaded into the app, and the app reacts (menus, screens, etc) depending on the configuration settings. Any changes you make in the code will not be reflected in the App Control Panel; it's a one way street, so to speak. 2) Not really sure, to be honest. But if you're feeling adventurous, you can try this: in the BT_screen_map.m file, under the method called "viewDidLoad", around line 97 or so is the part where it draws the map and gets it ready for display. Just above that (around line 95 or so) add these lines: CLLocationCoordinate2D curLoc; curLoc.latitude = 13.5; // estimate your latitude curLoc.longitude = 144.8; // estimate your longitude around line 102 or so, Insert new lines between the line: [self.mapView setScrollEnabled:TRUE]; and the line self.mapView.delegate = self; then add the following in between those lines: [self.mapView setCenterCoordinate:curLoc animated:TRUE]; and see how that works out... What we're trying to do is setup the center of the map close to your intended location 'before' the map actually 'loads'. This might help. Otherwise, I'm not sure what to tell you. And Welcome to Buzztouch! Looks like you're well on your way! Let us know what we can do to make it more fun for you! Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/07/13 06:07 AM (12 years ago)
Before: //mapView self.mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0, mapTop, mapWidth, mapHeight)]; self.mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; self.mapView.showsUserLocation = showUserLocation; self.mapView.mapType = mapType; [self.mapView setZoomEnabled:TRUE]; [self.mapView setScrollEnabled:TRUE]; self.mapView.delegate = self; [self.view addSubview:mapView]; After: //mapView CLLocationCoordinate2D curLoc; // <--- curLoc.latitude = 13.5; // estimate your latitude // <--- curLoc.longitude = 144.8; // estimate your longitude // <--- self.mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0, mapTop, mapWidth, mapHeight)]; self.mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; self.mapView.showsUserLocation = showUserLocation; self.mapView.mapType = mapType; [self.mapView setZoomEnabled:TRUE]; [self.mapView setScrollEnabled:TRUE]; [self.mapView setCenterCoordinate:curLoc animated:TRUE]; // <--- self.mapView.delegate = self; [self.view addSubview:mapView]; Cheers! -- Smug
 
RachelB
Aspiring developer
Profile
Posts: 4
Reg: May 23, 2013
Queensland
10,690
like
07/07/13 05:35 PM (12 years ago)
Awesome, thanks! Will give this a try. Cheers.
 
RachelB
Aspiring developer
Profile
Posts: 4
Reg: May 23, 2013
Queensland
10,690
like
07/08/13 02:33 AM (12 years ago)
Smug You are a genius! Works beautifully. Thx.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/08/13 03:48 AM (12 years ago)
Glad it helps :) Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.