我遇到一个问题,即A组长是一名推算员,以推力推波长B号,推 push的 an升将停止在25%左右,停止,然后以其他方式滑坡B。
这一DID NOT发生在6号SOS,但一旦我开始将7号SOS作为SCode5的SDK基础,就开始这样做。
定论是,观点控制人B没有从深层观点出发的背景情况(根本观点是一般装满意见的观察员。) 在这种根本观点中设置一个背景,先发制人将这一问题固定下来。
我设法确定如下:
// CASE 1: The root view for a UIViewController subclass that had a halting animation
- (id)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
// Do some initialization ...
// self.backgroundColor was NOT being set
// and animation in pushViewController was slow and stopped at 25% and paused
}
return self;
}
// CASE 2: HERE IS THE FIX
- (id)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
// Do some initialization ...
// Set self.backgroundColor for the fix!
// and animation in pushViewController is no longer slow and and no longer stopped at 25% and paused
self.backgroundColor = [UIColor whiteColor]; // or some other non-clear color
}
return self;
}