2012-11-19 3 views
0

I tableviewCell 내부의 단추와 뷰 콘트롤러 (내 popover) 사이에 segue를 만들 수 없습니다.iOS6에서 tableviewCell의 하위 뷰에 Popover 앵커 만들기

그래서 나는 테이블 뷰와 popover가 될 ViewController가 포함 된 컨트롤러에서 수동 segue를 추가하려고 시도했습니다. 그러나 그것은 segue가 앵커를 가져야한다는 에러를 내게합니다.

그런 다음 presentPopoverFromRect 메서드를 사용하여 팝업을 표시하려고했습니다. 하지만 내가보고 싶은 팝 오버를 볼 수는 없습니다. 그것은 빈 Popover (검정 또는 진한 파란색 색상)이며 또한 제대로 배치되지 않았습니다. 위치를 멀리 유지할 수 있습니다. 나는 단지 View Controller로 popover를 보여주고 싶다. 내가 사용한 코드가 여기에있다.

IPadProcBtnPanelViewController * temp = [[IPadProcBtnPanelViewController alloc] init]; 

    self.btnPanel = [[UIPopoverController alloc] initWithContentViewController:temp]; 
    CGRect rect = CGRectMake(10.0f, 10.0f, 44.0f, 215.0f); 

    [self.btnPanel presentPopoverFromRect:rect inView:self.selectedCell  permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; 

도움이 필요합니다. 감사. 누군가가 같은 문제가있는 경우

답변

관련 문제