I don’t know if this caused a problem, but I wouldn’t do this:
self.view = mapView_;
Just add mapView_ to the subtitle, for example:
[self.view addSubview:mapView_]
In general, EXC_BAD_ACCESS crashes occur when you incorrectly manage memory (for example, an object is freed prematurely). Try to figure out which object is crashing.
Create your buttons in code, not in xib like IBOutlets. Otherwise, they do not load, since you are not using xib.
source share