blommegard / SBTickerView

An easy to use ticker view with inspiration from Flipboard
MIT License
378 stars 49 forks source link

Strange line when "flipping cats" on Retina in Simulator #1

Open ivira opened 12 years ago

ivira commented 12 years ago

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...

blommegard commented 12 years ago

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.

comic222 commented 9 years ago

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

comic222 commented 9 years ago

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];

blommegard commented 9 years ago

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.

comic222 commented 9 years ago

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 notifications@github.com 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 .