pushviewcontroller

pushviewcontroller animation is slow/choppy

雨燕双飞 提交于 2019-11-28 16:51:46
I push a ViewController which contains not too many views, UIScrollView which contains 10 views inside, I have a singleton ViewController and push it again and again without releasing and allocation again the ViewController , so all the things I do it in viewDidLoad() , and viewWillAppear() , but the animation is slow and choppy, what it could be? I had a problem where when UIViewController A did a pushViewController to push UIViewController B, the push animation would stop at about 25%, halt, and then slide B in the rest of the way. This DID NOT happen on iOS 6, but as soon as I started using

iOS7 strange animation when using hidesBottomBarWhenPushed

喜你入骨 提交于 2019-11-28 07:49:38
I am getting a really strange animation behaviour when pushing another view controller that has the bottom bar hidden with hidesBottomBarWhenPushed. The first thread I found was that: Strange animation on iOS 7 when using hidesBottomBarWhenPushed in app built targeting <= iOS 6 but as my application is only build and run on iOS7 it is not the case for my problem. Please see the following video that shows the problem (look in the top right corner): https://dl.dropboxusercontent.com/u/66066789/ios7.mov This strange animation shadow only occurs when hidesBottomBarWhenPushed is true. How can I fix

How do i set a modal segue (programmatically) to a push segue

我只是一个虾纸丫 提交于 2019-11-28 05:03:12
问题 i have an navigation controller in my storyboard, but for one reason i have to make one segue programmatically, but how do i make a push segue programmatically? this is my code so far: - (IBAction)nextviewButton:(id)sender { HolesViewController *Holes = [self.storyboard instantiateViewControllerWithIdentifier:@"HolesViewController"]; Holes.nameString = self.NameField.text; [self presentViewController:Holes animated:YES completion:nil]; } 回答1: Alternatively, I actually prefer to define a segue

popping and pushing view controllers in same action

扶醉桌前 提交于 2019-11-28 03:56:22
is is possible to pop a view off the navigation stack and then push another straight onto it? I'm trying to implement a flat hierarchy for this section and would like to have a segmented controller but I can't make the segmented controller look anything liked I want, hence why I'm trying to use the navigation controller. When a button is clicked I executed this code: [[self navigationController] popViewControllerAnimated:YES]; MapsViewController *aViewController = [[MapsViewController alloc] initWithNibName:@"MapsViewController" bundle:nil]; [self.navigationController pushViewController

How can I go back to the initial view controller in Swift?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 03:41:01
So I have a login view, after successful login it goes to the first view of a navigation controller, then the user can go deeper to a settings view and then to a logout view. This logout should take the user back to the login view (which is not part of the navigation controller). It works with this code: let loginViewController = self.storyboard!.instantiateViewControllerWithIdentifier("Login") as? LoginViewController self.navigationController!.pushViewController(loginViewController!, animated: true) But the login view displays the navigation bar at the top, which it shouldn't do, maybe there

When to use addChildViewController vs pushViewController

↘锁芯ラ 提交于 2019-11-28 03:09:05
I just watched a 2011 WWDC presentation on "Implementing UIViewController Containment" ( here's a link to the video ) They mentioned both of these ways of adding viewControllers to the screen, and I would appreciate some clarification on best practices... addChildViewController / removeFromParentViewController used with an @property (nonatomic, readonly) NSArray *childViewControllers and [self transitionFromViewController:currentView toViewController:nextView duration: options: animations: completion:]; pushViewController: animated: / popViewControllerAnimated they really quickly skimmed past

Change animation transition

落花浮王杯 提交于 2019-11-27 23:19:38
I got an app with NavigationController . How can i change animation transition style of pushViewController and popToViewController ? UPD I created category like in @lawicko answer. But i got error when i am trying to call function [self.navigationController pushViewController:places withCustomTransition:CustomViewAnimationTransitionPush subtype:CustomViewAnimationSubtypeFromLeft]; error is : "use of undeclared identifier 'CustomViewAnimationTransitionPush'" Where should i declare this part: typedef enum { CustomViewAnimationTransitionNone, CustomViewAnimationTransitionFlipFromLeft,

pushviewcontroller animation is slow/choppy

那年仲夏 提交于 2019-11-27 10:01:39
问题 I push a ViewController which contains not too many views, UIScrollView which contains 10 views inside, I have a singleton ViewController and push it again and again without releasing and allocation again the ViewController , so all the things I do it in viewDidLoad() , and viewWillAppear() , but the animation is slow and choppy, what it could be? 回答1: I had a problem where when UIViewController A did a pushViewController to push UIViewController B, the push animation would stop at about 25%,

iOS - Push viewController from code and storyboard

半世苍凉 提交于 2019-11-27 09:05:44
I have this code PlaceViewController *newView = [self.storyboard instantiateViewControllerWithIdentifier:@"PlaceView"]; [self presentViewController:newView animated:YES completion:nil]; And I can change view, but I would push this view for when I return at this page, the state persists. I try to put this code: [self.navigationController pushViewController:newView animated:YES]; but doesn't do anything. Thanks Objective-C: PlaceViewController *newView = [self.storyboard instantiateViewControllerWithIdentifier:@"storyBoardIdentifier"]; [self.navigationController pushViewController:newView

Restore pre-iOS7 UINavigationController pushViewController animation

可紊 提交于 2019-11-27 06:23:24
So. Just started transitioning my IOS code to IOS7, and ran into a bit of problem. I've got a UINavigationController , which has child ViewControllers and I'm using pushViewController to display the next views. To create a parallax animation with a set of images, if customized the UINavigationController to animate a set of UIImageViews and my child ViewControllers all have a self.backgroundColor = [UIColor clearColor] , transparency. Since iOS7, the way the UINavController animates it child vc's, is updated, by partially moving the current view controller and on top pushing the new