adamdebono / adfliptransition Goto Github PK
View Code? Open in Web Editor NEWAn alternative presentation animation for iOS. Mimics the flip animation from the iOS iTunes/App Store.
License: Other
An alternative presentation animation for iOS. Mimics the flip animation from the iOS iTunes/App Store.
License: Other
I can submit a pull request for including a Podspec, but it requires that there is a tag/release.
I'm running iOS 7 on iPhone 5, for some reason when I select a cell or press a button to flip it works perfectly in landscape mode however in portrait the flipped view is presented as it would be in landscape mode and is too far to the right, it is also the width of the view in landscape and the height of the view in landscape.
Application tried to present a nil modal view controller on target <UITabBarController: 0x7a84410>.'
hi,
if the statusbarstyle is set to Default, and hit the Flip as Child button,
then rotate the device, it doesn't centered in landscape mode.
it misses finding the right frame in this method:
(CGRect)fullScreenRect {
UIWindow *window = [[UIApplication sharedApplication] keyWindow];
CGRect rect = [window frame];
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0f) {
rect = [self switchRectOrientation:rect];
} else if ([[UIApplication sharedApplication] statusBarStyle] == UIStatusBarStyleBlackOpaque) {
CGFloat height = UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])?[[UIApplication sharedApplication] statusBarFrame].size.height:[[UIApplication sharedApplication] statusBarFrame].size.width;
if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) {
rect = [self switchRectOrientation:rect];
}
rect.origin.y += height;
rect.size.height -= height;
}
return rect;
}
In my app under iOS 7 the flip transition doesn't seem to take up the whole screen, then once the transition is done it jumps and fills the whole screen bu the table view is stuck on the left although it resizes correctly when I manually rotate afterwards.
Tested on the simulator.
hi,
there is a bug in your sample in the first tab.
first rotate the ipad to landscape, then hit the Flip as Child buttton.
it doesn't fill the whole screen. there is a gap on the right (256px).
thanks...
hi,
requirements say iOS5.0 or above.
i tried your example in iOS5.0 and 5.1. it gives an error
dyld: Symbol not found: OBJC_METACLASS$_UICollectionViewController
thanks.
pod 'ADFlipTransition', :git => 'https://github.com/adamdebono/ADFlipTransition.git', :branch => 'master'
### Error
Pod::DSLError - Invalid ADFlipTransition.podspec
file: /Users/jeraldj/Projects/calamity-gym-ios/Pods/Local Podspecs/ADFlipTransition.podspec:11: syntax error, unexpected tSYMBEG, expecting '}'
:tag => '0.9.1'
^
I am flipping a UIViewController from another UIViewController, once a button is pressed, like this:
SomeViewController* someViewController = [[SomeViewController alloc] init];
[self flipToViewController: someViewController fromView:_myButton asChildWithSize:CGRectInset(self.view.frame, 50, 50).size withCompletion:^{
}];
In my flipped UIViewController I have a button which triggers the following method:
[self dismissFlipWithCompletion:NULL];
Just like in the example. The thing is, my UIViewController is observing an object and on dealloc
I remove the observers. But my UIViewController is never released.
If I exchange the flip transition for a 'normal' addSubview
action. The view is nicely released once I removeFromSuperView
the view of the UIViewController
.
SomeViewController* someViewController = [[SomeViewController alloc] init];
[self.views addSubView:someViewController.view];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.