在iOS 14中拖动视图时崩溃

在iOS 14中拖动视图时崩溃,ios,objective-c,Ios,Objective C,这是我的密码: -(void)didStartMovingSubView:(id)sender gestureRecognizer:(UIPanGestureRecognizer *)recognizer{ _hotSpot = (HotSpotView*)sender; CGPoint previousLocation = [recognizer translationInView:self.imageContainer]; _hotSp

这是我的密码:

    -(void)didStartMovingSubView:(id)sender gestureRecognizer:(UIPanGestureRecognizer *)recognizer{
        _hotSpot = (HotSpotView*)sender;
        CGPoint previousLocation = [recognizer translationInView:self.imageContainer];
        _hotSpot.center = CGPointMake(_hotSpot.center.x + previousLocation.x, 
                                    _hotSpot.center.y + previousLocation.y); // crashing here, same code is working in iOS 13 
    }
以下是错误消息:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Cannot get value with size 32. The type encoded as {CGPoint=dd} is expected to be 16 bytes'
terminating with uncaught exception of type NSException