Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random SIGABRT when setting detents #1

Open
Quader opened this issue Jan 23, 2012 · 0 comments
Open

Random SIGABRT when setting detents #1

Quader opened this issue Jan 23, 2012 · 0 comments

Comments

@Quader
Copy link

Quader commented Jan 23, 2012

Hi,
when setting detents to the SnappySlider i randomly get SIGABRT.

Apparently there's is no crash Log provided though.

I ran into this Issue when i first imported it into my project.
After this i calculated the detents in another method and returned it.
This seemed solving this issue. But now its back at a random point (i did not touched the snappyslider again).

Here´s my method for setting the detents:

-(void)setDetentsForSlider:(int)numberOfPages
{
    float step = 10.0f;

    NSMutableArray * sliderDetents = [[[NSMutableArray alloc] init] retain];

    for (int i = 0; i < numberOfPages; i++)
    {
        float detent = i * step;
        [sliderDetents addObject:[NSNumber numberWithFloat:detent]];
    }

    NSArray * sliderDetentsArray = [NSArray arrayWithArray:sliderDetents];

    pageSlider.detents = sliderDetentsArray;
    [sliderDetents release];
}

Cheers Steven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant