2011-04-01 22 views
2

在iPad中,當你必須填寫密碼時,就像在保管箱中的應用程序一樣。我知道我必須創建自己的視圖,但是這是UIPopoverController中的視圖嗎?如果是這樣,可有人告訴我如何創建酥料餅的把我的密碼圖,所以它看起來是這樣的:UIPopoverController處理密碼框?

enter image description here

提前感謝!

回答

0

這不是一個popovercontroller。

就能呈現modalViewController爲此,保持modalPresentationStyle作爲UIModalPresentationFormSheet

urviewcontroller.modalPresentationStyle=UIModalPresentationFormSheet; 

[self presentModalViewController:urviewcontroller animated:YES]; 
+0

好吧,我如何得到這樣的邊界?因爲正常的UIModalPresentationFormSheet在其下方顯示了一個導航欄,並帶有視圖。在這裏你看到像UIPopOver的藍色/黑色邊框也有... – CyberK 2011-04-01 07:19:16

+0

可能是有另一種解決方法爲此..但我會在這種情況下做了..會採取一個藍色的彩色導航欄..相同顏色的主要查看,然後保持內部視圖比主視圖有點小..這樣你就可以得到這些邊界 – 2011-04-01 07:29:34

+0

Hmmmzz好的,但這不是我想這裏的方式..我認爲..也有一個漸變等視圖,使其看起來很好......任何其他想法? – CyberK 2011-04-01 07:36:48

0

我也正在passlok觀點,我已經使用了UIPopoverController自定義鍵盤。在這裏看起來是這樣的:

enter image description here