SBTickerView icon indicating copy to clipboard operation
SBTickerView copied to clipboard

Strange line when "flipping cats" on Retina in Simulator

Open ivira opened this issue 14 years ago • 5 comments

Hi,

I've tried your app in Simulator (Version 5.1 (272.12)) and Device iPhone (Retina). And when I play with "Tickle Image Down"/"Tickle Image Down" I'm seeing strange vertical line at the "center of cat". Maybe just a simulator issue...

ivira avatar Dec 11 '11 15:12 ivira

Yeah, seen that one as well, I hope it's a Simulator bug, we keep this issue open if any one detects it on a real device.

blommegard avatar Dec 11 '11 15:12 blommegard

It happened on the real devices. Anyone knows how to fix this issue , or the author already fixed it yet?

comic222 avatar Apr 28 '15 12:04 comic222

I got a solution to remove this line ,

Open the SBTickerView , method : - (void)_initializeTick:(SBTickerViewTickDirection)direction and found the code below, comment those two lines.

CATransform3D perspective = CATransform3DIdentity;

// float zDistanse = 400; // perspective.m34 = 1. / -zDistanse; [_flipLayer setSublayerTransform:perspective];

comic222 avatar Apr 29 '15 09:04 comic222

I have not had a look at this code for many years, but commenting out those lines will result in no perspective on the transform.

blommegard avatar Apr 29 '15 10:04 blommegard

Hi, Yes, you are right, the strange line did disappeared when I commented those tow line codes. And as you said, no perspective effect .

And finally , I figured it out what happened .

The thing is,

You know UIView (SBExtras) this category, this is the key point , the method [** image] never be called. Because the sample you provided showed us like this:

[imageTickerView setFrontView:[[UIImageView alloc]

initWithImage:[UIImage imageNamed:@"front.jpeg"]]]; [imageTickerView setBackView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"back.jpeg"]]];

You got it right , we input the UIImageView, not UIView , so , method " - (UIImage*)image" in UIView (SBExtras) will never be called.

The simple way to solve this issue is just to add a UIImageView (SBExtras) and also applied the same category method "- (UIImage*)image".

Thanks for your replying.

Comic

On Wed, Apr 29, 2015 at 6:19 PM, Simon Blommegård [email protected] wrote:

I have not had a look at this code for many years, but commenting out those lines will result in no perspective on the transform.

— Reply to this email directly or view it on GitHub https://github.com/blommegard/SBTickerView/issues/1#issuecomment-97378998 .

comic222 avatar May 06 '15 09:05 comic222