2013-08-27 53 views

回答

1

沒有是沒有限制的,但如果你把圖標非常接近

保持在least 44 x 44 points每個工具欄項目一擊目標區域會造成問題。如果您將工具欄項目過於緊密地綁在一起,則人們無法輕敲他們想要的項目。

所以你的情況這將是有問題的,而敲擊UIToolBar圖標,因爲圖標會非常接近,如果你想給甚至是另一個

請閱讀developer.apple.com Icons for Toolbars 這個準則然後在每個按鈕之後放置彈性空間按鈕

-initWithBarButtonSystemItem:方法使用UIBarButtonSystemItemFlexibleSpace創建UIBarButtonItem,然後在每個實際工具欄項目之間插入該方法。

如:

UIBarButtonItem *FlexiButton = [[UIBarButton alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace]; 
myToolbar.items = [NSArray arrayWithObjects:buttonOne,FlexiButton,buttonTwo,FlexiButton,buttonThree,nil]; 
[FlexiButton release]; 
+0

非常感謝您Bhavak,所提供的信息是有幫助的 – user2720442

+0

hmm..enjoye編碼和馬的名字是bhavik..hehe ... anyways..if其解決您的問題,那麼請標記爲答案 –

+0

應該在工具欄按鈕 – user2720442

相關問題