Tag: 撤销重做

在iOS中使用多点触控绘图进行撤消

我正在使用多点触控书写,所以基本上我正在做的是,我手写支持,因为通常,它的用户权限,我跟着这个链接如何忽略多点触控顺序中的某些UITouch点 一切工作正常,但是当我用手触摸屏幕的时候,他们是撤销的一些问题,否则它工作正常。 以下是我的代码 -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch* topmostTouch = self.trackingTouch; for (UITouch *touch in touches) { ctr = 0; touchStartPoint1 = [touch locationInView:self]; [m_undoArray removeAllObjects]; [m_redoArray removeAllObjects]; [m_parentRedoArray removeAllObjects]; if(!topmostTouch || [topmostTouch locationInView:self].y > touchStartPoint1.y) { topmostTouch = touch; pts[0] = touchStartPoint1; } } if (self.trackingTouch != nil && self.trackingTouch != topmostTouch) // […]

撤销/重做如何基本上在iPhone OS上工作?

我的应用程序还没有使用核心数据。 是真的,我必须使用核心数据撤销/重做? 而且:用户如何做撤销/重做? 我从来没有看到它的行动,从来没有使用它。 不知道我应该怎么做,如果我想。 没有任何撤消/重做button。 然而他们说它有撤销/重做。 那么用户如何触发呢?