It is found that when an application Slide left or right on the page of itouc4or pushes a View Controller, It is very stuck. At last, it was discovered that the border of the navigation controller was added with a shadow.
Previous Code:
-(Void) addFrameLeftLine {
UIColor * color = [UIColor blackColor];
CGSize offset = CGSizeMake (0, 3 );
Float radius = 2;
Float opacity = 1;
Self. navigationController. view. layer. shadowColor = color. CGColor;
Self. navigationController. view. layer. shadowOffset = offset;
Self. navigationController. view. layer. shadowRadius = radius;
Self. navigationController. view. layer. shadowOpacity = opacity;
}
Modified code:
-(Void) addFrameLeftLine {
CGPathRef shadow = CGPathCreateWithRect (CGRectInset (self. navigationController. view. bounds,-5, 0), NULL );
[Self. navigationController. view. layer setShadowPath: shadow];
[Self. navigationController. view. layer setShadowColor: [[UIColor blackColor] CGColor];
[Self. navigationController. view. layer setShadowOpacity: 0.3];
[Self. navigationController. view. layer setShadowRadius: 2];
CFRelease (shadow );
}