in my iPad application I'm currently working, I have a map annotation and every time I tapped it, a popover is being shown to show its detailview. I have no problem on showing the popover. My problem is, when I tapped an annotation thereby a popover is being displayed on top it, and then changes my orientation, the popover bounces, meaning, it's no longer placed on top of its corresponding map annotation. Any ideas guys? Thanks in advance.
Related
In the apple maps app if you tap on a MKPinAnnotation callout, the following view is displayed. Im trying to recreate something similar, but I'm unsure how to implement the satellite image (I assume it's a MKMapView over the coordinates of the annotation selected)and how to animated the stretch of the satellite view when the view beneath is pulled down? Also The satellite view constantly rotates back and forwards is this a standard animation?
In summary:
How is the map image at the top implemented?
How is it stretched/zoomed when the user drags the bottom(table) view down
How is the image animated so that it rotates, is it a built in feature?
How is the map image at the top implemented?
This is not a image. This is a MKMapView.
How is it stretched/zoomed when the user drags the bottom(table) view down
Update mapview.frame.size.height when scroll with scrollView.contentOffest.y.
How is the image animated so that it rotates, is it a built in feature?
MKMapView setCamera:animated: or animate MKMapView.camera
I made a sample you can download here.
I'm building an iPad app and there is something weird going on with the top edge of the view in relation to the status bar when the keyboard appears.
The view has a view with a segmented controller at the top with a container view below. When a button in the segmented controller is selected, the view in the container view changes.
I've done some research into the matter (it's definitely iOS 7 related) and have not found any kind of fix. I tried setting edgesForExtendedLayout to UIRectEdgeNone but that does not seem to have any effect. Even more strange, the view only moves half way to its original position when the keyboard dismisses. Any suggestions? I included screenshots below.
Original:
When keyboard appears:
After keyboard dismisses:
I can only assume your code is doing something to move the view when the keyboard appears then later disappears. So you state your view is a UIViewcontroller subclass (implying no contentOffset property). Log the values of the following before and after the keyboard action - one of them must have changed: contentInset, bounds, frame. Knowing which one will assist you in finding the problem.
Anyone knows how I can get the UISegmentedControl to overlap with the MapView and still display properly? I'm currently trying to get a UISegmentedControl to appear in from of a MKMapView for users to switch the map type. I attached screenshots below.
This is my story board. Notice that the "Map View Controller Scene" clearly shows that the segmented control is above the Map View layer.
When I run the app with this storyboard setup, the UISegmentedControl does not appear.
Now i did manage to make it appear, only if I make sure that the uisegmentedcontrol does NOT overlap with the MapView.
This is the same story board, but this time, no overlap exists between the UISegmentedControl and the MapView
The app running, clearly showing the UISegmentedControl at the bottom
thanks!
"This is my story board. Notice that the "Map View Controller Scene" clearly shows that the segmented control is above the Map View layer."
I think you really want it AFTER the Map View for the z-order to be correct.
Reverse the order of the MapView and the UISegmentedControl, i.e. drag the segmented control to below/after the Map View in your Map View Controller Scene
I had the same problem, but for me the difficulty was not the Z ordering. It was that my struts were not set properly. I had the top strut turned on, which was pushing it below the bottom of the viewable area in landscape orientation.
in iOS 5.0, iPad, in MKMapview, once the user has selected a place from a give table list of places, I need to move the annotation for that place on the MKMapview so that it appears towards the bottom of the screen..
so I cannot just call setCenterCoordinate using the location of the annotation, as that will centre this annotation on the screen whereas I need to make the annotation appear towards the bottom of the screen .
How would I do this?
Any help will be much appreciated. Thanks!
I have assigned the uipopover to a horizontally moving object. So when I keeps on moving the popover moves along with it. But I doesnt want it to move. Only want that bottom arrow to move and the popover origin should be same always. So it will appear like only the arrow is moving under it.
Can anyone know how to get this?
This was not possible and so I created a view that will look exactly like the popover and now everything is working fine.