Ios 子视图未正确移动
我像Tinder应用程序一样左/右刷卡。当我滑动左/右卡片视图时,子视图移动异常。我正在使用ZLSwipeableViewSwift库Ios 子视图未正确移动,ios,swift,Ios,Swift,我像Tinder应用程序一样左/右刷卡。当我滑动左/右卡片视图时,子视图移动异常。我正在使用ZLSwipeableViewSwift库 func loadFront(){ if frontView == nil { frontView = NSBundle.mainBundle().loadNibNamed("CardFront", owner: self, options: nil).first as? CardFront self.addSubvie
func loadFront(){
if frontView == nil {
frontView = NSBundle.mainBundle().loadNibNamed("CardFront", owner: self, options: nil).first as? CardFront
self.addSubview(frontView!)
frontView?.frame = self.bounds
frontView?.hidden = false
}
}
您尝试过frontView吗?.boundes=self.boundsyes但结果相同您尝试过frontView吗?.boundes=self.boundsyes但结果相同