How to trigger a video when a user reaches a certain location?

前端 未结 3 1792
余生分开走
余生分开走 2021-01-14 08:56

This is my CoreLocationController.h objective c class

#import 
#import 
#import 

        
相关标签:
3条回答
  • 2021-01-14 09:32

    I think if you are just having trouble getting the mapView to zoom correctly, use the MKCoordinate stuff from this post, How do I zoom an MKMapView.

    I am working on a mapview as well that zooms to a decent level for viewing, and I am setting the lattitudeDelta and longitudeDelta for the map. Works good for me.

    0 讨论(0)
  • 2021-01-14 09:41

    I don't see you assigning the delegate for worldView (but you do for your other stuff). Try adding worldView.delegate = self; in your viewDidLoad.

    0 讨论(0)
  • 2021-01-14 09:45

    Perhaps something is wrong with setting the delegate? I usually specify the delegate in the .h file like this:

    id <CoreLocationControllerDelegate> delegate;
    

    and

    @property (nonatomic, assign) id <CoreLocationControllerDelegate> delegate;
    

    EDIT

    Also, did you check that -mapView:didUpdateUserLocation: is being called?

    0 讨论(0)
提交回复
热议问题