xcode - iOS Animating Container Views makes them not respond to touch events -
i have storyboard 1 viewcontroller. viewcontroller holds 2 container views.
i want these 2 change position each other using standard animation. after animation done views dont respond touch events. behave static images , unresponsive.
i have tried using this:
uiview animatewithduration: animations: completion: uiview transitionwithview: duration: options: animations: completion:
i have properties childviewcontrollers
@property (nonatomic, strong) firstviewcontroller *fvc; @property (nonatomic, strong) secondviewcontroller *svc;
assigning these using:
self.fvc = self.childviewcontrollers[0]; self.svc = self.childviewcontrollers[1];
animating:
self.fvc.view self.svc.view
--------
without code it's hard tell you're doing wrong, i'm pretty sure problem views (after animating) out of superview's bounds. child view controller's views subviews of respective container views, , having them switch places, each view outside bounds of superview. should animating position of 2 container views, not views of children.
Comments
Post a Comment