The problem is that the xib file could not be found
Change this line
MapSearchView *controller = [[MapSearchView alloc] initWithNibName:@"MapSearchView" bundle:nil mapToDisplay:map];
to be
MapSearchView *controller = [[MapSearchView alloc] initWithNibName:@"MapSearchView" bundle:[NSBundle mainBundle] mapToDisplay:map];
Another thing ... Check the name of the xib file MapSearchView