English 中文(简体)
带有控控件的图像 [关闭]
原标题:Image with controls [closed]
问题回答

我不太明白你的意思, “ 和有控制像其他图像一样, 实际用作按钮、 UILABel 和文本字段 , 但我会给它一个机会 。

带有控件的半透明窗口应该像这样:

  • UIView - backgroundColor = clearColor [parent view]
    • UIView - alpha = 0.5 [transparent view]
    • controls - buttons, labels, etc

基本上, 此布局将为您提供一个透明的背景视图和可见控件。 只要确保您的控件与 < em > 透明视图 相同, 与您的控件具有相同的母体 [ < unem > 亲子视图 相同 。

要滑入/ 滑出, 您可以使用 :

[UIView beginAnimations:nil context:nil]
[UIView setAnimationDuration:0.3];

// move the parent view here

[UIView commitAnimations];

祝你好运!

如果我正确理解你,

  • creating your main view controller
  • creating separate UIView or UIViewController and setting its frame.origin parameters to hide it in left/right/top/bottom

Manage transparency in a way that DarkByte briefly explained. [example slidingView.alpha = 0.5;]

为了动画"滑动" 我宁愿使用:

[UIView animateWithDuration:animationDuration 
                      delay:wait
                    options: UIViewAnimationCurveEaseOut
                 animations:^{
                     /*Parameter changing code goes heare, for example: */ 
                     view.frame.origin.x = newX; 
                 } 
                 completion:^(BOOL finished){
                     /*Code which will be executed AFTER the animation goes heare*/
                 }];    

我认为很容易在动画后使用和设置执行的代码是非常方便的。





相关问题
How to start to create an application GUI using C#?

HI! I am new to C# and plan to use it for my application GUI. I am trying to make my GUI similar to SPSS:http://www.spss.com/images/08/statistics_screens/ez_rfm-big.jpg Is this easy in C#? Is there ...

Automatic height of edit box

My shoes application has three items stacked on top of each other (with a stack, of course), in order: A banner An edit box Two buttons in a flow What I want to do is have the banner stay at it s ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

UI Convention: Shortcut key for application exit? [closed]

Is there a convention for the shortcut keys for application exit? Some applications uses Alt+X some others use Ctrl+ X and Ctrl+Q. Applications like FF and IE doesnot assign a shortcut at all. So is ...

热门标签