2015-11-04 12 views

Odpowiedz

3

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.

Powiązane problemy