我在Xcode 4.3中創建了一個彈出窗口。 我沒有得到任何錯誤消息,但是當我點擊構建並運行,我按是應該打開酥料餅的屏幕按鈕,應用程序崩潰和綠線的亮點在我的代碼,並說:創建UIPopoverController
線程1:斷點2.1 ..
這是什麼意思,我該如何解決它?
- (IBAction)popOver
{
SecondView *secondview = [[SecondView alloc] init];
UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:secondview];
[popover setDelegate:self];
[popover presentPopoverFromRect:CGRectMake(801, 401, 300, 200) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];
[popover setPopoverContentSize:CGSizeMake(300, 200)];
}
在此先感謝。這裏
可以還添加了一些要點在回答 – 2015-11-18 10:04:22
源代碼中的鏈接也存在於導師ial但上傳到G驅動器不上gist :) – 2015-11-19 05:08:57