├── README.md
├── LLSHitTestView.xcodeproj
├── xcuserdata
│ └── liulishuo.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── LLSHitTestView.xcscheme
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ └── liulishuo.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
└── project.pbxproj
└── LLSHitTestView
├── ViewController.h
├── AppDelegate.h
├── main.m
├── LLSHitTestView.h
├── Assets.xcassets
└── AppIcon.appiconset
│ └── Contents.json
├── Info.plist
├── Base.lproj
├── LaunchScreen.storyboard
└── Main.storyboard
├── ViewController.m
├── AppDelegate.m
└── LLSHitTestView.m
/README.md:
--------------------------------------------------------------------------------
1 | # LLSHitTestView
2 |
3 | 使用递归实现了子视图超出父视图范围响应触摸事件
4 |
5 | 文章链接:http://www.jianshu.com/p/e08b80856e1a
6 |
--------------------------------------------------------------------------------
/LLSHitTestView.xcodeproj/xcuserdata/liulishuo.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/LLSHitTestView.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LLSHitTestView.xcodeproj/project.xcworkspace/xcuserdata/liulishuo.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liulishuo/LLSHitTestView/HEAD/LLSHitTestView.xcodeproj/project.xcworkspace/xcuserdata/liulishuo.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/LLSHitTestView/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // LLSHitTestView
4 | //
5 | // Created by liulishuo on 11/30/15.
6 | // Copyright © 2015 liulishuo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/LLSHitTestView/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // LLSHitTestView
4 | //
5 | // Created by liulishuo on 11/30/15.
6 | // Copyright © 2015 liulishuo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/LLSHitTestView/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // LLSHitTestView
4 | //
5 | // Created by liulishuo on 11/30/15.
6 | // Copyright © 2015 liulishuo. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/LLSHitTestView.xcodeproj/xcuserdata/liulishuo.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | LLSHitTestView.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 1435894B1C0C72BF001B82F8
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/LLSHitTestView/LLSHitTestView.h:
--------------------------------------------------------------------------------
1 | //
2 | // LLSHitTestView.h
3 | // LLSHitTestView
4 | //
5 | // Created by liulishuo on 11/30/15.
6 | // Copyright © 2015 liulishuo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | /**
12 | * @author Liulishuo
13 | *
14 | * 指定hit-testing规则
15 | */
16 | typedef NS_ENUM(NSInteger, LLSHitTestType) {
17 | /**
18 | * @author Liulishuo
19 | *
20 | * 正常
21 | */
22 | LLSHitTestTypeNormal,
23 | /**
24 | * @author Liulishuo
25 | *
26 | * 不响应事件 && 不截断响应链
27 | */
28 | LLSHitTestTypeIgnore,
29 | /**
30 | * @author Liulishuo
31 | *
32 | * 可超出父视图范围响应
33 | * 其上子视图的hit-testing规则全部失效
34 | */
35 | LLSHitTestTypeNoClip,
36 |
37 | };
38 |
39 | @interface LLSHitTestView : UIView
40 |
41 | @property (nonatomic, assign) LLSHitTestType hitTestType;
42 |
43 | @property (nonatomic, strong) UIBezierPath *path;//用来指定区域
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/LLSHitTestView/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/LLSHitTestView/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/LLSHitTestView/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/LLSHitTestView/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // LLSHitTestView
4 | //
5 | // Created by liulishuo on 11/30/15.
6 | // Copyright © 2015 liulishuo. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "LLSHitTestView.h"
11 |
12 | @interface ViewController ()
13 | @property (weak, nonatomic) IBOutlet LLSHitTestView *view1;
14 | @property (weak, nonatomic) IBOutlet LLSHitTestView *view2;
15 | @property (weak, nonatomic) IBOutlet LLSHitTestView *view3;
16 | @property (weak, nonatomic) IBOutlet LLSHitTestView *view4;
17 |
18 | @end
19 |
20 | @implementation ViewController
21 |
22 | - (void)viewDidLoad {
23 | [super viewDidLoad];
24 | // Do any additional setup after loading the view, typically from a nib.
25 |
26 | _view1.hitTestType = LLSHitTestTypeNoClip;
27 |
28 | // _view2.hitTestType = LLSHitTestTypeIgnore;
29 |
30 | UIBezierPath *path = [UIBezierPath bezierPath];
31 |
32 | CGPoint pointStart = CGPointMake(_view4.frame.size.width/2, _view4.frame.size.height/3);
33 | CGPoint pointEnd = CGPointMake(_view4.frame.size.width/2, _view4.frame.size.height);
34 | CGPoint controlPoint1 = CGPointMake(_view4.frame.size.width, 0);
35 | CGPoint controlPoint4 = CGPointMake(0, 0);
36 | CGPoint controlPoint5 = CGPointMake(_view4.frame.size.width, _view4.frame.size.height/2);
37 | CGPoint controlPoint6 = CGPointMake(0, _view4.frame.size.height/2);
38 |
39 | [path moveToPoint:pointStart];
40 | [path addCurveToPoint:pointEnd controlPoint1:controlPoint1 controlPoint2:controlPoint5];
41 | [path addCurveToPoint:pointStart controlPoint1:controlPoint6 controlPoint2:controlPoint4];
42 |
43 | // _view4.path = path;
44 |
45 |
46 | }
47 |
48 | - (void)didReceiveMemoryWarning {
49 | [super didReceiveMemoryWarning];
50 | // Dispose of any resources that can be recreated.
51 | }
52 |
53 | - (IBAction)tap1:(id)sender {
54 | NSLog(@"tap1");
55 | }
56 |
57 | - (IBAction)tap2:(id)sender {
58 | NSLog(@"tap2");
59 | }
60 |
61 | - (IBAction)tap3:(id)sender {
62 | NSLog(@"tap3");
63 | }
64 |
65 | - (IBAction)tap4:(id)sender {
66 | NSLog(@"tap4");
67 | }
68 |
69 | @end
70 |
--------------------------------------------------------------------------------
/LLSHitTestView/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // LLSHitTestView
4 | //
5 | // Created by liulishuo on 11/30/15.
6 | // Copyright © 2015 liulishuo. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/LLSHitTestView/LLSHitTestView.m:
--------------------------------------------------------------------------------
1 | //
2 | // LLSHitTestView.m
3 | // LLSHitTestView
4 | //
5 | // Created by liulishuo on 11/30/15.
6 | // Copyright © 2015 liulishuo. All rights reserved.
7 | //
8 |
9 | #import "LLSHitTestView.h"
10 |
11 | @implementation LLSHitTestView
12 |
13 | - (nullable UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
14 | {
15 |
16 | UIView *view = [super hitTest:point withEvent:event];
17 |
18 | if(_hitTestType == LLSHitTestTypeIgnore)
19 | {
20 | if([view isEqual:self])
21 | {
22 | return nil;
23 | }
24 | }
25 |
26 | //优先判断子视图可否响应事件
27 | UIView *tempView;
28 | if (_hitTestType == LLSHitTestTypeNoClip)
29 | {
30 | tempView = [self getTargetView:self point:point event:event];
31 | }
32 |
33 | //如果是 返回
34 | if(tempView)
35 | {
36 | view = tempView;
37 | }
38 |
39 | //是否需要指定范围
40 | if(_path)
41 | {
42 | if(!CGPathContainsPoint(_path.CGPath, NULL, point, NO))
43 | {
44 | return nil;
45 | }
46 | }
47 |
48 |
49 | return view;
50 | }
51 |
52 | - (UIView *)getTargetView:(UIView *)view
53 | point:(CGPoint)point
54 | event:(UIEvent *)event
55 | {
56 |
57 | __block UIView *subView;
58 |
59 | //逆序 由层级最低 也就是最上层的子视图开始
60 | [view.subviews enumerateObjectsWithOptions:NSEnumerationReverse usingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
61 | //point 从view 转到 obj中
62 | CGPoint hitPoint = [obj convertPoint:point fromView:view];
63 | // NSLog(@"%@ - %@",NSStringFromCGPoint(point),NSStringFromCGPoint(hitPoint));
64 |
65 | if([obj pointInside:hitPoint withEvent:event])//在当前视图范围内
66 | {
67 | if(obj.subviews.count != 0)
68 | {
69 | //如果有子视图 递归
70 | subView = [self getTargetView:obj point:hitPoint event:event];
71 |
72 | if(!subView)
73 | {
74 | //如果没找到 提交当前视图
75 | subView = obj;
76 | }
77 | }
78 | else
79 | {
80 | subView = obj;
81 | }
82 |
83 | *stop = YES;
84 | }
85 | else//不在当前视图范围内
86 | {
87 | if(obj.subviews.count != 0)
88 | {
89 | //如果有子视图 递归
90 | subView = [self getTargetView:obj point:hitPoint event:event];
91 | }
92 | }
93 |
94 | }];
95 |
96 | return subView;
97 | }
98 |
99 |
100 | @end
101 |
--------------------------------------------------------------------------------
/LLSHitTestView.xcodeproj/xcuserdata/liulishuo.xcuserdatad/xcschemes/LLSHitTestView.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/LLSHitTestView/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/LLSHitTestView.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 143589511C0C72BF001B82F8 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 143589501C0C72BF001B82F8 /* main.m */; };
11 | 143589541C0C72BF001B82F8 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 143589531C0C72BF001B82F8 /* AppDelegate.m */; };
12 | 143589571C0C72BF001B82F8 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 143589561C0C72BF001B82F8 /* ViewController.m */; };
13 | 1435895A1C0C72BF001B82F8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 143589581C0C72BF001B82F8 /* Main.storyboard */; };
14 | 1435895C1C0C72BF001B82F8 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1435895B1C0C72BF001B82F8 /* Assets.xcassets */; };
15 | 1435895F1C0C72BF001B82F8 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1435895D1C0C72BF001B82F8 /* LaunchScreen.storyboard */; };
16 | 143589681C0C72E2001B82F8 /* LLSHitTestView.m in Sources */ = {isa = PBXBuildFile; fileRef = 143589671C0C72E2001B82F8 /* LLSHitTestView.m */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXFileReference section */
20 | 1435894C1C0C72BF001B82F8 /* LLSHitTestView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LLSHitTestView.app; sourceTree = BUILT_PRODUCTS_DIR; };
21 | 143589501C0C72BF001B82F8 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
22 | 143589521C0C72BF001B82F8 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
23 | 143589531C0C72BF001B82F8 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
24 | 143589551C0C72BF001B82F8 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
25 | 143589561C0C72BF001B82F8 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
26 | 143589591C0C72BF001B82F8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
27 | 1435895B1C0C72BF001B82F8 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
28 | 1435895E1C0C72BF001B82F8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
29 | 143589601C0C72BF001B82F8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
30 | 143589661C0C72E2001B82F8 /* LLSHitTestView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LLSHitTestView.h; sourceTree = ""; };
31 | 143589671C0C72E2001B82F8 /* LLSHitTestView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LLSHitTestView.m; sourceTree = ""; };
32 | /* End PBXFileReference section */
33 |
34 | /* Begin PBXFrameworksBuildPhase section */
35 | 143589491C0C72BF001B82F8 /* Frameworks */ = {
36 | isa = PBXFrameworksBuildPhase;
37 | buildActionMask = 2147483647;
38 | files = (
39 | );
40 | runOnlyForDeploymentPostprocessing = 0;
41 | };
42 | /* End PBXFrameworksBuildPhase section */
43 |
44 | /* Begin PBXGroup section */
45 | 143589431C0C72BF001B82F8 = {
46 | isa = PBXGroup;
47 | children = (
48 | 1435894E1C0C72BF001B82F8 /* LLSHitTestView */,
49 | 1435894D1C0C72BF001B82F8 /* Products */,
50 | );
51 | sourceTree = "";
52 | };
53 | 1435894D1C0C72BF001B82F8 /* Products */ = {
54 | isa = PBXGroup;
55 | children = (
56 | 1435894C1C0C72BF001B82F8 /* LLSHitTestView.app */,
57 | );
58 | name = Products;
59 | sourceTree = "";
60 | };
61 | 1435894E1C0C72BF001B82F8 /* LLSHitTestView */ = {
62 | isa = PBXGroup;
63 | children = (
64 | 143589521C0C72BF001B82F8 /* AppDelegate.h */,
65 | 143589531C0C72BF001B82F8 /* AppDelegate.m */,
66 | 143589551C0C72BF001B82F8 /* ViewController.h */,
67 | 143589561C0C72BF001B82F8 /* ViewController.m */,
68 | 143589661C0C72E2001B82F8 /* LLSHitTestView.h */,
69 | 143589671C0C72E2001B82F8 /* LLSHitTestView.m */,
70 | 143589581C0C72BF001B82F8 /* Main.storyboard */,
71 | 1435895B1C0C72BF001B82F8 /* Assets.xcassets */,
72 | 1435895D1C0C72BF001B82F8 /* LaunchScreen.storyboard */,
73 | 143589601C0C72BF001B82F8 /* Info.plist */,
74 | 1435894F1C0C72BF001B82F8 /* Supporting Files */,
75 | );
76 | path = LLSHitTestView;
77 | sourceTree = "";
78 | };
79 | 1435894F1C0C72BF001B82F8 /* Supporting Files */ = {
80 | isa = PBXGroup;
81 | children = (
82 | 143589501C0C72BF001B82F8 /* main.m */,
83 | );
84 | name = "Supporting Files";
85 | sourceTree = "";
86 | };
87 | /* End PBXGroup section */
88 |
89 | /* Begin PBXNativeTarget section */
90 | 1435894B1C0C72BF001B82F8 /* LLSHitTestView */ = {
91 | isa = PBXNativeTarget;
92 | buildConfigurationList = 143589631C0C72BF001B82F8 /* Build configuration list for PBXNativeTarget "LLSHitTestView" */;
93 | buildPhases = (
94 | 143589481C0C72BF001B82F8 /* Sources */,
95 | 143589491C0C72BF001B82F8 /* Frameworks */,
96 | 1435894A1C0C72BF001B82F8 /* Resources */,
97 | );
98 | buildRules = (
99 | );
100 | dependencies = (
101 | );
102 | name = LLSHitTestView;
103 | productName = LLSHitTestView;
104 | productReference = 1435894C1C0C72BF001B82F8 /* LLSHitTestView.app */;
105 | productType = "com.apple.product-type.application";
106 | };
107 | /* End PBXNativeTarget section */
108 |
109 | /* Begin PBXProject section */
110 | 143589441C0C72BF001B82F8 /* Project object */ = {
111 | isa = PBXProject;
112 | attributes = {
113 | LastUpgradeCheck = 0710;
114 | ORGANIZATIONNAME = liulishuo;
115 | TargetAttributes = {
116 | 1435894B1C0C72BF001B82F8 = {
117 | CreatedOnToolsVersion = 7.1.1;
118 | };
119 | };
120 | };
121 | buildConfigurationList = 143589471C0C72BF001B82F8 /* Build configuration list for PBXProject "LLSHitTestView" */;
122 | compatibilityVersion = "Xcode 3.2";
123 | developmentRegion = English;
124 | hasScannedForEncodings = 0;
125 | knownRegions = (
126 | en,
127 | Base,
128 | );
129 | mainGroup = 143589431C0C72BF001B82F8;
130 | productRefGroup = 1435894D1C0C72BF001B82F8 /* Products */;
131 | projectDirPath = "";
132 | projectRoot = "";
133 | targets = (
134 | 1435894B1C0C72BF001B82F8 /* LLSHitTestView */,
135 | );
136 | };
137 | /* End PBXProject section */
138 |
139 | /* Begin PBXResourcesBuildPhase section */
140 | 1435894A1C0C72BF001B82F8 /* Resources */ = {
141 | isa = PBXResourcesBuildPhase;
142 | buildActionMask = 2147483647;
143 | files = (
144 | 1435895F1C0C72BF001B82F8 /* LaunchScreen.storyboard in Resources */,
145 | 1435895C1C0C72BF001B82F8 /* Assets.xcassets in Resources */,
146 | 1435895A1C0C72BF001B82F8 /* Main.storyboard in Resources */,
147 | );
148 | runOnlyForDeploymentPostprocessing = 0;
149 | };
150 | /* End PBXResourcesBuildPhase section */
151 |
152 | /* Begin PBXSourcesBuildPhase section */
153 | 143589481C0C72BF001B82F8 /* Sources */ = {
154 | isa = PBXSourcesBuildPhase;
155 | buildActionMask = 2147483647;
156 | files = (
157 | 143589571C0C72BF001B82F8 /* ViewController.m in Sources */,
158 | 143589541C0C72BF001B82F8 /* AppDelegate.m in Sources */,
159 | 143589681C0C72E2001B82F8 /* LLSHitTestView.m in Sources */,
160 | 143589511C0C72BF001B82F8 /* main.m in Sources */,
161 | );
162 | runOnlyForDeploymentPostprocessing = 0;
163 | };
164 | /* End PBXSourcesBuildPhase section */
165 |
166 | /* Begin PBXVariantGroup section */
167 | 143589581C0C72BF001B82F8 /* Main.storyboard */ = {
168 | isa = PBXVariantGroup;
169 | children = (
170 | 143589591C0C72BF001B82F8 /* Base */,
171 | );
172 | name = Main.storyboard;
173 | sourceTree = "";
174 | };
175 | 1435895D1C0C72BF001B82F8 /* LaunchScreen.storyboard */ = {
176 | isa = PBXVariantGroup;
177 | children = (
178 | 1435895E1C0C72BF001B82F8 /* Base */,
179 | );
180 | name = LaunchScreen.storyboard;
181 | sourceTree = "";
182 | };
183 | /* End PBXVariantGroup section */
184 |
185 | /* Begin XCBuildConfiguration section */
186 | 143589611C0C72BF001B82F8 /* Debug */ = {
187 | isa = XCBuildConfiguration;
188 | buildSettings = {
189 | ALWAYS_SEARCH_USER_PATHS = NO;
190 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
191 | CLANG_CXX_LIBRARY = "libc++";
192 | CLANG_ENABLE_MODULES = YES;
193 | CLANG_ENABLE_OBJC_ARC = YES;
194 | CLANG_WARN_BOOL_CONVERSION = YES;
195 | CLANG_WARN_CONSTANT_CONVERSION = YES;
196 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
197 | CLANG_WARN_EMPTY_BODY = YES;
198 | CLANG_WARN_ENUM_CONVERSION = YES;
199 | CLANG_WARN_INT_CONVERSION = YES;
200 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
201 | CLANG_WARN_UNREACHABLE_CODE = YES;
202 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
203 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
204 | COPY_PHASE_STRIP = NO;
205 | DEBUG_INFORMATION_FORMAT = dwarf;
206 | ENABLE_STRICT_OBJC_MSGSEND = YES;
207 | ENABLE_TESTABILITY = YES;
208 | GCC_C_LANGUAGE_STANDARD = gnu99;
209 | GCC_DYNAMIC_NO_PIC = NO;
210 | GCC_NO_COMMON_BLOCKS = YES;
211 | GCC_OPTIMIZATION_LEVEL = 0;
212 | GCC_PREPROCESSOR_DEFINITIONS = (
213 | "DEBUG=1",
214 | "$(inherited)",
215 | );
216 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
217 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
218 | GCC_WARN_UNDECLARED_SELECTOR = YES;
219 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
220 | GCC_WARN_UNUSED_FUNCTION = YES;
221 | GCC_WARN_UNUSED_VARIABLE = YES;
222 | IPHONEOS_DEPLOYMENT_TARGET = 9.1;
223 | MTL_ENABLE_DEBUG_INFO = YES;
224 | ONLY_ACTIVE_ARCH = YES;
225 | SDKROOT = iphoneos;
226 | TARGETED_DEVICE_FAMILY = "1,2";
227 | };
228 | name = Debug;
229 | };
230 | 143589621C0C72BF001B82F8 /* Release */ = {
231 | isa = XCBuildConfiguration;
232 | buildSettings = {
233 | ALWAYS_SEARCH_USER_PATHS = NO;
234 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
235 | CLANG_CXX_LIBRARY = "libc++";
236 | CLANG_ENABLE_MODULES = YES;
237 | CLANG_ENABLE_OBJC_ARC = YES;
238 | CLANG_WARN_BOOL_CONVERSION = YES;
239 | CLANG_WARN_CONSTANT_CONVERSION = YES;
240 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
241 | CLANG_WARN_EMPTY_BODY = YES;
242 | CLANG_WARN_ENUM_CONVERSION = YES;
243 | CLANG_WARN_INT_CONVERSION = YES;
244 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
245 | CLANG_WARN_UNREACHABLE_CODE = YES;
246 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
247 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
248 | COPY_PHASE_STRIP = NO;
249 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
250 | ENABLE_NS_ASSERTIONS = NO;
251 | ENABLE_STRICT_OBJC_MSGSEND = YES;
252 | GCC_C_LANGUAGE_STANDARD = gnu99;
253 | GCC_NO_COMMON_BLOCKS = YES;
254 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
255 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
256 | GCC_WARN_UNDECLARED_SELECTOR = YES;
257 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
258 | GCC_WARN_UNUSED_FUNCTION = YES;
259 | GCC_WARN_UNUSED_VARIABLE = YES;
260 | IPHONEOS_DEPLOYMENT_TARGET = 9.1;
261 | MTL_ENABLE_DEBUG_INFO = NO;
262 | SDKROOT = iphoneos;
263 | TARGETED_DEVICE_FAMILY = "1,2";
264 | VALIDATE_PRODUCT = YES;
265 | };
266 | name = Release;
267 | };
268 | 143589641C0C72BF001B82F8 /* Debug */ = {
269 | isa = XCBuildConfiguration;
270 | buildSettings = {
271 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
272 | INFOPLIST_FILE = LLSHitTestView/Info.plist;
273 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
274 | PRODUCT_BUNDLE_IDENTIFIER = liulishuo.LLSHitTestView;
275 | PRODUCT_NAME = "$(TARGET_NAME)";
276 | };
277 | name = Debug;
278 | };
279 | 143589651C0C72BF001B82F8 /* Release */ = {
280 | isa = XCBuildConfiguration;
281 | buildSettings = {
282 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
283 | INFOPLIST_FILE = LLSHitTestView/Info.plist;
284 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
285 | PRODUCT_BUNDLE_IDENTIFIER = liulishuo.LLSHitTestView;
286 | PRODUCT_NAME = "$(TARGET_NAME)";
287 | };
288 | name = Release;
289 | };
290 | /* End XCBuildConfiguration section */
291 |
292 | /* Begin XCConfigurationList section */
293 | 143589471C0C72BF001B82F8 /* Build configuration list for PBXProject "LLSHitTestView" */ = {
294 | isa = XCConfigurationList;
295 | buildConfigurations = (
296 | 143589611C0C72BF001B82F8 /* Debug */,
297 | 143589621C0C72BF001B82F8 /* Release */,
298 | );
299 | defaultConfigurationIsVisible = 0;
300 | defaultConfigurationName = Release;
301 | };
302 | 143589631C0C72BF001B82F8 /* Build configuration list for PBXNativeTarget "LLSHitTestView" */ = {
303 | isa = XCConfigurationList;
304 | buildConfigurations = (
305 | 143589641C0C72BF001B82F8 /* Debug */,
306 | 143589651C0C72BF001B82F8 /* Release */,
307 | );
308 | defaultConfigurationIsVisible = 0;
309 | };
310 | /* End XCConfigurationList section */
311 | };
312 | rootObject = 143589441C0C72BF001B82F8 /* Project object */;
313 | }
314 |
--------------------------------------------------------------------------------