- (void)viewWillAppear:(BOOL)animated
{
CGPoint newPos = simpleLayer_.position;
newPos.y += 1.;
simpleLayer_.position = newPos;
[simpleLayer_ setNeedsDisplay];
}
------解决方案--------------------
- C/C++ code
- (void)viewWillAppear:(BOOL)animated { [self performSelector:@selector(initContentView) withObject:nil afterDelay:10]; }-(void)initContentView{ CGPoint newPos = simpleLayer_.position; newPos.y += 1.; simpleLayer_.position = newPos; [simpleLayer_ setNeedsDisplay]; }