ios - how to navigate to another view controller from uiview subclass(mapviewcontroller:MKmapview) -
im doing application on mapkit shows mutiple pins on map. when user touches annotation pin user taken detailed view. problem class implemented map subclass of mkmapkit. when tried use
supermarketdetailsviewcontroller *detailviewcontroller = [[supermarketdetailsviewcontroller alloc]init]; [self.navigationcontroller pushviewcontroller:detailviewcontroller animated:yes];
the error property "navigationcontroller" not found on object of type mapviewcontroller
how can navigate current view view in scenario?
to navigate, have embed mapviewcontroller in uinavigationcontrolelr (storyboard). crash should solved then.
Comments
Post a Comment