On Thu, 27 Jan 2011 08:01:02 -0500, Philip Vallone <philip.vall...@verizon.net> 
said:
>Hi,
>
>I am having trouble setting the size of the "call out bubble" on my 
>viewForAnnotation protocol. How can I set the frame size of the call out?
>
>This line has no effect:
>
>[callout setFrame:CGRectMake(0, 0, 240, 240)];
>
>Here is my code:
>
>- (MKAnnotationView *)mapView:(MKMapView *)MapView viewForAnnotation:(id 
><MKAnnotation>)annotation
>{
>       
>       MKPinAnnotationView *callout = (MKPinAnnotationView *) [self.mapView 
> dequeueReusableAnnotationViewWithIdentifier: @"PinIdentifier"];

Well, that's why setting the frame of the variable "callout" has no effect. You 
can name the annotation view by the variable name "callout", but that doesn't 
magically turn it into the callout. It is still the annotation view (i.e. the 
drawing of the pin). And since you are using the built-in pin-drawing 
annotation class, you can't even really customize that (except to set the color 
of the pin). m.

--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to