문제

I'm developing an iPhone app and I am trying to solve the following problem. In my main viewcontroller view I add the view of an other viewcontroller as subview. But the touchesbegan function of the other viewcontroller doesn't respond to the touches. What is the best way to fix this problem?

도움이 되었습니까?

해결책

Not sure what you are doing this but adding views of one controller as a subview is another has been discouraged since iOS 5. In iOS 5 you can contain UIViewControllers within each other using the addChildViewController method. This answer provides a bit insight into the matter.

Update Apple's Documentation on containment.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top