iPhone google Maps Api

3 views
Skip to first unread message

Brian Herman

unread,
Aug 1, 2010, 8:13:37 AM8/1/10
to ca...@googlegroups.com
What is wrong with this code?

- (void) viewDidLoad : (void){

NSString *url = @"http://code.google.com/apis/maps/documentation/javascript/examples/map-geolocaton-iphone.html";

NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];

[webView loadRequest:request];

[super viewDidLoad];

}


Thanks,
Brian Herman

brianjherman.com
Research Assistant
University Of Illinois at Chicago
brian...@acm.org






Brian Herman

unread,
Aug 1, 2010, 8:45:58 AM8/1/10
to ca...@googlegroups.com
Forget about it guys I was putting code in the header file.
Sorry!

Walter Szulczewski

unread,
Aug 1, 2010, 6:58:50 PM8/1/10
to ca...@googlegroups.com
When I clicked on:
I got a 404 error.

-Walter

On Sun, Aug 1, 2010 at 7:13 AM, Brian Herman <brian...@gmail.com> wrote:
--
We meet at the Chicago Apple Store on Michigan Ave.
Map: http://www.apple.com/retail/northmichiganavenue/map/

CocoaHeads meets the 2nd Tuesday of each month @ 7:00
NSCoder Chicago meets occasionally
Subscribe to the ical, both NSCoder & CocoaHeads Chicago are on the calendar:
http://ical.mac.com/WebObjects/iCal.woa/wa/default?u=chicagobob&v=1&n=Chicago-CocoaHeads-CAWUG.ics
 
For occasional lunch time Mac geekery go to NSLunch.org & follow @NSLunch on Twitter
http://www.nslunch.org/
http://twitter.com/nslunch
 
You received this message because you are subscribed to the Google
Groups "CocoaHeads Chicago / CAWUG (Chicago Cocoa & WebObjects User
Group)" group.
To post to this group, send email to ca...@googlegroups.com
To unsubscribe from this group, send email to
cawug+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/cawug?hl=en

Blanche Faur

unread,
Aug 1, 2010, 7:15:19 PM8/1/10
to ca...@googlegroups.com

Brian Herman

unread,
Aug 1, 2010, 7:47:27 PM8/1/10
to ca...@googlegroups.com
I am not using a web view anymore. I am using apple's map view.
If you would like to buy me lunch I would love to talk about it.'
I am free all week except tuesday.
I figured out how to use the core location and map view and I am getting it to work with a map.
Here is a hint:
//
//  MyCLController.m
//  levelicio.us
//
//  Created by Brian Herman on 8/1/10.
//  Copyright 2010 AConsApart At Chicago. All rights reserved.
//
#import "MyCLController.h"

@implementation MyCLController

@synthesize locationManager;

- (id) init {
    self = [super init];
    if (self != nil) {
        self.locationManager = [[[CLLocationManager alloc] init] autorelease];
        self.locationManager.delegate = self; // send loc updates to myself
    }
    return self;
}

- (void)locationManager:(CLLocationManager *)manager
    didUpdateToLocation:(CLLocation *)newLocation
           fromLocation:(CLLocation *)oldLocation
{
    NSLog(@"Location: %@", [newLocation description]);
    NSString *parse_latitude = [newLocation description];
    NSString *parse_longitude = [newLocation description];
    parse_latitude = [parse_latitude substringWithRange:NSMakeRange(2, 11)];
    parse_longitude = [parse_longitude substringWithRange:NSMakeRange(14, 11)];
   
    UIAlertView *latitudealert = [[UIAlertView alloc] initWithTitle: @"Location" message: parse_latitude delegate: self cancelButtonTitle: @"Ok" otherButtonTitles: nil];
    UIAlertView *longitudealert = [[UIAlertView alloc] initWithTitle: @"Location" message: parse_longitude delegate: self cancelButtonTitle: @"Ok" otherButtonTitles: nil];

    [latitudealert show];
    [latitudealert release];
    [longitudealert show];
    [longitudealert release];
}
- (void)locationManager:(CLLocationManager *)manager
       didFailWithError:(NSError *)error
{
    NSLog(@"Error: %@", [error description]);
}

- (void)dealloc {
    [self.locationManager release];
    [super dealloc];
}

@end

Brian Herman

unread,
Aug 1, 2010, 8:18:36 PM8/1/10
to ca...@googlegroups.com
http://www.flavorstudios.com/iphone-icon-generator
Don't hire a designer.
Do it yourself!
Reply all
Reply to author
Forward
0 new messages