1
通常我會初始化UAModalPanel像下面,它會正常工作如何自定義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];