mkmapview - iOS: Map view location with edge padding -


i have mkmapview shows user location , mkusertrackingbarbuttonitem. added edge padding line:

mapview.setvisiblemaprect(mapview.visiblemaprect, edgepadding: uiedgeinsetsmake(0.0, 0.0, (self.mapview.bounds.height-88.0)/2, 0.0), animated: true) 

i works problem when tap tracking button -to center user location- edge padding leaves.

how make work time ?

thanks


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -