2012-04-08 78 views
-1

我已经看到一个很好的示例代码UAmodalPanel作为下面的链接。但是在我下载代码后,我不知道它是如何工作的。有没有人有任何想法,并知道是否有任何教程?需要教程的UAmodalPanel

很多谢谢。

回答

0

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];