uimodaltransitionstyle

UIModalTransitionStylePartialCurl causing UIButton text to animate

若如初见. 提交于 2019-12-30 01:25:06
问题 I've got a UIView that gets used in a modal view using the UIModalTransitionStylePartialCurl transition style when it appears. This UIView includes a UIButton. The odd thing is that whenever the view appears, as the primary page peels up to the top of the window the button on the modal view animates itself, with the text seeming to get typed onto the button from the center of itself. The movement of this animation is a bit distracting. Why does this happen? Is there any way to prevent it? The

UIModalPresentationCurrentContext with Transition?

孤街浪徒 提交于 2019-12-17 22:44:16
问题 I am trying to modal present a view controller like below: UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"addPopover"]; vc.view.backgroundColor = [UIColor clearColor]; self.modalPresentationStyle = UIModalPresentationCurrentContext; [self presentModalViewController:vc animated:YES]; Now using UIModalPresentationCurrentContext means I can present this view with a transparent

iOS: Using modal pageFlip makes strange cell animation in UITableViewController

試著忘記壹切 提交于 2019-12-11 06:39:46
问题 I wanted to show a Settings view, so I figured I could use the pageCurl modal style. I have a UIViewController that I am presenting from: Settings *settings = [[[Settings alloc] initWithStyle:UITableViewStyleGrouped] autorelease]; settings.view.backgroundColor = [UIColor scrollViewTexturedBackgroundColor]; settings.modalTransitionStyle = UIModalTransitionStylePartialCurl; settings.modalPresentationStyle = UIModalPresentationFullScreen; [self presentModalViewController:settings animated:YES];

UIModalTransitionStylePartialCurl disappear on iOS 8

末鹿安然 提交于 2019-12-11 03:08:29
问题 I am trying to present my ViewController with UIModalTransitionStylePartialCurl transition. I am using the following code PuzzleViewController *vc = [[PuzzleViewController alloc] init]; vc.modalTransitionStyle = UIModalTransitionStylePartialCurl; vc.puzzleImage = imageView.image; [self.navigationController presentViewController:vc animated:YES completion:nil]; UIModalTransitionStylePartialCurl work fine with iOS 7, like this But for iOS 8, the visual part of the previous view on top disappear

How do you present a UIViewController from the top of the screen instead of the bottom?

被刻印的时光 ゝ 提交于 2019-11-30 16:26:22
问题 I am using a UIViewController and I use presentModalViewController:controllerr animated:YES to present it but I would like if it would slide down from the top of the screen instead of up from the bottom, any way to do this? 回答1: I created a function for pushing the ViewControllers from all 4 directions: - (void) slideLayerInDirection:(NSString *)direction andPush:(UIViewController *)dstVC { CATransition* transition = [CATransition animation]; transition.duration = 0.5; transition

How do you present a UIViewController from the top of the screen instead of the bottom?

流过昼夜 提交于 2019-11-30 16:20:34
I am using a UIViewController and I use presentModalViewController:controllerr animated:YES to present it but I would like if it would slide down from the top of the screen instead of up from the bottom, any way to do this? Amarsh I created a function for pushing the ViewControllers from all 4 directions: - (void) slideLayerInDirection:(NSString *)direction andPush:(UIViewController *)dstVC { CATransition* transition = [CATransition animation]; transition.duration = 0.5; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type =

UIModalTransitionStylePartialCurl causing UIButton text to animate

瘦欲@ 提交于 2019-11-30 05:41:45
I've got a UIView that gets used in a modal view using the UIModalTransitionStylePartialCurl transition style when it appears. This UIView includes a UIButton. The odd thing is that whenever the view appears, as the primary page peels up to the top of the window the button on the modal view animates itself, with the text seeming to get typed onto the button from the center of itself. The movement of this animation is a bit distracting. Why does this happen? Is there any way to prevent it? The UIButton does use a custom background, but it is defined in the XIB for the modal view and does not

iOS7 UIModalTransitionStyleFlipHorizontal bounces after transition

丶灬走出姿态 提交于 2019-11-29 18:50:28
I'm updating my app for iOS 7 and I discovered a weird problem. I'm presenting a UIViewController wrapped in a UINavigationController with UIModalTransitionStyleFlipHorizontal . In iOS 6 it works fine, but in iOS 7 the navigation bar bounces after the transition. Does this have something to do with the status bar? I've set translucency of the main navigation bar to NO . In the Info.plist, View controller-based status bar appearance is set to NO. And here is a GIF showing the problem in a minimal demo app: Here is my code: feedNavigationController = [[UINavigationController alloc] init];

UIModalPresentationCurrentContext with Transition?

别说谁变了你拦得住时间么 提交于 2019-11-28 19:45:14
I am trying to modal present a view controller like below: UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"addPopover"]; vc.view.backgroundColor = [UIColor clearColor]; self.modalPresentationStyle = UIModalPresentationCurrentContext; [self presentModalViewController:vc animated:YES]; Now using UIModalPresentationCurrentContext means I can present this view with a transparent background and see my other view behind the new one. However, it stops me from being able to present

iOS7 UIModalTransitionStyleFlipHorizontal bounces after transition

大城市里の小女人 提交于 2019-11-28 13:49:53
问题 I'm updating my app for iOS 7 and I discovered a weird problem. I'm presenting a UIViewController wrapped in a UINavigationController with UIModalTransitionStyleFlipHorizontal . In iOS 6 it works fine, but in iOS 7 the navigation bar bounces after the transition. Does this have something to do with the status bar? I've set translucency of the main navigation bar to NO . In the Info.plist, View controller-based status bar appearance is set to NO. And here is a GIF showing the problem in a