我需要自定義頁面,在任何事件可自定義的「按鈕菜單窗格」已從底部可見,就像應用程序之一「 Twitterrific「(請參閱截圖)。我試圖通過modalViewController屬性來實現,但它在整個屏幕上填充我的可定製視圖,並且我的父視圖在後臺消失。想要顯示「按鈕菜單視圖」從iphone底部出現iphone
代碼片段:
MyCustomizableButtonMenuContoller *buttonMenucontroller =
[[MyCustomizableButtonMenuContoller alloc] init];
// To show my customizable button menu from bottom at parent view on any event.
[self presentModalViewController:buttonMenucontroller animated:YES];
//To hide customizable button menu.
[self dismissModalViewConrollerAnimated:YES];
我也試着透明我的自定義按鈕功能表視圖,但它不會對我的要求工作。 UIActionsheet似乎是我正在尋找的一個,但是又有可能使用圖像自定義按鈕嗎?如果在屏幕截圖中有任何其他方法可以實現該方案,請告訴我您的發現或想法。
截圖:
Twitterrific screenshot http://scaline3.appspot.com/Button_menu_pane.png
你好本, 謝謝你隊友我的一天;),它通過核心動畫工作有點太棒了。喝彩! – nabeelmukhtar 2009-06-25 13:48:31