あなたはこのデモが効果を実装し、あなたのアイデアのためにこれをチェックアウトすることができ
乾杯 http://www.craftymind.com/creating-the-loupe-or-magnifying-glass-effect-on-the-iphone/
主なコードはこの
- (void)drawRect:(CGRect)rect {
// here we're just doing some transforms on the view we're magnifying,
// and rendering that view directly into this view,
// rather than the previous method of copying an image.
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextTranslateCTM(context,1*(self.frame.size.width*0.5),1*(self.frame.size.height*0.5));
CGContextScaleCTM(context, 1.5, 1.5);
CGContextTranslateCTM(context,-1*(touchPoint.x),-1*(touchPoint.y));
[self.viewToMagnify.layer renderInContext:context];
}
内蔵ズーム機能があり、なぜ一つは必要とされているようなものですテキストのみですか? – RobG
上記を参照してください(ただし、iPhoneには拡大機能が組み込まれていますが、もっと大きく、さらにズームする必要があります)。 – Roksalt