我有一个在设备上的调试模式下正常工作的应用程序。我将应用程序发送到App Store,除iPhone 3G外,它工作正常。从App Store下载时,为什么我的应用程序在iPhone 3G上绘制不正确?
我的测试(调试)设备是一个iPhone 3G,它在调试中工作得很好,但是当我下载应用程序并通过App Store安装它时,它在我的iPhone上也不起作用。
我在代码中有一些NSLogs,并认为这可能是问题,但即使删除NSLog后,iPhone 3G上也会发生同样的情况。
的问题是,我使用下面的代码:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
mouseSwiped = YES;
UITouch *touch = [touches anyObject];
CGPoint currentPoint = [touch locationInView:self.view];
currentPoint.y -= 20;
UIGraphicsBeginImageContext(self.view.frame.size);
[drawImage.image drawInRect:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound);
CGContextSetLineWidth(UIGraphicsGetCurrentContext(), 5.0);
CGContextSetRGBStrokeColor(UIGraphicsGetCurrentContext(), 1.0, 0.0, 0.0, 1.0);
CGContextBeginPath(UIGraphicsGetCurrentContext());
CGContextMoveToPoint(UIGraphicsGetCurrentContext(), lastPoint.x, lastPoint.y);
CGContextAddLineToPoint(UIGraphicsGetCurrentContext(), currentPoint.x, currentPoint.y);
CGContextStrokePath(UIGraphicsGetCurrentContext());
drawImage.image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
lastPoint = currentPoint;
}
,并在iPhone 3G,这并不正确绘制。它只是使水平线。这适用于其他设备。
这里可能会出现什么问题?
非常感谢!这是帮助我的答案!我把armv6和armv7调试并释放,它对二进制文件起作用!再次感谢! – iPhoneNoob 2011-12-21 22:28:58
对不起,我是新来的所以我不知道如何接受'直到现在:) – iPhoneNoob 2012-01-21 15:41:09