2012-04-08 73 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];