在push一个viewController然后又用present的方式加载一个viewcontroller,然后回到起起始的viewcontroller。放在起始viewcontroller里面的button将会失灵。
而在所有的调用
pushViewController: animated:
presentViewController: animated: completion:
中将animated设为NO就不会有这种现象。
具体问题至下面github链接下载代码。将代码里所有用到animated:的地方设为NO,可正常工作。
github
You should comment the lines from 31 to 33 of ViewController.m