Problem Zooming on Simulator


#1

I am using the simulator.

I have the code complete and it compiles but zooming is not working. I am using the option key and the mouse and I see the two dots but moving them together or apart has no effect on zooming. Here is the code that I have added.

[code]@interface HypnosisterAppDelegate : NSObject <UIApplicationDelegate, UIScrollViewDelegate> {
UIWindow *window;
HypnosisView *view;
}

[scrollView setMinimumZoomScale:0.5];
[scrollView setMaximumZoomScale:5];
[scrollView setDelegate:self];
  • (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
    {
    NSLog(@“Got a viewForZoomingInScrollView”);
    return view;
    }[/code]

The code never gets to the line: NSLog(@“Got a viewForZoomingInScrollView”);

Is there something else I need to do to get the simulator to zoom properly…or is it a code problem?


#2

Are you clicking and dragging once the two “fingers” are on the screen? Just moving won’t do it; because you can also hold shift and move the center of the fingers.