我創建的自定義導航按鈕是這樣的:導航按鈕點擊之外
UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setImage:[UIImage imageNamed:@"some.png"] forState:UIControlStateNormal];
....
[[current navigationItem] setLeftBarButtonItem:[[UIBarButtonItem alloc] initWithCustomView:button]];
如果電流的UIViewController *類型。 所有的工作都很好,並且創建了按鈕,但是它是可按鈕外部的可點擊區域,非常接近導航欄的中間部分。是否可以限制可點擊區域?
您的問題熟悉[本主題](http://stackoverflow.com/questions/9338681/issue-with-button-on-the-left-side-of-the-uinavigation-bar)。蘋果公司以這種方式使它易於使用 – dementiazz