欧美成人午夜免费全部完,亚洲午夜福利精品久久,а√最新版在线天堂,另类亚洲综合区图片小说区,亚洲欧美日韩精品色xxx

iOS-視圖切換-SafeTransition

  • 作者:臭臭
  • 上傳時間:2015-09-23 13:44:48
  • 查看:776次
  • 分類:視圖切換(View Transition)
  • 語言:iOS
  • 設(shè)備:iPhone / iPad
  • 標(biāo)簽:iOS_transition

介紹:

解決iOS 7中短時間內(nèi)連續(xù)push或者pop view動畫操作而產(chǎn)生崩潰的bug。 bug描述原因為 Can't add self as subview??梢杂孟旅孢@段代碼重現(xiàn)這個bug: - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; UIViewController *vc = [[UIViewController alloc] init

測試環(huán)境:

測試環(huán)境:Xcode 5.0, iOS 7.0 以上。

效果圖:

iOS-視圖切換-SafeTransition

使用方法:

解決iOS 7中短時間內(nèi)連續(xù)push或者pop view動畫操作而產(chǎn)生崩潰的bug。 bug描述原因為 Can't add self as subview??梢杂孟旅孢@段代碼重現(xiàn)這個bug: - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; UIViewController *vc = [[UIViewController alloc] init]; [self.navigationController pushViewController:vc animated:YES]; } 將會得到以下錯誤: 2014-07-03 11:54:25.051 Demo[2840:60b] nested push animation can result in corrupted navigation bar 2014-07-03 11:54:25.406 Demo[2840:60b] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.

你可能感興趣的:

微信
微博
15311698296

全國免費咨詢熱線

郵箱:codingke@1000phone.com

官方群:148715490

北京千鋒互聯(lián)科技有限公司版權(quán)所有   北京市海淀區(qū)寶盛北里西區(qū)28號中關(guān)村智誠科創(chuàng)大廈4層
京ICP備2021002079號-2   Copyright ? 2017 - 2022
返回頂部 返回頂部