我正面临仅在 iOS 7 中发生的手势问题。我在 UITextView 上添加 UIPinchGestureRecognizer,如下所示:
pinchGestRecognizer = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(scaleTextViews:)];
pinchGestRecognizer.delegate = self;
[multipleTextView addGestureRecognizer:pinchGestRecognizer];
在 scaleTextViews: 方法中,我编写了以下代码:
- (void)scaleTextViews:(UIPinchGestureRecognizer *)pinchGestRecognizer1
{
multipleTextView.transform = CGAffineTransformScale([multipleTextView transform], [pinchGestRecognizer1 scale], [pinchGestRecognizer1 scale]);
[pinchGestRecognizer1 setScale:1];
}
当我在 iOS 7 中放大 textview 并为文本赋予颜色时,我的 textView 被截断并改变了它的位置。
请建议我该怎么做。提前致谢...