简体   繁体   中英

Dismiss View Controller iOS

第二个视图控制器层次结构

I used the self.dimiss(animated:true, compilation: nil) method to dismiss my second ViewController and it worked just fine until I applied some changes only to my UI in Storyboard, the code of the Second View Controller remained the same, but for some reason it stopped working.

I use Xcode Beta Version 8.0 beta 3 (8S174q)

its not compilation its completion:nil, moreover its not dimiss its dismiss. you have been using wrong syntax. use self.dismiss(animated:true, completion: nil) instead

You used the wrong syntax and notations in your code. The correct syntax is

self.dismiss(animated: true, completion: nil)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM