常见的奇怪问题

可能是布局导致的,如果开始使用IOS自己的动态布局代码:

panelSave.translatesAutoresizingMaskIntoConstraints=NO;
constraints1=[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[panelSave]-0-|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(panelSave)];
[self.view addConstraints:constraints1];

......

后来改为sdautolayout:

panelSave.sd_layout.leftSpaceToView(self.view,IphoneWidth(0)).rightSpaceToView(self.view,IphoneWidth(0)).bottomSpaceToView(self.view,IphoneHeight(0)).heightIs(IphoneHeight(80));
记得要把panelSave.translatesAutoresizingMaskIntoConstraints=NO;这行代码注释掉,否则可能引起在某些情况下panelSave消失不见。