2010-10-22 40 views
5

我遇到了UIPopoverViewController佈局的問題。目前我正在播放PopOver的大小(350,820)。點擊UIAlertView的按鈕將顯示一個文本字段。同時鍵盤也會顯示。現在的問題是,每當鍵盤彈出我的PopOver變形。意味着popover的向上箭頭向右移動,並且popover的內容與其他內容混合。當鍵盤顯示時,UIPopoverView變得扭曲+ iPad

在這方面的任何幫助將不勝感激。

Thanx

+0

你知道了嗎?我也有同樣的問題 – user102008 2010-11-03 21:08:22

回答

2

我看到了同樣的問題。雖然這並不理想,但我的解決方法是讓彈出窗口變小,以便在不調整自身大小的情況下容納鍵盤。

//Work around a bug that causes the popover frame and table cells to become 
//corrupted when the keyboard is displayed and the popover resizes. 
[self setContentSizeForViewInPopover:CGSizeMake(320, 588)]; 

如果你的酥料餅的內容太大這種方法,你也許可以將它放置在一個UIScrollView小酥料餅中。

而且把這個解決方案: SplitViewController's popover UI error when UISearchBar is in focus

+0

我做了類似於你的事情。我也做了更小的popover。 – tek3 2010-11-12 10:44:27

0

我也是同樣的問題。然後,我的popover箭頭指向上方,並將箭頭方向朝下。它解決了這個問題。

相關問題