Skip to content

Commit 9ce43a4

Browse files
committed
fix bug
1 parent cb071bf commit 9ce43a4

11 files changed

Lines changed: 30 additions & 30 deletions

File tree

LeftRightSlider/LeftRightSlider.xcodeproj/project.pbxproj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
D826CFFC18450F7300C5E495 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = D826CFFA18450F7300C5E495 /* InfoPlist.strings */; };
2121
D826CFFE18450F7300C5E495 /* LeftRightSliderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D826CFFD18450F7300C5E495 /* LeftRightSliderTests.m */; };
2222
D826D00D184513E200C5E495 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D826D00C184513E200C5E495 /* MainViewController.m */; };
23-
D826D010184513FA00C5E495 /* LeftViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D826D00F184513FA00C5E495 /* LeftViewController.m */; };
24-
D826D0131845141100C5E495 /* RightViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D826D0121845141100C5E495 /* RightViewController.m */; };
23+
D826D010184513FA00C5E495 /* LeftVC.m in Sources */ = {isa = PBXBuildFile; fileRef = D826D00F184513FA00C5E495 /* LeftVC.m */; };
24+
D826D0131845141100C5E495 /* RightVC.m in Sources */ = {isa = PBXBuildFile; fileRef = D826D0121845141100C5E495 /* RightVC.m */; };
2525
D826D01A1846508C00C5E495 /* 2222.png in Resources */ = {isa = PBXBuildFile; fileRef = D826D0191846508C00C5E495 /* 2222.png */; };
2626
D826D01C184650C600C5E495 /* 3333.png in Resources */ = {isa = PBXBuildFile; fileRef = D826D01B184650C600C5E495 /* 3333.png */; };
2727
D84493C81847A867003D2F17 /* ViewController1.m in Sources */ = {isa = PBXBuildFile; fileRef = D84493C71847A867003D2F17 /* ViewController1.m */; };
@@ -60,10 +60,10 @@
6060
D826CFFD18450F7300C5E495 /* LeftRightSliderTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LeftRightSliderTests.m; sourceTree = "<group>"; };
6161
D826D00B184513E200C5E495 /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = "<group>"; };
6262
D826D00C184513E200C5E495 /* MainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainViewController.m; sourceTree = "<group>"; };
63-
D826D00E184513FA00C5E495 /* LeftViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LeftViewController.h; sourceTree = "<group>"; };
64-
D826D00F184513FA00C5E495 /* LeftViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LeftViewController.m; sourceTree = "<group>"; };
65-
D826D0111845141100C5E495 /* RightViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RightViewController.h; sourceTree = "<group>"; };
66-
D826D0121845141100C5E495 /* RightViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RightViewController.m; sourceTree = "<group>"; };
63+
D826D00E184513FA00C5E495 /* LeftVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LeftVC.h; sourceTree = "<group>"; };
64+
D826D00F184513FA00C5E495 /* LeftVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LeftVC.m; sourceTree = "<group>"; };
65+
D826D0111845141100C5E495 /* RightVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RightVC.h; sourceTree = "<group>"; };
66+
D826D0121845141100C5E495 /* RightVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RightVC.m; sourceTree = "<group>"; };
6767
D826D0191846508C00C5E495 /* 2222.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 2222.png; sourceTree = "<group>"; };
6868
D826D01B184650C600C5E495 /* 3333.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 3333.png; sourceTree = "<group>"; };
6969
D84493C61847A867003D2F17 /* ViewController1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController1.h; sourceTree = "<group>"; };
@@ -144,10 +144,10 @@
144144
D84493C71847A867003D2F17 /* ViewController1.m */,
145145
D84493C91847AF54003D2F17 /* ViewController2.h */,
146146
D84493CA1847AF54003D2F17 /* ViewController2.m */,
147-
D826D00E184513FA00C5E495 /* LeftViewController.h */,
148-
D826D00F184513FA00C5E495 /* LeftViewController.m */,
149-
D826D0111845141100C5E495 /* RightViewController.h */,
150-
D826D0121845141100C5E495 /* RightViewController.m */,
147+
D826D00E184513FA00C5E495 /* LeftVC.h */,
148+
D826D00F184513FA00C5E495 /* LeftVC.m */,
149+
D826D0111845141100C5E495 /* RightVC.h */,
150+
D826D0121845141100C5E495 /* RightVC.m */,
151151
D826D01618464F2900C5E495 /* Images */,
152152
D826CFEA18450F7300C5E495 /* Images.xcassets */,
153153
D826CFDF18450F7300C5E495 /* Supporting Files */,
@@ -312,13 +312,13 @@
312312
files = (
313313
D84493C81847A867003D2F17 /* ViewController1.m in Sources */,
314314
D826CFE918450F7300C5E495 /* AppDelegate.m in Sources */,
315-
D826D010184513FA00C5E495 /* LeftViewController.m in Sources */,
315+
D826D010184513FA00C5E495 /* LeftVC.m in Sources */,
316316
D826CFE518450F7300C5E495 /* main.m in Sources */,
317317
D84493CB1847AF54003D2F17 /* ViewController2.m in Sources */,
318318
D826D00D184513E200C5E495 /* MainViewController.m in Sources */,
319319
D8D2239318562DBE00EF2DFB /* LRNavigationController.m in Sources */,
320320
D8E537A91879623D0013FD0F /* SliderViewController.m in Sources */,
321-
D826D0131845141100C5E495 /* RightViewController.m in Sources */,
321+
D826D0131845141100C5E495 /* RightVC.m in Sources */,
322322
);
323323
runOnlyForDeploymentPostprocessing = 0;
324324
};

LeftRightSlider/LeftRightSlider/AppDelegate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
#import <UIKit/UIKit.h>
1010
#import "SliderViewController.h"
11-
#import "LeftViewController.h"
12-
#import "RightViewController.h"
1311
#import "LRNavigationController.h"
12+
#import "LeftVC.h"
13+
#import "RightVC.h"
1414

1515
@interface AppDelegate : UIResponder <UIApplicationDelegate>
1616

LeftRightSlider/LeftRightSlider/AppDelegate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1616
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
1717
// Override point for customization after application launch.
1818

19-
[SliderViewController sharedSliderController].LeftVC=[[LeftViewController alloc] init];
20-
[SliderViewController sharedSliderController].RightVC=[[RightViewController alloc] init];
19+
[SliderViewController sharedSliderController].LeftVC=[[LeftVC alloc] init];
20+
[SliderViewController sharedSliderController].RightVC=[[RightVC alloc] init];
2121
[SliderViewController sharedSliderController].RightSContentOffset=260;
2222
[SliderViewController sharedSliderController].RightSContentScale=0.6;
2323
[SliderViewController sharedSliderController].RightSOpenDuration=0.6;

LeftRightSlider/LeftRightSlider/LeftViewController.h renamed to LeftRightSlider/LeftRightSlider/LeftVC.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
#import <UIKit/UIKit.h>
1010

11-
@interface LeftViewController : UIViewController
11+
@interface LeftVC : UIViewController
1212

1313
@end

LeftRightSlider/LeftRightSlider/LeftViewController.m renamed to LeftRightSlider/LeftRightSlider/LeftVC.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
// Copyright (c) 2013年 Zhao Yiqi. All rights reserved.
77
//
88

9-
#import "LeftViewController.h"
9+
#import "LeftVC.h"
1010
#import "SliderViewController.h"
1111

12-
@interface LeftViewController ()<UITableViewDataSource,UITableViewDelegate>
12+
@interface LeftVC ()<UITableViewDataSource,UITableViewDelegate>
1313

1414
@end
1515

16-
@implementation LeftViewController
16+
@implementation LeftVC
1717

1818
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
1919
{

LeftRightSlider/LeftRightSlider/MainViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ - (void)viewDidLoad
6363
}
6464

6565
-(void)leftItemClick{
66-
[[SliderViewController sharedSliderController] leftItemClick];
66+
[[SliderViewController sharedSliderController] showLeftViewController];
6767
}
6868
-(void)rightItemClick{
69-
[[SliderViewController sharedSliderController] rightItemClick];
69+
[[SliderViewController sharedSliderController] showRightViewController];
7070
}
7171
-(void)btnNextClick:(id)sender{
7272
ViewController1 *sssss=[[ViewController1 alloc] init];

LeftRightSlider/LeftRightSlider/RightViewController.h renamed to LeftRightSlider/LeftRightSlider/RightVC.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
#import <UIKit/UIKit.h>
1010

11-
@interface RightViewController : UIViewController
11+
@interface RightVC : UIViewController
1212

1313
@end

LeftRightSlider/LeftRightSlider/RightViewController.m renamed to LeftRightSlider/LeftRightSlider/RightVC.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
// Copyright (c) 2013年 Zhao Yiqi. All rights reserved.
77
//
88

9-
#import "RightViewController.h"
9+
#import "RightVC.h"
1010

11-
@interface RightViewController ()
11+
@interface RightVC ()
1212

1313
@end
1414

15-
@implementation RightViewController
15+
@implementation RightVC
1616

1717
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
1818
{

LeftRightSlider/LeftRightSlider/SliderViewController/SliderViewController.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
+ (SliderViewController*)sharedSliderController;
3333

3434
- (void)showContentControllerWithModel:(NSString*)className;
35-
- (void)leftItemClick;
36-
- (void)rightItemClick;
35+
- (void)showLeftViewController;
36+
- (void)showRightViewController;
3737

3838
@end

0 commit comments

Comments
 (0)