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

switches don't toggle properly on objc version #34

Open
rrallo opened this issue Apr 13, 2015 · 4 comments
Open

switches don't toggle properly on objc version #34

rrallo opened this issue Apr 13, 2015 · 4 comments

Comments

@rrallo
Copy link

rrallo commented Apr 13, 2015

Hi was wondering if I'm doing anything wrong, but I want to use your controller in my app that supports 7.1. So I chose the 1.4 pod install. This code creates buttons that don't toggle easily at all. Your swift example works beautifully though.

    SevenSwitch *mySwitch = [[SevenSwitch alloc] initWithFrame:CGRectZero];
    mySwitch.center = contentView.center;
    mySwitch.on = NO;
    mySwitch.offImage = [UIImage imageNamed:@"cross.png"];
    mySwitch.onImage = [UIImage imageNamed:@"check.png"];
    mySwitch.onTintColor = [UIColor colorWithHue:0.08f saturation:0.74f brightness:1.00f alpha:1.00f];
    mySwitch.isRounded = YES;
    [contentView addSubview:mySwitch];
@MrMatthewDavis
Copy link

I'm having the same issue when using the 2.0 version. If i place a switch in a tableview cell, it becomes incredibly difficult to turn the switch on or off. The thumb even jumps out of the switch frame to the left or right sometimes.

EDIT: I can confirm that this only happens when placed inside a UITableViewCell. Any help would be appreciated.

@EralpB
Copy link

EralpB commented Jun 17, 2015

This sounds scary, it looks cool but I'm going to skip the library :)

@ghost
Copy link

ghost commented Nov 25, 2015

try to comment: cancelTrackingWithEvent

@ryanle-gamo
Copy link

Did not see these comments, I'm using it but there is a uicollectionview in my project. Poor me :(
@author, please check and fix if possible (y)

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

4 participants