<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Introduction to MapKit in iPhone OS 3.0</title>
	<atom:link href="http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/</link>
	<description>iPhone Programming Tutorials</description>
	<lastBuildDate>Thu, 09 Sep 2010 15:26:02 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: lib</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-5851</link>
		<dc:creator>lib</dc:creator>
		<pubDate>Tue, 13 Jul 2010 22:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-5851</guid>
		<description>Hi!! great tutorial but i was wondering i want the tableview be the full size of the window and also the map, do i need to create and extra xib for the tableview? or is other simple way posible? hope u can help me

thanks</description>
		<content:encoded><![CDATA[<p>Hi!! great tutorial but i was wondering i want the tableview be the full size of the window and also the map, do i need to create and extra xib for the tableview? or is other simple way posible? hope u can help me</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eduardo</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-5778</link>
		<dc:creator>eduardo</dc:creator>
		<pubDate>Wed, 07 Jul 2010 21:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-5778</guid>
		<description>Thanks GREAT TUTORIAL!!! The best!!!!</description>
		<content:encoded><![CDATA[<p>Thanks GREAT TUTORIAL!!! The best!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teddafan</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-5378</link>
		<dc:creator>teddafan</dc:creator>
		<pubDate>Sat, 08 May 2010 16:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-5378</guid>
		<description>Hi,

First, thank you very much for your very complete tutorial! I truly think it is the best around with the widest use of Mapkit.

Could someone tell me how it would possible to list in the tableView the annotations in order of distance to the distance location?

I thank you in advance for your help,

Cheers

teddafan</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>First, thank you very much for your very complete tutorial! I truly think it is the best around with the widest use of Mapkit.</p>
<p>Could someone tell me how it would possible to list in the tableView the annotations in order of distance to the distance location?</p>
<p>I thank you in advance for your help,</p>
<p>Cheers</p>
<p>teddafan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Mcpeck</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-5011</link>
		<dc:creator>Lee Mcpeck</dc:creator>
		<pubDate>Sat, 03 Apr 2010 02:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-5011</guid>
		<description>Very good piece of content, this is very similar to a site that I have. Please check it out sometime and feel free to leave me a comenet on it and tell me what you think. Im always looking for feedback.</description>
		<content:encoded><![CDATA[<p>Very good piece of content, this is very similar to a site that I have. Please check it out sometime and feel free to leave me a comenet on it and tell me what you think. Im always looking for feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wierboy</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4894</link>
		<dc:creator>Wierboy</dc:creator>
		<pubDate>Sat, 13 Mar 2010 18:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4894</guid>
		<description>I would also like to thank you for the very helpful tutorial!

I am having a problem, however, in that everything seems to be working properly with the exception that I am still seeing red pins instead of my custom annotation view. No errors, compiles and runs perfectly.

In the code snippet below, &quot;It&#039;s a bank&quot; is being written to the log so this code is being called and the conditional is correctly identifying the fact that the annotation being added is of type MyAppAnnotationTypeBank. I also changed the tutorial&#039;s clearColor to redColor in case the problem was with the image but I see no red background color.

Any suggestions would be greatly appreciated!!

Thanks!

-------------------------------

- (id)initWithAnnotation:(id )annotation reuseIdentifier:(NSString *)reuseIdentifier {
	
	MyAppAnnotation *myAnnotation = (MyAppAnnotation*)annotation;
	
	if([myAnnotation annotationType] == MyAppAnnotationTypeBank) {
		NSLog(@&quot;It&#039;s a bank&quot;);
		self = [super initWithAnnotation:myAnnotation reuseIdentifier:reuseIdentifier];
		self.frame = CGRectMake(0, 0, kHeight, kWidth);
		self.backgroundColor = [UIColor redColor];
		
		imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@&quot;bank.png&quot;]];
		imageView.frame = CGRectMake(kBorder, kBorder, kWidth - 2 * kBorder, kHeight - 2 * kBorder);
		[self addSubview:imageView];
	} ...</description>
		<content:encoded><![CDATA[<p>I would also like to thank you for the very helpful tutorial!</p>
<p>I am having a problem, however, in that everything seems to be working properly with the exception that I am still seeing red pins instead of my custom annotation view. No errors, compiles and runs perfectly.</p>
<p>In the code snippet below, &#8220;It&#8217;s a bank&#8221; is being written to the log so this code is being called and the conditional is correctly identifying the fact that the annotation being added is of type MyAppAnnotationTypeBank. I also changed the tutorial&#8217;s clearColor to redColor in case the problem was with the image but I see no red background color.</p>
<p>Any suggestions would be greatly appreciated!!</p>
<p>Thanks!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>- (id)initWithAnnotation:(id )annotation reuseIdentifier:(NSString *)reuseIdentifier {</p>
<p>	MyAppAnnotation *myAnnotation = (MyAppAnnotation*)annotation;</p>
<p>	if([myAnnotation annotationType] == MyAppAnnotationTypeBank) {<br />
		NSLog(@&#8221;It&#8217;s a bank&#8221;);<br />
		self = [super initWithAnnotation:myAnnotation reuseIdentifier:reuseIdentifier];<br />
		self.frame = CGRectMake(0, 0, kHeight, kWidth);<br />
		self.backgroundColor = [UIColor redColor];</p>
<p>		imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bank.png"]];<br />
		imageView.frame = CGRectMake(kBorder, kBorder, kWidth &#8211; 2 * kBorder, kHeight &#8211; 2 * kBorder);<br />
		[self addSubview:imageView];<br />
	} &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sijo</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4743</link>
		<dc:creator>Sijo</dc:creator>
		<pubDate>Fri, 26 Feb 2010 22:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4743</guid>
		<description>Can u help me in my problem.. I have to show 4 lines of data in that bubble..Like One title..then description, date, location name.. All the example showing only 2 lines of details. i tried  like appending wanted data in subtitle and seperated by a \n character.. But it didnt worked.. Plz help me</description>
		<content:encoded><![CDATA[<p>Can u help me in my problem.. I have to show 4 lines of data in that bubble..Like One title..then description, date, location name.. All the example showing only 2 lines of details. i tried  like appending wanted data in subtitle and seperated by a \n character.. But it didnt worked.. Plz help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4568</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 04 Feb 2010 03:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4568</guid>
		<description>Hi there, Outstanding tutorial, totally helped to understand the mapkit, I got one problem, am trying to push to a view controller for each pin ?I already have abutton in each annotation with the title there,but it just cant go through! I will be so thankful if anyone helped me on this please.</description>
		<content:encoded><![CDATA[<p>Hi there, Outstanding tutorial, totally helped to understand the mapkit, I got one problem, am trying to push to a view controller for each pin ?I already have abutton in each annotation with the title there,but it just cant go through! I will be so thankful if anyone helped me on this please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yoot</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4563</link>
		<dc:creator>Yoot</dc:creator>
		<pubDate>Wed, 03 Feb 2010 13:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4563</guid>
		<description>Hi,

thanks a lot for this tutorial, I&#039;ve one problem though, in the MKMapView I can only see an empty grid, without any map displayed on it...

Any idea of what&#039;s going on ?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks a lot for this tutorial, I&#8217;ve one problem though, in the MKMapView I can only see an empty grid, without any map displayed on it&#8230;</p>
<p>Any idea of what&#8217;s going on ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4425</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Wed, 20 Jan 2010 02:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4425</guid>
		<description>hello very nice tutorial.........,
      WhileYou being an iphone guru, i wanted ask you something.Do you know a GPS device that actually sends outs signals that the iphone can capture and convert it into latitudes and longitudes which u can use to track that device(using the Mapkit framework)?</description>
		<content:encoded><![CDATA[<p>hello very nice tutorial&#8230;&#8230;&#8230;,<br />
      WhileYou being an iphone guru, i wanted ask you something.Do you know a GPS device that actually sends outs signals that the iphone can capture and convert it into latitudes and longitudes which u can use to track that device(using the Mapkit framework)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachel</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4395</link>
		<dc:creator>Rachel</dc:creator>
		<pubDate>Fri, 15 Jan 2010 18:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4395</guid>
		<description>@Tom Biagioni

I&#039;m getting the same &quot;Terminating app due to uncaught exception ‘NSInvalidArgumentException’...&quot; error. I&#039;m wondering if you ever managed to figure out the problem?

Cheers,
Rachel</description>
		<content:encoded><![CDATA[<p>@Tom Biagioni</p>
<p>I&#8217;m getting the same &#8220;Terminating app due to uncaught exception ‘NSInvalidArgumentException’&#8230;&#8221; error. I&#8217;m wondering if you ever managed to figure out the problem?</p>
<p>Cheers,<br />
Rachel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Digiguy</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4377</link>
		<dc:creator>Digiguy</dc:creator>
		<pubDate>Thu, 14 Jan 2010 02:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4377</guid>
		<description>... I have of course added the CoreLocation.Fraameworh Resources, cleaned run... still the errors.

Sincerely,
Kirk</description>
		<content:encoded><![CDATA[<p>&#8230; I have of course added the CoreLocation.Fraameworh Resources, cleaned run&#8230; still the errors.</p>
<p>Sincerely,<br />
Kirk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Digiguy</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4376</link>
		<dc:creator>Digiguy</dc:creator>
		<pubDate>Thu, 14 Jan 2010 01:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4376</guid>
		<description>Hi all,
Great work on this.. .but I too am having some warning on  build. 
- (iCodeBlogAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation
{
WARNING: INITIALIZATION FROM A DISTINCT OBJECTIVE C TYPE
	iCodeBlogAnnotationView *annotationView = nil;
	
	if (annotation != mapView.userLocation) 
WARNING: LOCAL DELARATION OF &#039;MAPVIEW&#039; HIDES INSTANCE VARIABLE
	{
		//the rest of the ViewForAnnotation code goes here
		iCodeBlogAnnotation* myAnnotation = (iCodeBlogAnnotation *)annotation;
		if(myAnnotation.annotationType == iCodeBlogAnnotationTypeApple)
		{
		NSString* identifier = @&quot;Apple&quot;;
		iCodeBlogAnnotationView *newAnnotationView = (iCodeBlogAnnotationView *)[self.mapView dequeueReusableAnnotationViewWithIdentifier:identifier];
		............ rest of old code.........
}
	
	[annotationView setEnabled:YES];
	[annotationView setCanShowCallout:YES];
	}else{
		CLLocation *location = [[CLLocation alloc]
								initWithLatitude:annotation.coordinate.latitude
								longitude:annotation.coordinate.longitude];
		[self setCurrentLocation:location];
	}
	
	return annotationView;
}
It would be great if you could put all the mods here mentioned back into the source code. We would really appreciate it, and make a more complete tutorial, as the code isn&#039;t working right, and  hard to learn when it isn&#039;t quite all there. Thanks guys... love the site!

Sincerely,
Kirk</description>
		<content:encoded><![CDATA[<p>Hi all,<br />
Great work on this.. .but I too am having some warning on  build.<br />
- (iCodeBlogAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation<br />
{<br />
WARNING: INITIALIZATION FROM A DISTINCT OBJECTIVE C TYPE<br />
	iCodeBlogAnnotationView *annotationView = nil;</p>
<p>	if (annotation != mapView.userLocation)<br />
WARNING: LOCAL DELARATION OF &#8216;MAPVIEW&#8217; HIDES INSTANCE VARIABLE<br />
	{<br />
		//the rest of the ViewForAnnotation code goes here<br />
		iCodeBlogAnnotation* myAnnotation = (iCodeBlogAnnotation *)annotation;<br />
		if(myAnnotation.annotationType == iCodeBlogAnnotationTypeApple)<br />
		{<br />
		NSString* identifier = @&#8221;Apple&#8221;;<br />
		iCodeBlogAnnotationView *newAnnotationView = (iCodeBlogAnnotationView *)[self.mapView dequeueReusableAnnotationViewWithIdentifier:identifier];<br />
		&#8230;&#8230;&#8230;&#8230; rest of old code&#8230;&#8230;&#8230;<br />
}</p>
<p>	[annotationView setEnabled:YES];<br />
	[annotationView setCanShowCallout:YES];<br />
	}else{<br />
		CLLocation *location = [[CLLocation alloc]<br />
								initWithLatitude:annotation.coordinate.latitude<br />
								longitude:annotation.coordinate.longitude];<br />
		[self setCurrentLocation:location];<br />
	}</p>
<p>	return annotationView;<br />
}<br />
It would be great if you could put all the mods here mentioned back into the source code. We would really appreciate it, and make a more complete tutorial, as the code isn&#8217;t working right, and  hard to learn when it isn&#8217;t quite all there. Thanks guys&#8230; love the site!</p>
<p>Sincerely,<br />
Kirk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harpreet</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4245</link>
		<dc:creator>Harpreet</dc:creator>
		<pubDate>Sat, 02 Jan 2010 10:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4245</guid>
		<description>Very informative tutorial.

I want to make a small random number generator app and wanted to know if there is a way to initiate an IBAction implicitly during the launch of the application.

Thanks,
Harpreet</description>
		<content:encoded><![CDATA[<p>Very informative tutorial.</p>
<p>I want to make a small random number generator app and wanted to know if there is a way to initiate an IBAction implicitly during the launch of the application.</p>
<p>Thanks,<br />
Harpreet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4178</link>
		<dc:creator>Matteo</dc:creator>
		<pubDate>Wed, 23 Dec 2009 15:09:52 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4178</guid>
		<description>@Iphone Dev

I think you need to set your annotation in this delegate&#039;s function, like:

- (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id ) annotation{

MKAnnotationView *annView = [mapView dequeueReusableAnnotationViewWithIdentifier:@&quot;current loc&quot;];
annView=[[[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@&quot;current loc&quot;]autorelease];

//this set your annotation to be tappable
annView.canShowCallout = YES;

//set the blue button on the right of the annotation
annView.rightCalloutAccessoryView=[UIButton buttonWithType:UIButtonTypeDetailDisclosure];

}
//sorry for my bad english!!
Bye!</description>
		<content:encoded><![CDATA[<p>@Iphone Dev</p>
<p>I think you need to set your annotation in this delegate&#8217;s function, like:</p>
<p>- (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id ) annotation{</p>
<p>MKAnnotationView *annView = [mapView dequeueReusableAnnotationViewWithIdentifier:@"current loc"];<br />
annView=[[[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@&#8221;current loc&#8221;]autorelease];</p>
<p>//this set your annotation to be tappable<br />
annView.canShowCallout = YES;</p>
<p>//set the blue button on the right of the annotation<br />
annView.rightCalloutAccessoryView=[UIButton buttonWithType:UIButtonTypeDetailDisclosure];</p>
<p>}<br />
//sorry for my bad english!!<br />
Bye!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iphone Dev</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-4037</link>
		<dc:creator>Iphone Dev</dc:creator>
		<pubDate>Thu, 10 Dec 2009 06:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-4037</guid>
		<description>Hi,

This tutorial is very nice and saved my a lot.

i need to do like when i press on AnnotationView and it should goes to detailed view of that result.

I got method - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control.

but i dont know that what to do in that method. If anyone has done this then pls drop some code here.

Thanks so much.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This tutorial is very nice and saved my a lot.</p>
<p>i need to do like when i press on AnnotationView and it should goes to detailed view of that result.</p>
<p>I got method &#8211; (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control.</p>
<p>but i dont know that what to do in that method. If anyone has done this then pls drop some code here.</p>
<p>Thanks so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3788</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Tue, 24 Nov 2009 01:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3788</guid>
		<description>Very awesome.  Do you know if you can draw on a map?  ie. mark a green line along a block for places you can park or something.  Would I have to resort to using Quartz or something?</description>
		<content:encoded><![CDATA[<p>Very awesome.  Do you know if you can draw on a map?  ie. mark a green line along a block for places you can park or something.  Would I have to resort to using Quartz or something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ejpusa</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3677</link>
		<dc:creator>ejpusa</dc:creator>
		<pubDate>Tue, 17 Nov 2009 18:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3677</guid>
		<description>On adding the framework, you reference vs copy over.  Is there a problem  if you do click the check box and copy the framework?  

I always default to copy, so far no problems, just wondering what the rule of thumb is.

thanks</description>
		<content:encoded><![CDATA[<p>On adding the framework, you reference vs copy over.  Is there a problem  if you do click the check box and copy the framework?  </p>
<p>I always default to copy, so far no problems, just wondering what the rule of thumb is.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3661</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 16 Nov 2009 23:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3661</guid>
		<description>To get the built in user location to work simply do this:

&lt;pre&gt;
-(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation
{
	if ([annotation isKindOfClass:MKUserLocation.class]) return nil;
        //rest of code
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>To get the built in user location to work simply do this:</p>
<pre>
-(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation
{
	if ([annotation isKindOfClass:MKUserLocation.class]) return nil;
        //rest of code
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3536</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Sat, 07 Nov 2009 17:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3536</guid>
		<description>Thanks for the video!</description>
		<content:encoded><![CDATA[<p>Thanks for the video!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rinkart</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3471</link>
		<dc:creator>Rinkart</dc:creator>
		<pubDate>Mon, 02 Nov 2009 10:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3471</guid>
		<description>@Tom: thanks a lot for the help. i&#039;ve seen the current location. I&#039;ve implemented a parking space finder application with this. I have added options to change preferences of the mapview based on some selection criteria and i want to reload the map anytime a user selects any of these critiria. Can you pls offer help?</description>
		<content:encoded><![CDATA[<p>@Tom: thanks a lot for the help. i&#8217;ve seen the current location. I&#8217;ve implemented a parking space finder application with this. I have added options to change preferences of the mapview based on some selection criteria and i want to reload the map anytime a user selects any of these critiria. Can you pls offer help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishnu</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3425</link>
		<dc:creator>Vishnu</dc:creator>
		<pubDate>Sat, 31 Oct 2009 11:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3425</guid>
		<description>Hi,

Thanks for sharing your work. Great tutorial!!

When I build the source code, the app opened as shown below. At the background I could see only a graph kind of pattern with pins(figures) and no map.

/Users/308329/Desktop/Picture 2.png

How do I get it right?

Any help on this would be highly appreciated. 

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for sharing your work. Great tutorial!!</p>
<p>When I build the source code, the app opened as shown below. At the background I could see only a graph kind of pattern with pins(figures) and no map.</p>
<p>/Users/308329/Desktop/Picture 2.png</p>
<p>How do I get it right?</p>
<p>Any help on this would be highly appreciated. </p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Biagioni</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3403</link>
		<dc:creator>Tom Biagioni</dc:creator>
		<pubDate>Thu, 29 Oct 2009 17:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3403</guid>
		<description>@rinkart: it&#039;s there, just hidden behind one of the annotations Collin added to the apple annotation type. comment out the following code and youll see it

&lt;code&gt;
/*
workingCoordinate.latitude = 37.331741;
	workingCoordinate.longitude = -122.030564;
	iCodeBlogAnnotation *appleStore4 = [[iCodeBlogAnnotation alloc] initWithCoordinate:workingCoordinate];
	[appleStore4 setTitle:@&quot;Apple Headquarters&quot;];
	[appleStore4 setSubtitle:@&quot;The Mothership&quot;];
	[appleStore4 setAnnotationType:iCodeBlogAnnotationTypeApple];
 
	[mapView addAnnotation:appleStore4];
*/
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@rinkart: it&#8217;s there, just hidden behind one of the annotations Collin added to the apple annotation type. comment out the following code and youll see it</p>
<p><code><br />
/*<br />
workingCoordinate.latitude = 37.331741;<br />
	workingCoordinate.longitude = -122.030564;<br />
	iCodeBlogAnnotation *appleStore4 = [[iCodeBlogAnnotation alloc] initWithCoordinate:workingCoordinate];<br />
	[appleStore4 setTitle:@"Apple Headquarters"];<br />
	[appleStore4 setSubtitle:@"The Mothership"];<br />
	[appleStore4 setAnnotationType:iCodeBlogAnnotationTypeApple];</p>
<p>	[mapView addAnnotation:appleStore4];<br />
*/<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rinkart</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3383</link>
		<dc:creator>Rinkart</dc:creator>
		<pubDate>Mon, 26 Oct 2009 09:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3383</guid>
		<description>@Tom: I have implemented the steps, i have no errors but still cannot see the user location.</description>
		<content:encoded><![CDATA[<p>@Tom: I have implemented the steps, i have no errors but still cannot see the user location.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3337</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 21 Oct 2009 13:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3337</guid>
		<description>Nice Work!  That did the trick.  I guess the key was creating a condition where you wouldn&#039;t be attempting to pass annotationType to the userLocation annotation.

Thanks again!  Watch out for the app - &quot;Access My Library&quot; coming soon!  Allows you the ability to access all kinds of free material from your local library via your iphone/ipod touch.</description>
		<content:encoded><![CDATA[<p>Nice Work!  That did the trick.  I guess the key was creating a condition where you wouldn&#8217;t be attempting to pass annotationType to the userLocation annotation.</p>
<p>Thanks again!  Watch out for the app &#8211; &#8220;Access My Library&#8221; coming soon!  Allows you the ability to access all kinds of free material from your local library via your iphone/ipod touch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rinkart</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3317</link>
		<dc:creator>Rinkart</dc:creator>
		<pubDate>Tue, 20 Oct 2009 09:18:12 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3317</guid>
		<description>@Tom: I did a clean, and IT WORKED, thanks. where is the current location set? I cant find it.</description>
		<content:encoded><![CDATA[<p>@Tom: I did a clean, and IT WORKED, thanks. where is the current location set? I cant find it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rinkart</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3316</link>
		<dc:creator>Rinkart</dc:creator>
		<pubDate>Tue, 20 Oct 2009 08:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3316</guid>
		<description>@Tom: I have tom, but have the same error.</description>
		<content:encoded><![CDATA[<p>@Tom: I have tom, but have the same error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Biagioni</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3313</link>
		<dc:creator>Tom Biagioni</dc:creator>
		<pubDate>Tue, 20 Oct 2009 03:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3313</guid>
		<description>@rinkart: you need to add the core location framework to your project</description>
		<content:encoded><![CDATA[<p>@rinkart: you need to add the core location framework to your project</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rinkart</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3302</link>
		<dc:creator>Rinkart</dc:creator>
		<pubDate>Mon, 19 Oct 2009 11:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3302</guid>
		<description>hello Toni Biagioni, I have implemented your method for showing the current loaction of the user, but it gives me this error-&quot;.objc_class_CCLocation&quot;, referenced from:     
 literal-pointer@__OBJC@__cls_refs@CLLocation in iCodeMapViewController.o

please help</description>
		<content:encoded><![CDATA[<p>hello Toni Biagioni, I have implemented your method for showing the current loaction of the user, but it gives me this error-&#8221;.objc_class_CCLocation&#8221;, referenced from:<br />
 literal-pointer@__OBJC@__cls_refs@CLLocation in iCodeMapViewController.o</p>
<p>please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Biagioni</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3300</link>
		<dc:creator>Tom Biagioni</dc:creator>
		<pubDate>Mon, 19 Oct 2009 03:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3300</guid>
		<description>OK guys, I figured this out a while ago but totally forgot to post it, so here is the solution:

step one: add the CoreLocation framework to the project.

Step two: add this function to the iCodeMapViewController.m:

&lt;code&gt;
- (void)setCurrentLocation:(CLLocation *)location {
	MKCoordinateRegion region = {{0.0f, 0.0f}, {0.0f, 0.0f}};
	region.center = location.coordinate;
	region.span.longitudeDelta = 0.15f;
	region.span.latitudeDelta = 0.15f;
	[self.mapView setRegion:region animated:YES];
}
&lt;/code&gt;

step three: add this code to the ViewForAnnotation Method:

&lt;code&gt;
if (annotation != mapView.userLocation) {
//the rest of the ViewForAnnotation code goes here
}else{
	CLLocation *location = [[CLLocation alloc] 
							  initWithLatitude:annotation.coordinate.latitude
							  longitude:annotation.coordinate.longitude];
	[self setCurrentLocation:location];
}
&lt;/code&gt;

you can change the setCurrentLocation method however you want, right now it is set to zoom in on the current location, which doesn&#039;t seem all that helpful for this particular tutorial... but that should do it! hope it works for you!</description>
		<content:encoded><![CDATA[<p>OK guys, I figured this out a while ago but totally forgot to post it, so here is the solution:</p>
<p>step one: add the CoreLocation framework to the project.</p>
<p>Step two: add this function to the iCodeMapViewController.m:</p>
<p><code><br />
- (void)setCurrentLocation:(CLLocation *)location {<br />
	MKCoordinateRegion region = {{0.0f, 0.0f}, {0.0f, 0.0f}};<br />
	region.center = location.coordinate;<br />
	region.span.longitudeDelta = 0.15f;<br />
	region.span.latitudeDelta = 0.15f;<br />
	[self.mapView setRegion:region animated:YES];<br />
}<br />
</code></p>
<p>step three: add this code to the ViewForAnnotation Method:</p>
<p><code><br />
if (annotation != mapView.userLocation) {<br />
//the rest of the ViewForAnnotation code goes here<br />
}else{<br />
	CLLocation *location = [[CLLocation alloc]<br />
							  initWithLatitude:annotation.coordinate.latitude<br />
							  longitude:annotation.coordinate.longitude];<br />
	[self setCurrentLocation:location];<br />
}<br />
</code></p>
<p>you can change the setCurrentLocation method however you want, right now it is set to zoom in on the current location, which doesn&#8217;t seem all that helpful for this particular tutorial&#8230; but that should do it! hope it works for you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/comment-page-1/#comment-3285</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 16 Oct 2009 16:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=1297#comment-3285</guid>
		<description>If you set the mapView.showUserLocation = YES; and you do not have the delegate method: - (iCodeBlogAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation

everything works ok, except now we don&#039;t get the custom annotation feature.  How can we have our cake &amp; eat it too?</description>
		<content:encoded><![CDATA[<p>If you set the mapView.showUserLocation = YES; and you do not have the delegate method: &#8211; (iCodeBlogAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation</p>
<p>everything works ok, except now we don&#8217;t get the custom annotation feature.  How can we have our cake &amp; eat it too?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
