当我点击UITextView
的手势时,我想要显示iOS 7的放大镜。
请帮帮我!!!!
答案 0 :(得分:0)
请查看下面的链接。所有lib与放大镜样本应用
有关https://github.com/search?l=Objective-C&q=magnifying+glass&type=Repositories&utf8=%E2%9C%93
答案 1 :(得分:0)
在.m文件中添加此代码,您已在其中调用子类UITextfield
-(void)addGestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
{
//Prevent zooming but not panning
if ([gestureRecognizer isKindOfClass:[UILongPressGestureRecognizer class]])
{
gestureRecognizer.enabled =YES;
}
[super addGestureRecognizer:gestureRecognizer];
return;
}