image.png 说明:没有手势的xib用lastObject没有问题,有手势的xib会不定出现获取到的视图为UITapgesture,导致闪退, image.png 改成firstObject就可以了!