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

自动布局不会显示 #5

Open
yaooort opened this issue May 11, 2017 · 0 comments
Open

自动布局不会显示 #5

yaooort opened this issue May 11, 2017 · 0 comments

Comments

@yaooort
Copy link

yaooort commented May 11, 2017

你好,自动布局不会显示

//滑动开关
    self.switchClose = [[LLSwitch alloc] init];
    self.switchClose.onColor = [UIColor colorWithHex:BG_SHOUYE alpha:0.86];    // switch is open color    开关打开的颜色
    self.switchClose.offColor = [UIColor colorWithHex:BG_SHOUYE alpha:0.66];    // switch is close color    开关关闭的颜色
    self.switchClose.faceColor = HEXCOLOR(COLOR_TONGYI_LV);    // switch face color    圆脸的颜色
    self.switchClose.animationDuration = 1.2f;    // switch open or close animation time    开关的动画时间
    [self.view addSubview:self.switchClose];
    [self.switchClose makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(INSET);
//        make.top.equalTo(self.).offset(INSET);
        make.bottom.equalTo(self.bottomView.top).offset(-INSET);
        make.width.equalTo(WIDTH_1*2);
        make.height.equalTo(HEIGHT_6);
    }];
 
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