2
遇到问题,我的搜索没有任何结果。我有一个应用程序,我需要一个段控制对象(在启动popover的VC上)保持活动状态,并且在有活动时弹出。这甚至有可能吗?当UIPopOver处于活动状态时,将FirstResponder赋予UISegmentControl?
编辑: 以下解决方案:
self.myPopOver.passthroughViews = [[NSArray alloc] initWithObjects:_segPopOverControl, nil];
当初因为什么都没有使用已经给init passthroughViews为酥料饼。将UISegmentedController添加到列表中并完美工作。
明白了。谢谢你,先生。需要一个小小的变化,但你带领我走向正确的道路。 Cheers.'self.myPopOver.passthroughViews = [[NSArray alloc] initWithObjects:_segPopOverControl,nil];' – HeartlessCoder
你的版本有什么错误? –
基本上passthroughviews中没有任何对象,所以只需取出oldPassthrough部分并使用我的segmentedController初始化视图数组 – HeartlessCoder