首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
【
XibDemo
】的更多相关文章
XibDemo
//// MyviewViewController.h// XibDemo//// Created by hehe on 15/9/21.// Copyright (c) 2015年 wang.hehe. All rights reserved.// #import <UIKit/UIKit.h> @interface MyviewViewController : UIViewController @property (weak, nonatomic) IBOutlet UIButto…
iOS Xib布局某些控件显示或隐藏<约束的修改>
对于这个问题使用Masonry是很好解决的. 注意:绿色的是label2,当indexpath.section % 2 == 0时,label2不存在. 关键代码如下: if (indexPath.section % 2 == 0) { [cell.label2 mas_updateConstraints:^(MASConstraintMaker *make) { make.height.mas_equalTo(0); }]; } 代码如下: // // ViewController.m //…