我在這裏有一個問題。當我在我的主視圖中點擊我的軌道按鈕時,如果顯示跟蹤信息,我會將按鈕帶到新視圖。我遇到的一個問題是,當它移動到新的視圖時,任何標籤都將從小尺寸開始,並通過動畫轉換爲正常尺寸。我不確定我是否正確地解釋了它,但是當我不確定它時,該視圖就是動畫。我將在下面附上代碼。iOS的presentViewController動畫關閉時
謝謝。
- (IBAction)ordertrack {
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController *vc = [sb instantiateViewControllerWithIdentifier:@"track1"];
[self presentViewController:vc animated:NO completion:NULL];
}
UPDATE:
我還沒有得到任何解決方案的工作,我附上下面的GIF顯示,你會看到後退按鈕將調整問題。
編輯:
添加代碼Track1.m
//
// Track1.m
// uDropOff 3
//
// Created by Curtis Boylan on 06/01/2016.
// Copyright © 2016 Curtis Boylan. All rights reserved.
//
#import "Track1.h"
@interface Track1()
@end
@implementation Track1
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
- (IBAction)back {
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController *vc = [sb instantiateViewControllerWithIdentifier:@"main"];
[self presentViewController:vc animated:YES completion:NULL];
}
@end
哪裏是你的動畫代碼..它是在當前的視圖控制器..或在新的視圖控制器? –
我沒有任何動畫代碼。 –
我還沒有得到任何工作的解決方案,我已附加下面的gif顯示您將看到的問題後退按鈕將調整大小 https://imgflip.com/gif/wwqq7 –