【问题标题】:Need Tutorial of UAmodalPanel需要UAmodalPanel教程
【发布时间】:2012-04-08 15:55:57
【问题描述】:

我在下面的链接中看到了UAmodalPanel 的一个非常好的示例代码。但是在我下载代码后,我不知道它是如何工作的。有谁知道并知道是否有任何教程?

非常感谢。

【问题讨论】:

    标签: iphone ios xcode ipad uiviewcontroller


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2012-01-19
      • 2017-12-21
      • 1970-01-01
      • 2011-10-18
      • 2013-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-05
      相关资源
      最近更新 更多