CopyPastor

Detecting plagiarism made easy.

Score: 0.8057524508582337; Reported for: String similarity Open both answers

Original Post

Original - Posted on 2014-06-24
by Ashwinkumar Mangrulkar



            
Present in both answers; Present only in the new answer; Present only in the old answer;

**Please refer the below code. You will get some idea its showing animation from bottom of screen to middle of screen.**
YourViewController *viewController = [[YourViewController alloc] init]; [viewController.view setFrame:CGRectMake(0, -(CGRectGetHeight(viewController.view.frame)), CGRectGetWidth(viewController.view.frame), CGRectGetHeight(self.view.frame))]; [self.view addSubview:viewController.view]; [UIView animateWithDuration:0.8 animations:^{ [viewController.view setFrame:CGRectMake(0, 0, CGRectGetWidth(viewController.view.frame), CGRectGetHeight(viewController.view.frame))]; } completion:^(BOOL finished) { [self.navigationController pushViewController:viewController animated:NO]; }];
**Yes it is possible you have to present view controllers view with animation. Please refer the below code. You will get some idea its showing animation from bottom of screen to middle of screen.**

YourViewController *viewController = [[YourViewController alloc] init]; [viewController.view setFrame:CGRectMake(0, -(CGRectGetHeight(viewController.view.frame)), CGRectGetWidth(viewController.view.frame), CGRectGetHeight(self.view.frame))]; [self.view addSubview:viewController.view]; [UIView animateWithDuration:0.8 animations:^{ [viewController.view setFrame:CGRectMake(0, 0, CGRectGetWidth(viewController.view.frame), CGRectGetHeight(viewController.view.frame))]; } completion:^(BOOL finished) { [self.navigationController pushViewController:viewController animated:NO]; }];


        
Present in both answers; Present only in the new answer; Present only in the old answer;