uiviewanimationtransition

View being blocked by UITransitionView after being presented

我的梦境 提交于 2019-12-18 12:18:45
问题 I have a side navigation controller and present it via a UIButton. When I make this NC the root view controller directly by [self presentviewcontroller: NC animated: YES completion: nil] , some reason the menu side of the NC is blocked by a UITransitionView that I cannot get to disappear. I've attached an image of the . is another. I have tried the following: UIWindow *window = [(AppDelegate *)[[UIApplication sharedApplication] delegate] window]; window.backgroundColor = kmain; CATransition*

How to get a transition for windows element like in scroll views?

心不动则不痛 提交于 2019-12-13 20:26:09
问题 I am trying to make a Demo in Appcelerator here is the code for it. var tabGroup = Titanium.UI.createTabGroup(); var main_win = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ text:'I am Window 1', win:win1 }); win1.add(label1); var win2 = Titanium.UI.createWindow({ title:'Tab 2',

How to create a navigation transition like the Apple news app?

大憨熊 提交于 2019-12-13 20:15:37
问题 I found this article to create a navigation transition like the Apple news app: https://blog.rocketinsights.com/how-to-create-a-navigation-transition-like-the-apple-news-app/. The transition is a zoom effect. The code works great for push animation, but for pop animation (to close DetailViewController), I have a black screen instead my main viewcontroller. As the article doesn't provide the full source code to download, I publish it on github, apply to UICollectionViewController for my needs:

UIView transitionFromView: how can I do black background during transition?

前提是你 提交于 2019-12-12 19:28:09
问题 I use next code. [UIView transitionFromView:viewA toView:viewB duration:1.0 options: UIViewAnimationOptionTransitionFlipFromLeft completion: ^(BOOL inFinished) { viewB.hidden = NO; viewA.hidden = YES; //do any post animation actions here }]; Transition works OK. I want to set a black background during transition. How can I do this? Please, see the photo: 回答1: Try with setting the black background color for parent view of animated view. viewB.superview.backgroundColor = [UIColor blackColor];

UiView.animateWithDuration Not Animating Swift

…衆ロ難τιáo~ 提交于 2019-12-12 13:53:24
问题 I am trying to animate show/hide of search bar using below code (The search bar should come from left and expand to right within 1-2 seconds). However, it doesn't animate and searchBar is immediately shown no matter how much time I put. I noticed following: Duration is not respected Not even delay is respected Animation is not happening. Component is immediately shown func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) { //code to get

Why the pause between animateWithDuration animation and completion blocks?

匆匆过客 提交于 2019-12-12 10:38:27
问题 Following Apple's recommendations, I'm chaining UIView animations by putting subsequent calls to -animationWithDuration:animation: in the completion: block of another call to aanimateWithDuration:animation:completion: , like so: [UIView animateWithDuration:scaleDuration delay:0 options:UIViewAnimationOptionCurveEaseIn animations:^{ // Scale the controllers' views down. self.view.transform = CGAffineTransformScale(self.view.transform, 0.8, 0.8); } completion:^(BOOL finished) { // Transition to

Custom Viewcontroller transition doesn't resize properly

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 04:15:08
问题 I have a custom Viewcontroller Transition for the Navigation Controller in my app. When the transition is performed, it hasn't resized the content of the child viewcontroller properly. The default transition does resize it. I have added an example project on Github to demonstrate the issue. The VC embedded in the Navigation Controller import UIKit class PopoverVCViewController: UIViewController, UIViewControllerTransitioningDelegate, UINavigationControllerDelegate { let animator = Animator()

UIViewAnimationTransitionCurlDown on UIImageView?

試著忘記壹切 提交于 2019-12-12 04:12:05
问题 I was messing with UIView animations and I found the setAnimationTransition method which takes certain constants. One of them is UIViewAnimationTransitionCurlDown. I was wondering if this type of transition was possible on a UIImage view and how would I go about implementing it? Thanks Tom 回答1: [UIImageView beginAnimations:nil context:NULL]; [UIImageView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:YourView cache:YES]; [UIImageView setAnimationDuration:1.5]; /// ---->

Swift: Problems with custom UIView.transition?

ぃ、小莉子 提交于 2019-12-11 18:30:03
问题 Ok, I have looked through https://developer.apple.com/videos/play/wwdc2013/218/ and SO questions similarly trying to make custom transitions with a tab bar controller and its viewcontrollers but Im running into confusion after figuring out the main steps here. I need to know how (meaning example code would be really helpful) to call a custom UIView.transition OR just have a custom option in UIView.transition . I need to use this to make a sliding/modal -mimicking transition between tabs in my

UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown doesn't support both variants of the portrait orientation?

泪湿孤枕 提交于 2019-12-11 18:10:07
问题 I'm using the UIViewAnimationTransitionCurlUp \ UIViewAnimationTransitionCurlDown transitions to flip between view controllers. Problem is when I try to support the upsidedown portrait orientation , these lovely curl transitions still think they are in normal portrait orientation, thus the curlup goes from top to bottom and the curldown goes from bottom to top. It seems like these transitions doesnt care about the device orientation and neither the interface orientation, so - is there a way