Skip to content

Commit 2dbb096

Browse files
author
UQ Times
committed
カスタムGestureRecognizerとして、マウスジェスチャー機能をサンプル実装
1 parent 798d052 commit 2dbb096

File tree

13 files changed

+1628
-0
lines changed

13 files changed

+1628
-0
lines changed
Lines changed: 313 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,313 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
CE0832FD1556747F002851EA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE0832FC1556747F002851EA /* UIKit.framework */; };
11+
CE0832FF1556747F002851EA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE0832FE1556747F002851EA /* Foundation.framework */; };
12+
CE0833011556747F002851EA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE0833001556747F002851EA /* CoreGraphics.framework */; };
13+
CE0833071556747F002851EA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CE0833051556747F002851EA /* InfoPlist.strings */; };
14+
CE0833091556747F002851EA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CE0833081556747F002851EA /* main.m */; };
15+
CE08330D1556747F002851EA /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CE08330C1556747F002851EA /* AppDelegate.m */; };
16+
CE0833101556747F002851EA /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CE08330F1556747F002851EA /* ViewController.m */; };
17+
CE0833131556747F002851EA /* ViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = CE0833111556747F002851EA /* ViewController_iPhone.xib */; };
18+
CE0833161556747F002851EA /* ViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = CE0833141556747F002851EA /* ViewController_iPad.xib */; };
19+
CE08331E155674D2002851EA /* StrokeGestureRecognizer.m in Sources */ = {isa = PBXBuildFile; fileRef = CE08331D155674D2002851EA /* StrokeGestureRecognizer.m */; };
20+
/* End PBXBuildFile section */
21+
22+
/* Begin PBXFileReference section */
23+
CE0832F81556747F002851EA /* CustomizedGestureRecognizer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomizedGestureRecognizer.app; sourceTree = BUILT_PRODUCTS_DIR; };
24+
CE0832FC1556747F002851EA /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
25+
CE0832FE1556747F002851EA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
26+
CE0833001556747F002851EA /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
27+
CE0833041556747F002851EA /* CustomizedGestureRecognizer-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CustomizedGestureRecognizer-Info.plist"; sourceTree = "<group>"; };
28+
CE0833061556747F002851EA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
29+
CE0833081556747F002851EA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
30+
CE08330A1556747F002851EA /* CustomizedGestureRecognizer-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CustomizedGestureRecognizer-Prefix.pch"; sourceTree = "<group>"; };
31+
CE08330B1556747F002851EA /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
32+
CE08330C1556747F002851EA /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
33+
CE08330E1556747F002851EA /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
34+
CE08330F1556747F002851EA /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
35+
CE0833121556747F002851EA /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController_iPhone.xib; sourceTree = "<group>"; };
36+
CE0833151556747F002851EA /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController_iPad.xib; sourceTree = "<group>"; };
37+
CE08331C155674D2002851EA /* StrokeGestureRecognizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StrokeGestureRecognizer.h; sourceTree = "<group>"; };
38+
CE08331D155674D2002851EA /* StrokeGestureRecognizer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = StrokeGestureRecognizer.m; sourceTree = "<group>"; };
39+
/* End PBXFileReference section */
40+
41+
/* Begin PBXFrameworksBuildPhase section */
42+
CE0832F51556747F002851EA /* Frameworks */ = {
43+
isa = PBXFrameworksBuildPhase;
44+
buildActionMask = 2147483647;
45+
files = (
46+
CE0832FD1556747F002851EA /* UIKit.framework in Frameworks */,
47+
CE0832FF1556747F002851EA /* Foundation.framework in Frameworks */,
48+
CE0833011556747F002851EA /* CoreGraphics.framework in Frameworks */,
49+
);
50+
runOnlyForDeploymentPostprocessing = 0;
51+
};
52+
/* End PBXFrameworksBuildPhase section */
53+
54+
/* Begin PBXGroup section */
55+
CE0832ED1556747F002851EA = {
56+
isa = PBXGroup;
57+
children = (
58+
CE0833021556747F002851EA /* CustomizedGestureRecognizer */,
59+
CE0832FB1556747F002851EA /* Frameworks */,
60+
CE0832F91556747F002851EA /* Products */,
61+
);
62+
sourceTree = "<group>";
63+
};
64+
CE0832F91556747F002851EA /* Products */ = {
65+
isa = PBXGroup;
66+
children = (
67+
CE0832F81556747F002851EA /* CustomizedGestureRecognizer.app */,
68+
);
69+
name = Products;
70+
sourceTree = "<group>";
71+
};
72+
CE0832FB1556747F002851EA /* Frameworks */ = {
73+
isa = PBXGroup;
74+
children = (
75+
CE0832FC1556747F002851EA /* UIKit.framework */,
76+
CE0832FE1556747F002851EA /* Foundation.framework */,
77+
CE0833001556747F002851EA /* CoreGraphics.framework */,
78+
);
79+
name = Frameworks;
80+
sourceTree = "<group>";
81+
};
82+
CE0833021556747F002851EA /* CustomizedGestureRecognizer */ = {
83+
isa = PBXGroup;
84+
children = (
85+
CE08331C155674D2002851EA /* StrokeGestureRecognizer.h */,
86+
CE08331D155674D2002851EA /* StrokeGestureRecognizer.m */,
87+
CE08330B1556747F002851EA /* AppDelegate.h */,
88+
CE08330C1556747F002851EA /* AppDelegate.m */,
89+
CE08330E1556747F002851EA /* ViewController.h */,
90+
CE08330F1556747F002851EA /* ViewController.m */,
91+
CE0833111556747F002851EA /* ViewController_iPhone.xib */,
92+
CE0833141556747F002851EA /* ViewController_iPad.xib */,
93+
CE0833031556747F002851EA /* Supporting Files */,
94+
);
95+
path = CustomizedGestureRecognizer;
96+
sourceTree = "<group>";
97+
};
98+
CE0833031556747F002851EA /* Supporting Files */ = {
99+
isa = PBXGroup;
100+
children = (
101+
CE0833041556747F002851EA /* CustomizedGestureRecognizer-Info.plist */,
102+
CE0833051556747F002851EA /* InfoPlist.strings */,
103+
CE0833081556747F002851EA /* main.m */,
104+
CE08330A1556747F002851EA /* CustomizedGestureRecognizer-Prefix.pch */,
105+
);
106+
name = "Supporting Files";
107+
sourceTree = "<group>";
108+
};
109+
/* End PBXGroup section */
110+
111+
/* Begin PBXNativeTarget section */
112+
CE0832F71556747F002851EA /* CustomizedGestureRecognizer */ = {
113+
isa = PBXNativeTarget;
114+
buildConfigurationList = CE0833191556747F002851EA /* Build configuration list for PBXNativeTarget "CustomizedGestureRecognizer" */;
115+
buildPhases = (
116+
CE0832F41556747F002851EA /* Sources */,
117+
CE0832F51556747F002851EA /* Frameworks */,
118+
CE0832F61556747F002851EA /* Resources */,
119+
);
120+
buildRules = (
121+
);
122+
dependencies = (
123+
);
124+
name = CustomizedGestureRecognizer;
125+
productName = CustomizedGestureRecognizer;
126+
productReference = CE0832F81556747F002851EA /* CustomizedGestureRecognizer.app */;
127+
productType = "com.apple.product-type.application";
128+
};
129+
/* End PBXNativeTarget section */
130+
131+
/* Begin PBXProject section */
132+
CE0832EF1556747F002851EA /* Project object */ = {
133+
isa = PBXProject;
134+
attributes = {
135+
LastUpgradeCheck = 0430;
136+
ORGANIZATIONNAME = Individual;
137+
};
138+
buildConfigurationList = CE0832F21556747F002851EA /* Build configuration list for PBXProject "CustomizedGestureRecognizer" */;
139+
compatibilityVersion = "Xcode 3.2";
140+
developmentRegion = English;
141+
hasScannedForEncodings = 0;
142+
knownRegions = (
143+
en,
144+
);
145+
mainGroup = CE0832ED1556747F002851EA;
146+
productRefGroup = CE0832F91556747F002851EA /* Products */;
147+
projectDirPath = "";
148+
projectRoot = "";
149+
targets = (
150+
CE0832F71556747F002851EA /* CustomizedGestureRecognizer */,
151+
);
152+
};
153+
/* End PBXProject section */
154+
155+
/* Begin PBXResourcesBuildPhase section */
156+
CE0832F61556747F002851EA /* Resources */ = {
157+
isa = PBXResourcesBuildPhase;
158+
buildActionMask = 2147483647;
159+
files = (
160+
CE0833071556747F002851EA /* InfoPlist.strings in Resources */,
161+
CE0833131556747F002851EA /* ViewController_iPhone.xib in Resources */,
162+
CE0833161556747F002851EA /* ViewController_iPad.xib in Resources */,
163+
);
164+
runOnlyForDeploymentPostprocessing = 0;
165+
};
166+
/* End PBXResourcesBuildPhase section */
167+
168+
/* Begin PBXSourcesBuildPhase section */
169+
CE0832F41556747F002851EA /* Sources */ = {
170+
isa = PBXSourcesBuildPhase;
171+
buildActionMask = 2147483647;
172+
files = (
173+
CE0833091556747F002851EA /* main.m in Sources */,
174+
CE08330D1556747F002851EA /* AppDelegate.m in Sources */,
175+
CE0833101556747F002851EA /* ViewController.m in Sources */,
176+
CE08331E155674D2002851EA /* StrokeGestureRecognizer.m in Sources */,
177+
);
178+
runOnlyForDeploymentPostprocessing = 0;
179+
};
180+
/* End PBXSourcesBuildPhase section */
181+
182+
/* Begin PBXVariantGroup section */
183+
CE0833051556747F002851EA /* InfoPlist.strings */ = {
184+
isa = PBXVariantGroup;
185+
children = (
186+
CE0833061556747F002851EA /* en */,
187+
);
188+
name = InfoPlist.strings;
189+
sourceTree = "<group>";
190+
};
191+
CE0833111556747F002851EA /* ViewController_iPhone.xib */ = {
192+
isa = PBXVariantGroup;
193+
children = (
194+
CE0833121556747F002851EA /* en */,
195+
);
196+
name = ViewController_iPhone.xib;
197+
sourceTree = "<group>";
198+
};
199+
CE0833141556747F002851EA /* ViewController_iPad.xib */ = {
200+
isa = PBXVariantGroup;
201+
children = (
202+
CE0833151556747F002851EA /* en */,
203+
);
204+
name = ViewController_iPad.xib;
205+
sourceTree = "<group>";
206+
};
207+
/* End PBXVariantGroup section */
208+
209+
/* Begin XCBuildConfiguration section */
210+
CE0833171556747F002851EA /* Debug */ = {
211+
isa = XCBuildConfiguration;
212+
buildSettings = {
213+
ALWAYS_SEARCH_USER_PATHS = NO;
214+
ARCHS = (
215+
armv6,
216+
armv7,
217+
);
218+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
219+
COPY_PHASE_STRIP = NO;
220+
GCC_C_LANGUAGE_STANDARD = gnu99;
221+
GCC_DYNAMIC_NO_PIC = NO;
222+
GCC_OPTIMIZATION_LEVEL = 0;
223+
GCC_PREPROCESSOR_DEFINITIONS = (
224+
"DEBUG=1",
225+
"$(inherited)",
226+
);
227+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
228+
GCC_THUMB_SUPPORT = NO;
229+
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
230+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
231+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
232+
GCC_WARN_UNUSED_VARIABLE = YES;
233+
IPHONEOS_DEPLOYMENT_TARGET = 3.2;
234+
SDKROOT = iphoneos;
235+
TARGETED_DEVICE_FAMILY = "1,2";
236+
};
237+
name = Debug;
238+
};
239+
CE0833181556747F002851EA /* Release */ = {
240+
isa = XCBuildConfiguration;
241+
buildSettings = {
242+
ALWAYS_SEARCH_USER_PATHS = NO;
243+
ARCHS = (
244+
armv6,
245+
armv7,
246+
);
247+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
248+
COPY_PHASE_STRIP = YES;
249+
GCC_C_LANGUAGE_STANDARD = gnu99;
250+
GCC_THUMB_SUPPORT = NO;
251+
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
252+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
253+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
254+
GCC_WARN_UNUSED_VARIABLE = YES;
255+
IPHONEOS_DEPLOYMENT_TARGET = 3.2;
256+
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
257+
SDKROOT = iphoneos;
258+
TARGETED_DEVICE_FAMILY = "1,2";
259+
VALIDATE_PRODUCT = YES;
260+
};
261+
name = Release;
262+
};
263+
CE08331A1556747F002851EA /* Debug */ = {
264+
isa = XCBuildConfiguration;
265+
buildSettings = {
266+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
267+
GCC_PREFIX_HEADER = "CustomizedGestureRecognizer/CustomizedGestureRecognizer-Prefix.pch";
268+
GCC_THUMB_SUPPORT = NO;
269+
INFOPLIST_FILE = "CustomizedGestureRecognizer/CustomizedGestureRecognizer-Info.plist";
270+
IPHONEOS_DEPLOYMENT_TARGET = 3.2;
271+
PRODUCT_NAME = "$(TARGET_NAME)";
272+
WRAPPER_EXTENSION = app;
273+
};
274+
name = Debug;
275+
};
276+
CE08331B1556747F002851EA /* Release */ = {
277+
isa = XCBuildConfiguration;
278+
buildSettings = {
279+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
280+
GCC_PREFIX_HEADER = "CustomizedGestureRecognizer/CustomizedGestureRecognizer-Prefix.pch";
281+
GCC_THUMB_SUPPORT = NO;
282+
INFOPLIST_FILE = "CustomizedGestureRecognizer/CustomizedGestureRecognizer-Info.plist";
283+
IPHONEOS_DEPLOYMENT_TARGET = 3.2;
284+
PRODUCT_NAME = "$(TARGET_NAME)";
285+
WRAPPER_EXTENSION = app;
286+
};
287+
name = Release;
288+
};
289+
/* End XCBuildConfiguration section */
290+
291+
/* Begin XCConfigurationList section */
292+
CE0832F21556747F002851EA /* Build configuration list for PBXProject "CustomizedGestureRecognizer" */ = {
293+
isa = XCConfigurationList;
294+
buildConfigurations = (
295+
CE0833171556747F002851EA /* Debug */,
296+
CE0833181556747F002851EA /* Release */,
297+
);
298+
defaultConfigurationIsVisible = 0;
299+
defaultConfigurationName = Release;
300+
};
301+
CE0833191556747F002851EA /* Build configuration list for PBXNativeTarget "CustomizedGestureRecognizer" */ = {
302+
isa = XCConfigurationList;
303+
buildConfigurations = (
304+
CE08331A1556747F002851EA /* Debug */,
305+
CE08331B1556747F002851EA /* Release */,
306+
);
307+
defaultConfigurationIsVisible = 0;
308+
defaultConfigurationName = Release;
309+
};
310+
/* End XCConfigurationList section */
311+
};
312+
rootObject = CE0832EF1556747F002851EA /* Project object */;
313+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
// AppDelegate.h
3+
// CustomizedGestureRecognizer
4+
//
5+
// Created by UQ Times on 12/05/06.
6+
// Copyright (c) 2012年 Individual. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@class ViewController;
12+
13+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
14+
15+
@property (strong, nonatomic) UIWindow *window;
16+
17+
@property (strong, nonatomic) ViewController *viewController;
18+
19+
@end

0 commit comments

Comments
 (0)