0
我可以在iphone工具欄中放置多少個圖標?有沒有限制?我們可以添加超過5像6或7我可以在iphone工具欄中放置多少個圖標?有沒有限制?
我可以在iphone工具欄中放置多少個圖標?有沒有限制?我們可以添加超過5像6或7我可以在iphone工具欄中放置多少個圖標?有沒有限制?
沒有是沒有限制的,但如果你把圖標非常接近
保持在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];
非常感謝您Bhavak,所提供的信息是有幫助的 – user2720442
hmm..enjoye編碼和馬的名字是bhavik..hehe ... anyways..if其解決您的問題,那麼請標記爲答案 –
應該在工具欄按鈕 – user2720442