One, engineering drawings.
Second, the effect of the picture.
Three, code.
RootViewController.h
#import <UIKit/UIKit.h>
@interface Rootviewcontroller:uiviewcontroller
< Uigesturerecognizerdelegate>
Rootviewcontroller.m
#import "RootViewController.h" @interface Rootviewcontroller () @end @implementation Rootviewcontroller-(ID) Initwithnibname: (NSString *) Nibnameornil Bundle: (NSBundle *) Nibbundleornil {self = [super Initwithnibname:
Nibnameornil Bundle:nibbundleornil];
if (self) {//Custom initialization} return self;
}-(void) viewdidload {[Super viewdidload];//Do any additional setup after loading the view.//Add background image [self addview];} #pragma-mark-functions//Background image-(void) AddView {//Red background UIView *parentview=[[uiview Alloc]initwithframe:cgrectmake (50,
100, 200, 200)];
Parentview.backgroundcolor=[uicolor Redcolor];
[Self.view Addsubview:parentview];
[Parentview Setuserinteractionenabled:yes]; Moving gestures Uipangesturerecognizer *panrcognize=[[uipangesturerecognizer alloc] initwithtarget:self action: @selector (
Handlepan:)];
panrcognize.delegate=self;
[Panrcognize Setenabled:yes];
[Panrcognize delaystouchesended];
[Panrcognize Cancelstouchesinview];
[Parentview addgesturerecognizer:panrcognize]; } #pragMa Uigesturerecognizer Handles-(void) Handlepan: (Uipangesturerecognizer *) recognizer {NSLog (@ "--moving gesture-----"); void) didreceivememorywarning {[Super didreceivememorywarning];//Dispose of any of the can is recreated.}
The above code is about the Android program development to the background map plus mobile gestures to the full content, I hope to help!