원하는보기 컨트롤러에 연결되어 있지 않은 카메라보기 위에 오버레이 UIView로 나타나는 정보 단추가 있습니다. 만졌을 때 아무 일도 일어나지 않습니다. 여기 정보 단추가 다른보기 컨트롤러에 연결되지 않습니다.
버튼을 만들고 여기에// Create a Button to get Help
infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight ] ;
CGRect buttonRect = infoButton.frame;
// Calculate the bottom right corner
buttonRect.origin.x = 455;
buttonRect.origin.y = 297;
[infoButton setFrame:buttonRect];
[infoButton addTarget:self action:@selector(presentInfo) forControlEvents:UIControlEventTouchUpInside];
[view addSubview:infoButton];
을 시도해보십시오 SEGUE에게
- (void) presentInfo
{
InfoViewController *ivc = [self.storyboard instantiateViewControllerWithIdentifier:@"InfoViewController"];
[self presentModalViewController:ivc animated:YES];
}
카메라를 기각하고, 호출 시도 ... 나는이
오 도움이 또는 당신이 만드는 UITapGestureRecognizer을 시도하고 그것을 줄 희망하지만 아무것도 다른 작동하지 않는 경우이 만 실제 절망적 인 솔루션입니다 카메라 해지 완료 핸들러에서 뷰 변경. –