#import \"MyLocationViewController.h\" #import @interface MyLocationViewController () @end @implementation MyLocationViewControll
Try
[self.view addSubview: textField];
Instead of
[mapView_ addSubview:textField];
This may help you.