English 中文(简体)
iPad - 重塑可见UIPop的arrow方向 主计长
原标题:iPad - redrawing the arrow direction of a visible UIPopOverController
  • 时间:2010-10-06 04:10:34
  •  标签:
  • ipad

我的物体在屏幕头三分之一附近。 想象在目标顶部(例如图像)和屏幕顶部之间有300个餐厅。

当我用200x200个 p子表示出烟雾,并指明任何方向时,烟雾可能出现在物体上,即物体与屏幕上。

如果由于某种原因,该波长携带另一种观点,并重新布置到物体与屏幕顶之间的可用空间之上,那么它就无法适应。 斯洛文尼亚解决了这种情况,即禁止人口迁移,使之尽可能多。 其结果是,这些内容被压缩,而且大概是烟雾会转移一小块,而arrow将毫无意义。

是否有任何办法使人口增加,以重新掌握最佳方向?

感谢。

最佳回答

您可以计算出您所需的future含量(contentView)的大小,将其与门槛值相比较,并用 force。 您可能需要试验门槛值,因为内容的大小取决于整个高位。

int popoverArrowDirection 15;//any
int threshold = 300;        
        if(viewThatWillbeInserted.frame.size.height>threshold)popoverArrowDirection = 1;//up


[myPopoverController presentPopoverFromBarButtonItem:myBarButton permittedArrowDirections:popoverArrowDirection animated:YES];

如果你事先知道这一高度,那么你就没有很多选择。

登革的局限使我倾向于把一个排pop为习俗观冷却器(如你看一页,你在一书的页上滑坡;这并不是实际的排气部分)。 这就意味着,如果你 down倒,并坚持新的大观点,那么你甚至可以把arrow子或其它 any子的原产地所形成的观点混为一谈。

我只是在企业中这样做,而且天气不灵,这是安全的 app!

问题回答

如果你放弃人口,然后在内容规模发生变化后重新表述,会发生什么情况?





相关问题
What is the iPad user agent?

From what I gather, the iPad is using iPhone OS, but with a different screen resolution from the iPhone and iPod touch. So many sites may have to change their user agent detection to adapt to the iPad....

iPhone OS 3.2 on the iPhone?

I have edited this OS 3.2 question based on advice that it could infringe Apple s NDA which is something I have no desire to do. For what its worth I didn t reveal anything likely to upset their ...

Does cocos2d framework work on iPad?

Does Cocos2d iPhone framework work on iPad? My guess would be yes, but wanted to check if someone has a definitive answer after porting iPhone project with cocos2d to iPad, or starting a new one.

Run iPhone SDK on iPad

I was wondering if anyone knows if you can run the iPhone SDK on an iPad. Tried looking through apple.com, but didn t find anything useful... I want to be able to develop -- from start to finish -- ...

What s new in iPhone SDK 3.2?

Apparently it is available (www.apple.com/ipad/sdk/), but I can t find a changelog... Not used to apple.com though. Does anybody have detailed information? What I would like to know is : are there ...

iPhone App Icons - Exact Radius?

I m trying to create the icon for my iPhone app, but don t know how to get the exact radius that the iPhone s icons use. I ve searched and searched for a tutorial or a template but can t find one. I ...

热门标签