【发布时间】:2012-04-08 15:55:57
【问题描述】:
我在下面的链接中看到了UAmodalPanel 的一个非常好的示例代码。但是在我下载代码后,我不知道它是如何工作的。有谁知道并知道是否有任何教程?
非常感谢。
【问题讨论】:
标签: iphone ios xcode ipad uiviewcontroller
我在下面的链接中看到了UAmodalPanel 的一个非常好的示例代码。但是在我下载代码后,我不知道它是如何工作的。有谁知道并知道是否有任何教程?
非常感谢。
【问题讨论】:
标签: iphone ios xcode ipad uiviewcontroller
UAModalPanel 很容易理解。如果您不想使用块或委托,只需创建面板实例并调用 -showFromPoint: 如下:
//create panel instance
UAExampleModalPanel *modalPanel = [[[UAExampleModalPanel alloc] initWithFrame:self.view.bounds title:@"Example"] autorelease];
// Add the panel to our view
[self.view addSubview:modalPanel];
// Show the panel from the center of the screen
[modalPanel showFromPoint:self.view.center];
【讨论】: