I want to teach this question by the fact that I am new to iphone application development and many times believe that I can be above my head. I am trying to find an action that will allow me to double-click anywhere in my full-screen UIScrollView to return to the main menu (MainMenuViewController).
Currently, the following code works for my ScrollViewController:
ScrollViewController.h #import <UIKit/UIKit.h> @interface ScrollViewController : UIViewController <UIScrollViewDelegate> { } @end ScrollViewController.m #import "ScrollViewController.h" UIScrollView *myScrollView; UIPageControl *myPageControl; @implementation ScrollViewController - (void)loadScrollViewWithPage:(UIView *)page { int pageCount = [[myScrollView subviews] count]; CGRect bounds = myScrollView.bounds; bounds.origin.x = bounds.size.width * pageCount; bounds.origin.y = 0; page.frame = bounds; [myScrollView addSubview:page]; } ...etc
Any advice or sample code for implementing double-clicking in a ScrollView controller is welcome so that I can return to my MainMenuViewController. In addition, please include changes to the Builder interface in the view (if necessary). I poured on the forums for many days and could not successfully complete this action. Thanks ... RJ
source share