可以调用UIViewController的isViewLoaded方法来判断视图是否已经装载完成。 转载于:https://www.cnblogs.com/GnagWang/archive/2012/01/14/2322438.html