通常我会像下面这样初始化一个 UAModalPanel,它会正常工作
modalPanel = [[[UAExampleModalPanel alloc] initWithFrame:self.view.bounds withView:@"modalPanel_iPhone"] autorelease];
[self.view addSubview:modalPanel];
modalPanel.delegate = self;
[modalPanel showFromPoint:modalPanel.view.center];
但是如果我尝试将第一行更改为下面,我无法单击 X 按钮关闭子视图。我究竟做错了什么?
modalPanel = [[[UAExampleModalPanel alloc] initWithFrame:CGRectMake(10,10,100,100) withView:@"modalPanel_iPhone"] autorelease];