5
Mam storyboard z różnymi segues do pchania ViewControllers w NavigationController.Animacja iOS wyłączania push i push
W serii ujęć i niepełnosprawnych Animacja:
Jednak push wciąż animacji. Czemu?
Mam storyboard z różnymi segues do pchania ViewControllers w NavigationController.Animacja iOS wyłączania push i push
W serii ujęć i niepełnosprawnych Animacja:
Jednak push wciąż animacji. Czemu?
Ta animacja jest domyślnym zachowaniem. Musisz utworzyć niestandardowy UIStoryBoardSegue tak:
PushNoAnimationSegue.h jest:
#import <UIKit/UIKit.h>
@interface PushNoAnimationSegue : UIStoryboardSegue
@end
PushNoAnimationSegue.m jest:
#import "PushNoAnimationSegue.h"
@implementation PushNoAnimationSegue
-(void) perform{
[[[self sourceViewController] navigationController] pushViewController:[self destinationViewController] animated:NO];
}
@end
Dla każdego segue teraz zmienić klasę do tego po prostu utworzone i wybierz "niestandardowe" w rozwijanym menu rodzaju.