-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b596a8d
commit fede3a5
Showing
13 changed files
with
153 additions
and
24 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.91 KB
(100%)
...ackGRProject.xcworkspace/xcuserdata/bluedancer.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
SJBackGRProject/SJBackGRProject/TestMapView/TestMapViewViewController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// TestMapViewViewController.h | ||
// SJBackGRProject | ||
// | ||
// Created by BlueDancer on 2018/7/20. | ||
// Copyright © 2018年 SanJiang. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface TestMapViewViewController : UIViewController | ||
|
||
@end |
66 changes: 66 additions & 0 deletions
66
SJBackGRProject/SJBackGRProject/TestMapView/TestMapViewViewController.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// | ||
// TestMapViewViewController.m | ||
// SJBackGRProject | ||
// | ||
// Created by BlueDancer on 2018/7/20. | ||
// Copyright © 2018年 SanJiang. All rights reserved. | ||
// | ||
|
||
#import "TestMapViewViewController.h" | ||
#import <MapKit/MapKit.h> | ||
#import <Masonry.h> | ||
|
||
#import "UINavigationController+SJVideoPlayerAdd.h" | ||
#import "UIViewController+SJVideoPlayerAdd.h" | ||
|
||
@interface TestMapViewViewController () | ||
@property (nonatomic, strong) MKMapView *mapView; | ||
@property (nonatomic, strong) UIButton *button; | ||
@end | ||
|
||
@implementation TestMapViewViewController | ||
|
||
- (void)viewDidLoad { | ||
[super viewDidLoad]; | ||
|
||
self.view.backgroundColor = [UIColor whiteColor]; | ||
|
||
_mapView = [[MKMapView alloc] initWithFrame:self.view.bounds]; | ||
[self.view addSubview:_mapView]; | ||
[_mapView mas_makeConstraints:^(MASConstraintMaker *make) { | ||
make.edges.offset(0); | ||
}]; | ||
|
||
|
||
_button = [[UIButton alloc] initWithFrame:CGRectZero]; | ||
[_button setTitle:@"切换手势" forState:UIControlStateNormal]; | ||
_button.backgroundColor = [UIColor blackColor]; | ||
[_button addTarget:self action:@selector(switchGestureType:) forControlEvents:UIControlEventTouchUpInside]; | ||
|
||
[self.view addSubview:_button]; | ||
[_button mas_makeConstraints:^(MASConstraintMaker *make) { | ||
make.center.offset(0); | ||
}]; | ||
|
||
|
||
self.sj_fadeArea = @[[NSValue valueWithCGRect:(CGRect){CGPointMake(100, 0), self.view.frame.size}]]; | ||
|
||
// Do any additional setup after loading the view. | ||
} | ||
|
||
- (void)switchGestureType:(UIButton *)btn { | ||
switch ( self.navigationController.sj_gestureType ) { | ||
case SJFullscreenPopGestureType_Full: { | ||
self.navigationController.sj_gestureType = SJFullscreenPopGestureType_EdgeLeft; | ||
[btn setTitle:@"SJFullscreenPopGestureType_EdgeLeft" forState:UIControlStateNormal]; | ||
} | ||
break; | ||
case SJFullscreenPopGestureType_EdgeLeft: { | ||
self.navigationController.sj_gestureType = SJFullscreenPopGestureType_Full; | ||
[btn setTitle:@"SJFullscreenPopGestureType_Full" forState:UIControlStateNormal]; | ||
} | ||
break; | ||
} | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters