objective c - MKPointAnnotation is overlaying my MKMapView -


this problem , i'm trying achieve http://i.stack.imgur.com/xpdqn.jpg

this tried achieve goal http://i.stack.imgur.com/lf5hy.png

and didupdatelocations delegate

- (void)locationmanager:(cllocationmanager *)manager didupdatelocations:(nsarray *)locations{     cllocation* location=[locations lastobject];       mkpointannotation*annotation=[[mkpointannotation alloc]init];     annotation.coordinate=location.coordinate;     annotation.title=@"me";     annotation.subtitle=@"current location";     mkcoordinateregion region;     region.center=location.coordinate;      if(mylocation!=nil){         [_mapasset removeannotation:mylocation];         mylocation=nil;     }      [_mapasset addannotation:annotation];     mylocation=annotation;      [self zoomtofitmapannotations:_mapasset]; } 

as can see in screenshot, mkpointannotation overlaying mkmapview.i tried put mapview in uiview (to use container) didn't work. believe reason why happening beacuse i'm putting annotation in code means on layers.

i'm using ios7.1 sdk , xcode5. advice can useful.

thanks in advance


thanks @evan_mulawski , answer here did tried.

first of deleted of mapview , containerview's attributes setshadowcolor,cornerradiues,maskstobounds e.g.

and deleted did in storyboard make them fresh new.

then added these code

[[_viewcontainer layer] setshadowopacity:0.55f]; [[_viewcontainer layer] setshadowradius:15.0f]; [[_viewcontainer layer] setcornerradius:8.0f]; [[_viewcontainer layer] setborderwidth:1.0f];

and fixed issue. helps


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -