1

can someone tell me plz if it's possible to use : UIGestureRecognizer on an image in ipad app to switch this image to fullscreen view when pinching in and back to the original size when pinching out? any sample of code will be great.

Thanks

iPadDevloperJr
  • 992
  • 3
  • 20
  • 34

1 Answers1

1

To hide navigation bar use -

[[self navigationController ] setNavigationBarHidden:NO animated:NO];

see my this answer to hide tabbar -

How to hide uitabbarcontroller

rene
  • 41,474
  • 78
  • 114
  • 152
Saurabh
  • 22,743
  • 12
  • 84
  • 133
  • Thanks for the link but it's an older post, i'm trying to do some stuff on ipad. so if you have another one :). – iPadDevloperJr Apr 07 '11 at 10:43
  • simple googling give me this - http://www.edumobile.org/iphone/iphone-programming-tutorials/how-to-detect-pinch-in-iphone/ – Saurabh Apr 07 '11 at 11:02
  • also check out this - http://stackoverflow.com/questions/3448614/uiimageview-gestures-zoom-rotate-question – Saurabh Apr 07 '11 at 11:04
  • Thanks for links, but i really want to go in fullscreen mode instead of zooming! – iPadDevloperJr Apr 07 '11 at 11:10
  • means you want to remove navigation bar and tab bar? – Saurabh Apr 07 '11 at 11:36
  • i don't understand? suppose i have i UIImageView that contain my image, how can i move it to fullscreen with pinching in and back to original mode when pinching out. i'm i clear? this is my question. – iPadDevloperJr Apr 07 '11 at 12:28
  • There is no automatic method to do this.. you have to do it manually. when pinching you have to hide your navigation bar and tab bar manually and set the image's frame to screen size.. – Saurabh Apr 07 '11 at 12:30
  • I posted code to hide navigation bar in answer and a link where you can find code to hide tab bar... Please check carefully!! – Saurabh Apr 07 '11 at 13:07
  • I think that you don't understand my question. my problem is how to pinch in => fullscreen, pinchout => normal size. i'm not intrested in tabbar i want to do this with UIGestureRecognizer if you have some ideas thanks. My problem is not the tabbar! – iPadDevloperJr Apr 07 '11 at 13:10