ios6 - iOS 6 auto layout 下VisualFormat 如何表达两个控件的距离上边距的距离相等?
巴扎黑
巴扎黑 2017-04-17 11:35:43
0
1
363
[contentView addConstraints:
         [NSLayoutConstraint constraintsWithVisualFormat:@"V:|-65-[userNameLabel]-5-[hotLabel]-(-17)-[hotImgView]"
                                                 options:0
                                                 metrics:nil
                                                   views:NSDictionaryOfVariableBindings(userNameLabel,hotLabel,hotImgView)]];

其中hotLabl 与 hotImgView 的距离上边的高度相等,我这种写法感觉还麻烦,不知道有什么方法能表示距离上边距相等和距离左边距相等的VLF 表示方法

巴扎黑
巴扎黑

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!