Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@
<string>FlipDemo</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>D40DE4B2-941A-4193-B889-271003578012</key>
<string>https://github.com/mrcrow/MRFlipTransition.git</string>
<key>09FAB217D751F16B079172168E1B8C7F81AEF02D</key>
<string>https://github.com/auto234875/MRFlipTransition.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>FlipDemo.xcodeproj/project.xcworkspace</string>
<string>FlipDemo.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>D40DE4B2-941A-4193-B889-271003578012</key>
<key>09FAB217D751F16B079172168E1B8C7F81AEF02D</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/mrcrow/MRFlipTransition.git</string>
<string>https://github.com/auto234875/MRFlipTransition.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>110</integer>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>D40DE4B2-941A-4193-B889-271003578012</string>
<string>09FAB217D751F16B079172168E1B8C7F81AEF02D</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>D40DE4B2-941A-4193-B889-271003578012</string>
<string>09FAB217D751F16B079172168E1B8C7F81AEF02D</string>
<key>IDESourceControlWCCName</key>
<string>FlipDemo</string>
<string>MRFlipTransition</string>
</dict>
</array>
</dict>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0610"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C165A2D619715D7D008C5A18"
BuildableName = "FlipDemo.app"
BlueprintName = "FlipDemo"
ReferencedContainer = "container:FlipDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C165A2F719715D7D008C5A18"
BuildableName = "FlipDemoTests.xctest"
BlueprintName = "FlipDemoTests"
ReferencedContainer = "container:FlipDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C165A2F719715D7D008C5A18"
BuildableName = "FlipDemoTests.xctest"
BlueprintName = "FlipDemoTests"
ReferencedContainer = "container:FlipDemo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C165A2D619715D7D008C5A18"
BuildableName = "FlipDemo.app"
BlueprintName = "FlipDemo"
ReferencedContainer = "container:FlipDemo.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C165A2D619715D7D008C5A18"
BuildableName = "FlipDemo.app"
BlueprintName = "FlipDemo"
ReferencedContainer = "container:FlipDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C165A2D619715D7D008C5A18"
BuildableName = "FlipDemo.app"
BlueprintName = "FlipDemo"
ReferencedContainer = "container:FlipDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>FlipDemo.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>C165A2D619715D7D008C5A18</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>C165A2F719715D7D008C5A18</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
14 changes: 8 additions & 6 deletions FlipDemo/AnotherViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ @implementation AnotherViewController
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.backgroundColor = [UIColor grayColor];
self.view.backgroundColor = [UIColor blackColor];
UIView *dismissView= [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 60)];
[self.view addSubview:dismissView];
UISwipeGestureRecognizer *dismissGesture= [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(flyAway:)];
dismissGesture.direction= UISwipeGestureRecognizerDirectionDown;
[dismissView addGestureRecognizer:dismissGesture];


UIButton *launchButton = [[UIButton alloc] initWithFrame:CGRectMake(50, 100, 210, 60)];
launchButton.backgroundColor = [UIColor blackColor];
[launchButton setTitle:@"Dismiss" forState:UIControlStateNormal];
[launchButton addTarget:self action:@selector(flyAway:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:launchButton];
}

- (void)viewWillAppear:(BOOL)animated
Expand All @@ -38,4 +39,5 @@ - (void)flyAway:(id)sender
[(MRFlipTransition *)self.transitioningDelegate dismissTo:MRFlipTransitionPresentingFromBottom completion:nil];
}


@end
2 changes: 2 additions & 0 deletions FlipDemo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.

return YES;
}

Expand Down Expand Up @@ -43,4 +44,5 @@ - (void)applicationWillTerminate:(UIApplication *)application
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}


@end
4 changes: 4 additions & 0 deletions FlipDemo/FlipDemo-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>UIStatusBarHidden</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
Expand Down