Hi all, I'm very new to Creo, Gravity and programming in general so please excuse my ignorance! I'd like to apply the ability to zoom in and out of an image and I'm guessing I use the PinchGesture. I found an example in this forum but I cannot get it to work? I get the error "Runtime Error Unable to find size into class CREORectAction (PinchGesture1)" on my iPhone.
I have "User Interaction" checked and my pinchGesture code is...
if ( self.state == GestureRecognizerState.Began) { //initial frame ImageView1.refFrame = ImageView1.frame ; return ; } if (self.state == GestureRecognizerState.Ended) { //final frame var r = ImageView1.refFrame.copy(); r.size.width *= self.scale; r.size.height *= self.scale; r.origin.x -= (r.size.width - ImageView1.refFrame.size.width) / 2; r.origin.y -= (r.size.height - ImageView1.refFrame.size.height) / 2; ImageView1.frame = r; }
Any help would be really appreciated
Thanks