├── Podfile ├── showautolayout ├── Assets.xcassets │ ├── Contents.json │ ├── avatar.imageset │ │ ├── 1.jpeg │ │ ├── 1-1.jpeg │ │ ├── 1-2.jpeg │ │ └── Contents.json │ ├── starmingicon.imageset │ │ ├── 64height.png │ │ ├── 64height-1.png │ │ ├── 64height-2.png │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── ViewController.h ├── AppDelegate.h ├── main.m ├── Info.plist ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard ├── AppDelegate.m └── ViewController.m ├── README.md ├── showautolayout.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── .gitignore ├── showautolayoutTests ├── Info.plist └── showautolayoutTests.m └── showautolayoutUITests ├── Info.plist └── showautolayoutUITests.m /Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '7.0' 2 | pod 'SDWebImage' 3 | pod 'Masonry' 4 | pod 'Reveal-iOS-SDK', :configurations => ['Debug'] -------------------------------------------------------------------------------- /showautolayout/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /showautolayout/Assets.xcassets/avatar.imageset/1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ming1016/ShowAutoLayout/master/showautolayout/Assets.xcassets/avatar.imageset/1.jpeg -------------------------------------------------------------------------------- /showautolayout/Assets.xcassets/avatar.imageset/1-1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ming1016/ShowAutoLayout/master/showautolayout/Assets.xcassets/avatar.imageset/1-1.jpeg -------------------------------------------------------------------------------- /showautolayout/Assets.xcassets/avatar.imageset/1-2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ming1016/ShowAutoLayout/master/showautolayout/Assets.xcassets/avatar.imageset/1-2.jpeg -------------------------------------------------------------------------------- /showautolayout/Assets.xcassets/starmingicon.imageset/64height.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ming1016/ShowAutoLayout/master/showautolayout/Assets.xcassets/starmingicon.imageset/64height.png -------------------------------------------------------------------------------- /showautolayout/Assets.xcassets/starmingicon.imageset/64height-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ming1016/ShowAutoLayout/master/showautolayout/Assets.xcassets/starmingicon.imageset/64height-1.png -------------------------------------------------------------------------------- /showautolayout/Assets.xcassets/starmingicon.imageset/64height-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ming1016/ShowAutoLayout/master/showautolayout/Assets.xcassets/starmingicon.imageset/64height-2.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ShowAutoLayout 2 | 演示Auto Layout的Content Compression Resistance Priority的例子,例子展示的是比较常见的视图元素对于屏幕或父视图的挤压做出的不同权重的显示,这个Compression特性和Hugging处理起来比以前算frame的方式要简洁太多,这个是我认为为什么要用Auto Layout的主要原因。 3 | -------------------------------------------------------------------------------- /showautolayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /showautolayout/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // showautolayout 4 | // 5 | // Created by DaiMing on 15/12/21. 6 | // Copyright © 2015年 Starming. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /showautolayout/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // showautolayout 4 | // 5 | // Created by DaiMing on 15/12/21. 6 | // Copyright © 2015年 Starming. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /showautolayout/main.m: -------------------------------------------------------------------------------- 1 | //// 2 | // main.m 3 | // showautolayout 4 | // 5 | // Created by DaiMing on 15/12/21. 6 | // Copyright © 2015年 Starming. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /showautolayout/Assets.xcassets/avatar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "1.jpeg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "1-1.jpeg", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "1-2.jpeg", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /showautolayout/Assets.xcassets/starmingicon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "64height-2.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "64height.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "64height-1.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | Pods/ 27 | showautolayout.xcworkspace/ 28 | Podfile.lock 29 | -------------------------------------------------------------------------------- /showautolayout/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /showautolayoutTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /showautolayoutUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /showautolayoutTests/showautolayoutTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // showautolayoutTests.m 3 | // showautolayoutTests 4 | // 5 | // Created by DaiMing on 15/12/21. 6 | // Copyright © 2015年 Starming. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface showautolayoutTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation showautolayoutTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /showautolayout/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /showautolayoutUITests/showautolayoutUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // showautolayoutUITests.m 3 | // showautolayoutUITests 4 | // 5 | // Created by DaiMing on 15/12/21. 6 | // Copyright © 2015年 Starming. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface showautolayoutUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation showautolayoutUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /showautolayout/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /showautolayout/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /showautolayout/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // showautolayout 4 | // 5 | // Created by DaiMing on 15/12/21. 6 | // Copyright © 2015年 Starming. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /showautolayout/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // showautolayout 4 | // 5 | // Created by DaiMing on 15/12/21. 6 | // Copyright © 2015年 Starming. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "Masonry.h" 11 | #import "UIImageView+WebCache.h" 12 | 13 | static CGFloat const margin = 10; 14 | static NSString * const redLabelString = @"戴铭"; 15 | static NSString * const blueLabelString = @"www.starming.com站长"; 16 | static NSString * const subLeftString = @"iPhone“微博娃娃”和“已阅”开发者"; 17 | static NSString * const subRightString = @"喜欢画画,instagram帐号ming1016"; 18 | 19 | @interface ViewController () 20 | 21 | @property (nonatomic, strong) UIView *contentView; 22 | 23 | @property (nonatomic, strong) UIImageView *avatarImageView; 24 | @property (nonatomic, strong) UILabel *nameLabel; 25 | @property (nonatomic, strong) UILabel *describeLabel; 26 | @property (nonatomic, strong) UIImageView *iconImageView; 27 | 28 | @property (nonatomic, strong) UIView *subHelperView; 29 | @property (nonatomic, strong) UILabel *subLeftLabel; 30 | @property (nonatomic, strong) UIView *subSeparateView; 31 | @property (nonatomic, strong) UILabel *subRightLabel; 32 | 33 | @property (nonatomic, strong) UISlider *adjustSlider; 34 | 35 | @end 36 | 37 | @implementation ViewController 38 | 39 | - (void)viewDidLoad { 40 | [super viewDidLoad]; 41 | self.view.backgroundColor = [UIColor lightGrayColor]; 42 | [self.view addSubview:self.contentView]; 43 | [self.contentView addSubview:self.avatarImageView]; 44 | [self.contentView addSubview:self.nameLabel]; 45 | [self.contentView addSubview:self.describeLabel]; 46 | [self.contentView addSubview:self.iconImageView]; 47 | 48 | [self.contentView addSubview:self.subHelperView]; 49 | [self.subHelperView addSubview:self.subLeftLabel]; 50 | [self.subHelperView addSubview:self.subSeparateView]; 51 | [self.subHelperView addSubview:self.subRightLabel]; 52 | 53 | [self.contentView mas_makeConstraints:^(MASConstraintMaker *make) { 54 | make.top.equalTo(self.view).offset(60); 55 | make.left.equalTo(self.view).offset(margin); 56 | make.right.equalTo(self.view).offset(-margin); 57 | make.height.equalTo(@90); 58 | }]; 59 | [self.avatarImageView mas_makeConstraints:^(MASConstraintMaker *make) { 60 | make.top.equalTo(self.contentView).offset(margin); 61 | make.left.equalTo(self.contentView).offset(margin); 62 | make.size.mas_equalTo(CGSizeMake(35, 35)); 63 | }]; 64 | [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) { 65 | make.left.equalTo(self.avatarImageView.mas_right).offset(margin); 66 | make.top.equalTo(self.avatarImageView).offset(10); 67 | }]; 68 | [self.describeLabel mas_makeConstraints:^(MASConstraintMaker *make) { 69 | make.left.equalTo(self.nameLabel.mas_right).offset(margin); 70 | make.top.equalTo(self.nameLabel); 71 | }]; 72 | [self.iconImageView mas_makeConstraints:^(MASConstraintMaker *make) { 73 | make.left.equalTo(self.describeLabel.mas_right).offset(margin); 74 | make.top.equalTo(self.nameLabel); 75 | make.size.mas_equalTo(CGSizeMake(30, 20)); 76 | make.right.lessThanOrEqualTo(self.contentView).offset(-margin); 77 | }]; 78 | 79 | [self.subHelperView mas_makeConstraints:^(MASConstraintMaker *make) { 80 | make.top.equalTo(self.nameLabel.mas_bottom).offset(margin); 81 | make.left.equalTo(self.nameLabel); 82 | make.right.equalTo(self.contentView).offset(-margin); 83 | }]; 84 | [self.subLeftLabel mas_makeConstraints:^(MASConstraintMaker *make) { 85 | make.top.equalTo(self.subHelperView); 86 | make.left.equalTo(self.subHelperView); 87 | make.width.greaterThanOrEqualTo(@100); 88 | }]; 89 | [self.subSeparateView mas_makeConstraints:^(MASConstraintMaker *make) { 90 | make.top.equalTo(self.subLeftLabel).offset(6); 91 | make.left.equalTo(self.subLeftLabel.mas_right).offset(margin); 92 | make.size.mas_equalTo(CGSizeMake(15, 2)); 93 | }]; 94 | [self.subRightLabel mas_makeConstraints:^(MASConstraintMaker *make) { 95 | make.top.equalTo(self.subLeftLabel); 96 | make.left.equalTo(self.subSeparateView.mas_right).offset(margin); 97 | make.width.greaterThanOrEqualTo(@100); 98 | make.right.lessThanOrEqualTo(self.subHelperView).offset(-margin); 99 | }]; 100 | 101 | //slider 102 | [self.view addSubview:self.adjustSlider]; 103 | [self.adjustSlider mas_makeConstraints:^(MASConstraintMaker *make) { 104 | make.top.equalTo(self.contentView.mas_bottom).offset(margin); 105 | make.left.equalTo(self.view).offset(margin); 106 | make.right.equalTo(self.view).offset(-margin); 107 | }]; 108 | } 109 | 110 | #pragma mark - private 111 | - (void)updateAdjustSliderValue:(id)sender { 112 | if ([sender isKindOfClass:[UISlider class]]) { 113 | UISlider *slider = sender; 114 | float f = slider.value; 115 | [self.contentView mas_updateConstraints:^(MASConstraintMaker *make) { 116 | make.left.equalTo(self.view).offset(f); 117 | }]; 118 | } 119 | } 120 | 121 | #pragma mark - getter 122 | - (UIView *)contentView { 123 | if (!_contentView) { 124 | _contentView = [[UIView alloc] init]; 125 | _contentView.backgroundColor = [UIColor whiteColor]; 126 | _contentView.layer.cornerRadius = 4; 127 | _contentView.layer.shadowOffset = CGSizeMake(0, 0.5); 128 | _contentView.layer.shadowColor = [UIColor colorWithWhite:0.000 alpha:100].CGColor; 129 | _contentView.layer.shadowOpacity = 0.4; 130 | _contentView.layer.shadowRadius = 4; 131 | } 132 | return _contentView; 133 | } 134 | - (UIImageView *)avatarImageView { 135 | if (!_avatarImageView) { 136 | _avatarImageView = [[UIImageView alloc] init]; 137 | [_avatarImageView setImage:[UIImage imageNamed:@"avatar"]]; 138 | _avatarImageView.contentMode = UIViewContentModeScaleAspectFit; 139 | _avatarImageView.backgroundColor = [UIColor lightGrayColor]; 140 | _avatarImageView.clipsToBounds = YES; 141 | _avatarImageView.layer.cornerRadius = 35/2; 142 | } 143 | return _avatarImageView; 144 | } 145 | - (UILabel *)nameLabel { 146 | if (!_nameLabel) { 147 | _nameLabel = [[UILabel alloc] init]; 148 | _nameLabel.font = [UIFont systemFontOfSize:14]; 149 | _nameLabel.textColor = [UIColor orangeColor]; 150 | _nameLabel.text = redLabelString; 151 | [_nameLabel setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal]; 152 | } 153 | return _nameLabel; 154 | } 155 | - (UILabel *)describeLabel { 156 | if (!_describeLabel) { 157 | _describeLabel = [[UILabel alloc] init]; 158 | _describeLabel.font = [UIFont systemFontOfSize:14]; 159 | _describeLabel.textColor = [UIColor grayColor]; 160 | _describeLabel.text = blueLabelString; 161 | [_describeLabel setContentCompressionResistancePriority:UILayoutPriorityDefaultLow forAxis:UILayoutConstraintAxisHorizontal]; 162 | } 163 | return _describeLabel; 164 | } 165 | - (UIImageView *)iconImageView { 166 | if (!_iconImageView) { 167 | _iconImageView = [[UIImageView alloc] init]; 168 | [_iconImageView setImage:[UIImage imageNamed:@"starmingicon"]]; 169 | _iconImageView.contentMode = UIViewContentModeScaleAspectFit; 170 | } 171 | return _iconImageView; 172 | } 173 | - (UISlider *)adjustSlider { 174 | if (!_adjustSlider) { 175 | _adjustSlider = [[UISlider alloc] init]; 176 | _adjustSlider.minimumValue = margin; 177 | _adjustSlider.maximumValue = 200; 178 | _adjustSlider.minimumTrackTintColor = [UIColor lightGrayColor]; 179 | [_adjustSlider addTarget:self action:@selector(updateAdjustSliderValue:) forControlEvents:UIControlEventValueChanged]; 180 | } 181 | return _adjustSlider; 182 | } 183 | - (UIView *)subHelperView { 184 | if (!_subHelperView) { 185 | _subHelperView = [[UIView alloc] init]; 186 | } 187 | return _subHelperView; 188 | } 189 | - (UILabel *)subLeftLabel { 190 | if (!_subLeftLabel) { 191 | _subLeftLabel = [[UILabel alloc] init]; 192 | _subLeftLabel.font = [UIFont systemFontOfSize:14]; 193 | _subLeftLabel.textColor = [UIColor grayColor]; 194 | _subLeftLabel.text = subLeftString; 195 | [_subLeftLabel setContentCompressionResistancePriority:UILayoutPriorityDefaultLow forAxis:UILayoutConstraintAxisHorizontal]; 196 | } 197 | return _subLeftLabel; 198 | } 199 | - (UIView *)subSeparateView { 200 | if (!_subSeparateView) { 201 | _subSeparateView = [[UIView alloc] init]; 202 | _subSeparateView.backgroundColor = [UIColor grayColor]; 203 | [_subSeparateView setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal]; 204 | } 205 | return _subSeparateView; 206 | } 207 | - (UILabel *)subRightLabel { 208 | if (!_subRightLabel) { 209 | _subRightLabel = [[UILabel alloc] init]; 210 | _subRightLabel.font = [UIFont systemFontOfSize:14]; 211 | _subRightLabel.textColor = [UIColor grayColor]; 212 | _subRightLabel.text = subRightString; 213 | [_subRightLabel setContentCompressionResistancePriority:UILayoutPriorityDefaultLow forAxis:UILayoutConstraintAxisHorizontal]; 214 | } 215 | return _subRightLabel; 216 | } 217 | 218 | 219 | @end 220 | -------------------------------------------------------------------------------- /showautolayout.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3E6EE6941C27A3AF00AA8711 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E6EE6931C27A3AF00AA8711 /* main.m */; }; 11 | 3E6EE6971C27A3AF00AA8711 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E6EE6961C27A3AF00AA8711 /* AppDelegate.m */; }; 12 | 3E6EE69A1C27A3AF00AA8711 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E6EE6991C27A3AF00AA8711 /* ViewController.m */; }; 13 | 3E6EE69D1C27A3AF00AA8711 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3E6EE69B1C27A3AF00AA8711 /* Main.storyboard */; }; 14 | 3E6EE69F1C27A3AF00AA8711 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3E6EE69E1C27A3AF00AA8711 /* Assets.xcassets */; }; 15 | 3E6EE6A21C27A3AF00AA8711 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3E6EE6A01C27A3AF00AA8711 /* LaunchScreen.storyboard */; }; 16 | 3E6EE6AD1C27A3B000AA8711 /* showautolayoutTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E6EE6AC1C27A3B000AA8711 /* showautolayoutTests.m */; }; 17 | 3E6EE6B81C27A3B000AA8711 /* showautolayoutUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E6EE6B71C27A3B000AA8711 /* showautolayoutUITests.m */; }; 18 | 411CCF65FBF77B67A32B60CC /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 60BDE1036596B052B6599778 /* libPods.a */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 3E6EE6A91C27A3B000AA8711 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 3E6EE6871C27A3AF00AA8711 /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 3E6EE68E1C27A3AF00AA8711; 27 | remoteInfo = showautolayout; 28 | }; 29 | 3E6EE6B41C27A3B000AA8711 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 3E6EE6871C27A3AF00AA8711 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 3E6EE68E1C27A3AF00AA8711; 34 | remoteInfo = showautolayout; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 3E6EE68F1C27A3AF00AA8711 /* showautolayout.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = showautolayout.app; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 3E6EE6931C27A3AF00AA8711 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 41 | 3E6EE6951C27A3AF00AA8711 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 42 | 3E6EE6961C27A3AF00AA8711 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 43 | 3E6EE6981C27A3AF00AA8711 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 44 | 3E6EE6991C27A3AF00AA8711 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 45 | 3E6EE69C1C27A3AF00AA8711 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 3E6EE69E1C27A3AF00AA8711 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 47 | 3E6EE6A11C27A3AF00AA8711 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 48 | 3E6EE6A31C27A3AF00AA8711 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 3E6EE6A81C27A3B000AA8711 /* showautolayoutTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = showautolayoutTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 3E6EE6AC1C27A3B000AA8711 /* showautolayoutTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = showautolayoutTests.m; sourceTree = ""; }; 51 | 3E6EE6AE1C27A3B000AA8711 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 3E6EE6B31C27A3B000AA8711 /* showautolayoutUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = showautolayoutUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 3E6EE6B71C27A3B000AA8711 /* showautolayoutUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = showautolayoutUITests.m; sourceTree = ""; }; 54 | 3E6EE6B91C27A3B000AA8711 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 60BDE1036596B052B6599778 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | CAEAF5FE1E27DFE99DAD4A6E /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = ""; }; 57 | D577F6E9D5FDF0F8AFCBA70D /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 3E6EE68C1C27A3AF00AA8711 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 411CCF65FBF77B67A32B60CC /* libPods.a in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | 3E6EE6A51C27A3B000AA8711 /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | 3E6EE6B01C27A3B000AA8711 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | /* End PBXFrameworksBuildPhase section */ 84 | 85 | /* Begin PBXGroup section */ 86 | 2E8A16A5ED8D1B3553092B6B /* Pods */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | D577F6E9D5FDF0F8AFCBA70D /* Pods.debug.xcconfig */, 90 | CAEAF5FE1E27DFE99DAD4A6E /* Pods.release.xcconfig */, 91 | ); 92 | name = Pods; 93 | sourceTree = ""; 94 | }; 95 | 3E6EE6861C27A3AF00AA8711 = { 96 | isa = PBXGroup; 97 | children = ( 98 | 3E6EE6911C27A3AF00AA8711 /* showautolayout */, 99 | 3E6EE6AB1C27A3B000AA8711 /* showautolayoutTests */, 100 | 3E6EE6B61C27A3B000AA8711 /* showautolayoutUITests */, 101 | 3E6EE6901C27A3AF00AA8711 /* Products */, 102 | 2E8A16A5ED8D1B3553092B6B /* Pods */, 103 | A96A7EB360D13BE97770CED0 /* Frameworks */, 104 | ); 105 | sourceTree = ""; 106 | }; 107 | 3E6EE6901C27A3AF00AA8711 /* Products */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 3E6EE68F1C27A3AF00AA8711 /* showautolayout.app */, 111 | 3E6EE6A81C27A3B000AA8711 /* showautolayoutTests.xctest */, 112 | 3E6EE6B31C27A3B000AA8711 /* showautolayoutUITests.xctest */, 113 | ); 114 | name = Products; 115 | sourceTree = ""; 116 | }; 117 | 3E6EE6911C27A3AF00AA8711 /* showautolayout */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 3E6EE6951C27A3AF00AA8711 /* AppDelegate.h */, 121 | 3E6EE6961C27A3AF00AA8711 /* AppDelegate.m */, 122 | 3E6EE6981C27A3AF00AA8711 /* ViewController.h */, 123 | 3E6EE6991C27A3AF00AA8711 /* ViewController.m */, 124 | 3E6EE69B1C27A3AF00AA8711 /* Main.storyboard */, 125 | 3E6EE69E1C27A3AF00AA8711 /* Assets.xcassets */, 126 | 3E6EE6A01C27A3AF00AA8711 /* LaunchScreen.storyboard */, 127 | 3E6EE6A31C27A3AF00AA8711 /* Info.plist */, 128 | 3E6EE6921C27A3AF00AA8711 /* Supporting Files */, 129 | ); 130 | path = showautolayout; 131 | sourceTree = ""; 132 | }; 133 | 3E6EE6921C27A3AF00AA8711 /* Supporting Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 3E6EE6931C27A3AF00AA8711 /* main.m */, 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | 3E6EE6AB1C27A3B000AA8711 /* showautolayoutTests */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 3E6EE6AC1C27A3B000AA8711 /* showautolayoutTests.m */, 145 | 3E6EE6AE1C27A3B000AA8711 /* Info.plist */, 146 | ); 147 | path = showautolayoutTests; 148 | sourceTree = ""; 149 | }; 150 | 3E6EE6B61C27A3B000AA8711 /* showautolayoutUITests */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | 3E6EE6B71C27A3B000AA8711 /* showautolayoutUITests.m */, 154 | 3E6EE6B91C27A3B000AA8711 /* Info.plist */, 155 | ); 156 | path = showautolayoutUITests; 157 | sourceTree = ""; 158 | }; 159 | A96A7EB360D13BE97770CED0 /* Frameworks */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 60BDE1036596B052B6599778 /* libPods.a */, 163 | ); 164 | name = Frameworks; 165 | sourceTree = ""; 166 | }; 167 | /* End PBXGroup section */ 168 | 169 | /* Begin PBXNativeTarget section */ 170 | 3E6EE68E1C27A3AF00AA8711 /* showautolayout */ = { 171 | isa = PBXNativeTarget; 172 | buildConfigurationList = 3E6EE6BC1C27A3B000AA8711 /* Build configuration list for PBXNativeTarget "showautolayout" */; 173 | buildPhases = ( 174 | DEAB661DB884F7D1271B88DD /* Check Pods Manifest.lock */, 175 | 3E6EE68B1C27A3AF00AA8711 /* Sources */, 176 | 3E6EE68C1C27A3AF00AA8711 /* Frameworks */, 177 | 3E6EE68D1C27A3AF00AA8711 /* Resources */, 178 | BC618A8CE4F8874CF9190FEB /* Embed Pods Frameworks */, 179 | A1FE7045978B6C13C5EAE5E0 /* Copy Pods Resources */, 180 | ); 181 | buildRules = ( 182 | ); 183 | dependencies = ( 184 | ); 185 | name = showautolayout; 186 | productName = showautolayout; 187 | productReference = 3E6EE68F1C27A3AF00AA8711 /* showautolayout.app */; 188 | productType = "com.apple.product-type.application"; 189 | }; 190 | 3E6EE6A71C27A3B000AA8711 /* showautolayoutTests */ = { 191 | isa = PBXNativeTarget; 192 | buildConfigurationList = 3E6EE6BF1C27A3B000AA8711 /* Build configuration list for PBXNativeTarget "showautolayoutTests" */; 193 | buildPhases = ( 194 | 3E6EE6A41C27A3B000AA8711 /* Sources */, 195 | 3E6EE6A51C27A3B000AA8711 /* Frameworks */, 196 | 3E6EE6A61C27A3B000AA8711 /* Resources */, 197 | ); 198 | buildRules = ( 199 | ); 200 | dependencies = ( 201 | 3E6EE6AA1C27A3B000AA8711 /* PBXTargetDependency */, 202 | ); 203 | name = showautolayoutTests; 204 | productName = showautolayoutTests; 205 | productReference = 3E6EE6A81C27A3B000AA8711 /* showautolayoutTests.xctest */; 206 | productType = "com.apple.product-type.bundle.unit-test"; 207 | }; 208 | 3E6EE6B21C27A3B000AA8711 /* showautolayoutUITests */ = { 209 | isa = PBXNativeTarget; 210 | buildConfigurationList = 3E6EE6C21C27A3B000AA8711 /* Build configuration list for PBXNativeTarget "showautolayoutUITests" */; 211 | buildPhases = ( 212 | 3E6EE6AF1C27A3B000AA8711 /* Sources */, 213 | 3E6EE6B01C27A3B000AA8711 /* Frameworks */, 214 | 3E6EE6B11C27A3B000AA8711 /* Resources */, 215 | ); 216 | buildRules = ( 217 | ); 218 | dependencies = ( 219 | 3E6EE6B51C27A3B000AA8711 /* PBXTargetDependency */, 220 | ); 221 | name = showautolayoutUITests; 222 | productName = showautolayoutUITests; 223 | productReference = 3E6EE6B31C27A3B000AA8711 /* showautolayoutUITests.xctest */; 224 | productType = "com.apple.product-type.bundle.ui-testing"; 225 | }; 226 | /* End PBXNativeTarget section */ 227 | 228 | /* Begin PBXProject section */ 229 | 3E6EE6871C27A3AF00AA8711 /* Project object */ = { 230 | isa = PBXProject; 231 | attributes = { 232 | LastUpgradeCheck = 0710; 233 | ORGANIZATIONNAME = Starming; 234 | TargetAttributes = { 235 | 3E6EE68E1C27A3AF00AA8711 = { 236 | CreatedOnToolsVersion = 7.1.1; 237 | }; 238 | 3E6EE6A71C27A3B000AA8711 = { 239 | CreatedOnToolsVersion = 7.1.1; 240 | TestTargetID = 3E6EE68E1C27A3AF00AA8711; 241 | }; 242 | 3E6EE6B21C27A3B000AA8711 = { 243 | CreatedOnToolsVersion = 7.1.1; 244 | TestTargetID = 3E6EE68E1C27A3AF00AA8711; 245 | }; 246 | }; 247 | }; 248 | buildConfigurationList = 3E6EE68A1C27A3AF00AA8711 /* Build configuration list for PBXProject "showautolayout" */; 249 | compatibilityVersion = "Xcode 3.2"; 250 | developmentRegion = English; 251 | hasScannedForEncodings = 0; 252 | knownRegions = ( 253 | en, 254 | Base, 255 | ); 256 | mainGroup = 3E6EE6861C27A3AF00AA8711; 257 | productRefGroup = 3E6EE6901C27A3AF00AA8711 /* Products */; 258 | projectDirPath = ""; 259 | projectRoot = ""; 260 | targets = ( 261 | 3E6EE68E1C27A3AF00AA8711 /* showautolayout */, 262 | 3E6EE6A71C27A3B000AA8711 /* showautolayoutTests */, 263 | 3E6EE6B21C27A3B000AA8711 /* showautolayoutUITests */, 264 | ); 265 | }; 266 | /* End PBXProject section */ 267 | 268 | /* Begin PBXResourcesBuildPhase section */ 269 | 3E6EE68D1C27A3AF00AA8711 /* Resources */ = { 270 | isa = PBXResourcesBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | 3E6EE6A21C27A3AF00AA8711 /* LaunchScreen.storyboard in Resources */, 274 | 3E6EE69F1C27A3AF00AA8711 /* Assets.xcassets in Resources */, 275 | 3E6EE69D1C27A3AF00AA8711 /* Main.storyboard in Resources */, 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | }; 279 | 3E6EE6A61C27A3B000AA8711 /* Resources */ = { 280 | isa = PBXResourcesBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | ); 284 | runOnlyForDeploymentPostprocessing = 0; 285 | }; 286 | 3E6EE6B11C27A3B000AA8711 /* Resources */ = { 287 | isa = PBXResourcesBuildPhase; 288 | buildActionMask = 2147483647; 289 | files = ( 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | /* End PBXResourcesBuildPhase section */ 294 | 295 | /* Begin PBXShellScriptBuildPhase section */ 296 | A1FE7045978B6C13C5EAE5E0 /* Copy Pods Resources */ = { 297 | isa = PBXShellScriptBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | ); 301 | inputPaths = ( 302 | ); 303 | name = "Copy Pods Resources"; 304 | outputPaths = ( 305 | ); 306 | runOnlyForDeploymentPostprocessing = 0; 307 | shellPath = /bin/sh; 308 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; 309 | showEnvVarsInLog = 0; 310 | }; 311 | BC618A8CE4F8874CF9190FEB /* Embed Pods Frameworks */ = { 312 | isa = PBXShellScriptBuildPhase; 313 | buildActionMask = 2147483647; 314 | files = ( 315 | ); 316 | inputPaths = ( 317 | ); 318 | name = "Embed Pods Frameworks"; 319 | outputPaths = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | shellPath = /bin/sh; 323 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n"; 324 | showEnvVarsInLog = 0; 325 | }; 326 | DEAB661DB884F7D1271B88DD /* Check Pods Manifest.lock */ = { 327 | isa = PBXShellScriptBuildPhase; 328 | buildActionMask = 2147483647; 329 | files = ( 330 | ); 331 | inputPaths = ( 332 | ); 333 | name = "Check Pods Manifest.lock"; 334 | outputPaths = ( 335 | ); 336 | runOnlyForDeploymentPostprocessing = 0; 337 | shellPath = /bin/sh; 338 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 339 | showEnvVarsInLog = 0; 340 | }; 341 | /* End PBXShellScriptBuildPhase section */ 342 | 343 | /* Begin PBXSourcesBuildPhase section */ 344 | 3E6EE68B1C27A3AF00AA8711 /* Sources */ = { 345 | isa = PBXSourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 3E6EE69A1C27A3AF00AA8711 /* ViewController.m in Sources */, 349 | 3E6EE6971C27A3AF00AA8711 /* AppDelegate.m in Sources */, 350 | 3E6EE6941C27A3AF00AA8711 /* main.m in Sources */, 351 | ); 352 | runOnlyForDeploymentPostprocessing = 0; 353 | }; 354 | 3E6EE6A41C27A3B000AA8711 /* Sources */ = { 355 | isa = PBXSourcesBuildPhase; 356 | buildActionMask = 2147483647; 357 | files = ( 358 | 3E6EE6AD1C27A3B000AA8711 /* showautolayoutTests.m in Sources */, 359 | ); 360 | runOnlyForDeploymentPostprocessing = 0; 361 | }; 362 | 3E6EE6AF1C27A3B000AA8711 /* Sources */ = { 363 | isa = PBXSourcesBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | 3E6EE6B81C27A3B000AA8711 /* showautolayoutUITests.m in Sources */, 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | }; 370 | /* End PBXSourcesBuildPhase section */ 371 | 372 | /* Begin PBXTargetDependency section */ 373 | 3E6EE6AA1C27A3B000AA8711 /* PBXTargetDependency */ = { 374 | isa = PBXTargetDependency; 375 | target = 3E6EE68E1C27A3AF00AA8711 /* showautolayout */; 376 | targetProxy = 3E6EE6A91C27A3B000AA8711 /* PBXContainerItemProxy */; 377 | }; 378 | 3E6EE6B51C27A3B000AA8711 /* PBXTargetDependency */ = { 379 | isa = PBXTargetDependency; 380 | target = 3E6EE68E1C27A3AF00AA8711 /* showautolayout */; 381 | targetProxy = 3E6EE6B41C27A3B000AA8711 /* PBXContainerItemProxy */; 382 | }; 383 | /* End PBXTargetDependency section */ 384 | 385 | /* Begin PBXVariantGroup section */ 386 | 3E6EE69B1C27A3AF00AA8711 /* Main.storyboard */ = { 387 | isa = PBXVariantGroup; 388 | children = ( 389 | 3E6EE69C1C27A3AF00AA8711 /* Base */, 390 | ); 391 | name = Main.storyboard; 392 | sourceTree = ""; 393 | }; 394 | 3E6EE6A01C27A3AF00AA8711 /* LaunchScreen.storyboard */ = { 395 | isa = PBXVariantGroup; 396 | children = ( 397 | 3E6EE6A11C27A3AF00AA8711 /* Base */, 398 | ); 399 | name = LaunchScreen.storyboard; 400 | sourceTree = ""; 401 | }; 402 | /* End PBXVariantGroup section */ 403 | 404 | /* Begin XCBuildConfiguration section */ 405 | 3E6EE6BA1C27A3B000AA8711 /* Debug */ = { 406 | isa = XCBuildConfiguration; 407 | buildSettings = { 408 | ALWAYS_SEARCH_USER_PATHS = NO; 409 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 410 | CLANG_CXX_LIBRARY = "libc++"; 411 | CLANG_ENABLE_MODULES = YES; 412 | CLANG_ENABLE_OBJC_ARC = YES; 413 | CLANG_WARN_BOOL_CONVERSION = YES; 414 | CLANG_WARN_CONSTANT_CONVERSION = YES; 415 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 416 | CLANG_WARN_EMPTY_BODY = YES; 417 | CLANG_WARN_ENUM_CONVERSION = YES; 418 | CLANG_WARN_INT_CONVERSION = YES; 419 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 420 | CLANG_WARN_UNREACHABLE_CODE = YES; 421 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 422 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 423 | COPY_PHASE_STRIP = NO; 424 | DEBUG_INFORMATION_FORMAT = dwarf; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | ENABLE_TESTABILITY = YES; 427 | GCC_C_LANGUAGE_STANDARD = gnu99; 428 | GCC_DYNAMIC_NO_PIC = NO; 429 | GCC_NO_COMMON_BLOCKS = YES; 430 | GCC_OPTIMIZATION_LEVEL = 0; 431 | GCC_PREPROCESSOR_DEFINITIONS = ( 432 | "DEBUG=1", 433 | "$(inherited)", 434 | ); 435 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 436 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 437 | GCC_WARN_UNDECLARED_SELECTOR = YES; 438 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 439 | GCC_WARN_UNUSED_FUNCTION = YES; 440 | GCC_WARN_UNUSED_VARIABLE = YES; 441 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 442 | MTL_ENABLE_DEBUG_INFO = YES; 443 | ONLY_ACTIVE_ARCH = YES; 444 | SDKROOT = iphoneos; 445 | }; 446 | name = Debug; 447 | }; 448 | 3E6EE6BB1C27A3B000AA8711 /* Release */ = { 449 | isa = XCBuildConfiguration; 450 | buildSettings = { 451 | ALWAYS_SEARCH_USER_PATHS = NO; 452 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 453 | CLANG_CXX_LIBRARY = "libc++"; 454 | CLANG_ENABLE_MODULES = YES; 455 | CLANG_ENABLE_OBJC_ARC = YES; 456 | CLANG_WARN_BOOL_CONVERSION = YES; 457 | CLANG_WARN_CONSTANT_CONVERSION = YES; 458 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 459 | CLANG_WARN_EMPTY_BODY = YES; 460 | CLANG_WARN_ENUM_CONVERSION = YES; 461 | CLANG_WARN_INT_CONVERSION = YES; 462 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 463 | CLANG_WARN_UNREACHABLE_CODE = YES; 464 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 465 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 466 | COPY_PHASE_STRIP = NO; 467 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 468 | ENABLE_NS_ASSERTIONS = NO; 469 | ENABLE_STRICT_OBJC_MSGSEND = YES; 470 | GCC_C_LANGUAGE_STANDARD = gnu99; 471 | GCC_NO_COMMON_BLOCKS = YES; 472 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 473 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 474 | GCC_WARN_UNDECLARED_SELECTOR = YES; 475 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 476 | GCC_WARN_UNUSED_FUNCTION = YES; 477 | GCC_WARN_UNUSED_VARIABLE = YES; 478 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 479 | MTL_ENABLE_DEBUG_INFO = NO; 480 | SDKROOT = iphoneos; 481 | VALIDATE_PRODUCT = YES; 482 | }; 483 | name = Release; 484 | }; 485 | 3E6EE6BD1C27A3B000AA8711 /* Debug */ = { 486 | isa = XCBuildConfiguration; 487 | baseConfigurationReference = D577F6E9D5FDF0F8AFCBA70D /* Pods.debug.xcconfig */; 488 | buildSettings = { 489 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 490 | INFOPLIST_FILE = showautolayout/Info.plist; 491 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 492 | PRODUCT_BUNDLE_IDENTIFIER = com.starming.showautolayout; 493 | PRODUCT_NAME = "$(TARGET_NAME)"; 494 | }; 495 | name = Debug; 496 | }; 497 | 3E6EE6BE1C27A3B000AA8711 /* Release */ = { 498 | isa = XCBuildConfiguration; 499 | baseConfigurationReference = CAEAF5FE1E27DFE99DAD4A6E /* Pods.release.xcconfig */; 500 | buildSettings = { 501 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 502 | INFOPLIST_FILE = showautolayout/Info.plist; 503 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 504 | PRODUCT_BUNDLE_IDENTIFIER = com.starming.showautolayout; 505 | PRODUCT_NAME = "$(TARGET_NAME)"; 506 | }; 507 | name = Release; 508 | }; 509 | 3E6EE6C01C27A3B000AA8711 /* Debug */ = { 510 | isa = XCBuildConfiguration; 511 | buildSettings = { 512 | BUNDLE_LOADER = "$(TEST_HOST)"; 513 | INFOPLIST_FILE = showautolayoutTests/Info.plist; 514 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 515 | PRODUCT_BUNDLE_IDENTIFIER = com.starming.showautolayoutTests; 516 | PRODUCT_NAME = "$(TARGET_NAME)"; 517 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/showautolayout.app/showautolayout"; 518 | }; 519 | name = Debug; 520 | }; 521 | 3E6EE6C11C27A3B000AA8711 /* Release */ = { 522 | isa = XCBuildConfiguration; 523 | buildSettings = { 524 | BUNDLE_LOADER = "$(TEST_HOST)"; 525 | INFOPLIST_FILE = showautolayoutTests/Info.plist; 526 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 527 | PRODUCT_BUNDLE_IDENTIFIER = com.starming.showautolayoutTests; 528 | PRODUCT_NAME = "$(TARGET_NAME)"; 529 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/showautolayout.app/showautolayout"; 530 | }; 531 | name = Release; 532 | }; 533 | 3E6EE6C31C27A3B000AA8711 /* Debug */ = { 534 | isa = XCBuildConfiguration; 535 | buildSettings = { 536 | INFOPLIST_FILE = showautolayoutUITests/Info.plist; 537 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 538 | PRODUCT_BUNDLE_IDENTIFIER = com.starming.showautolayoutUITests; 539 | PRODUCT_NAME = "$(TARGET_NAME)"; 540 | TEST_TARGET_NAME = showautolayout; 541 | USES_XCTRUNNER = YES; 542 | }; 543 | name = Debug; 544 | }; 545 | 3E6EE6C41C27A3B000AA8711 /* Release */ = { 546 | isa = XCBuildConfiguration; 547 | buildSettings = { 548 | INFOPLIST_FILE = showautolayoutUITests/Info.plist; 549 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 550 | PRODUCT_BUNDLE_IDENTIFIER = com.starming.showautolayoutUITests; 551 | PRODUCT_NAME = "$(TARGET_NAME)"; 552 | TEST_TARGET_NAME = showautolayout; 553 | USES_XCTRUNNER = YES; 554 | }; 555 | name = Release; 556 | }; 557 | /* End XCBuildConfiguration section */ 558 | 559 | /* Begin XCConfigurationList section */ 560 | 3E6EE68A1C27A3AF00AA8711 /* Build configuration list for PBXProject "showautolayout" */ = { 561 | isa = XCConfigurationList; 562 | buildConfigurations = ( 563 | 3E6EE6BA1C27A3B000AA8711 /* Debug */, 564 | 3E6EE6BB1C27A3B000AA8711 /* Release */, 565 | ); 566 | defaultConfigurationIsVisible = 0; 567 | defaultConfigurationName = Release; 568 | }; 569 | 3E6EE6BC1C27A3B000AA8711 /* Build configuration list for PBXNativeTarget "showautolayout" */ = { 570 | isa = XCConfigurationList; 571 | buildConfigurations = ( 572 | 3E6EE6BD1C27A3B000AA8711 /* Debug */, 573 | 3E6EE6BE1C27A3B000AA8711 /* Release */, 574 | ); 575 | defaultConfigurationIsVisible = 0; 576 | defaultConfigurationName = Release; 577 | }; 578 | 3E6EE6BF1C27A3B000AA8711 /* Build configuration list for PBXNativeTarget "showautolayoutTests" */ = { 579 | isa = XCConfigurationList; 580 | buildConfigurations = ( 581 | 3E6EE6C01C27A3B000AA8711 /* Debug */, 582 | 3E6EE6C11C27A3B000AA8711 /* Release */, 583 | ); 584 | defaultConfigurationIsVisible = 0; 585 | defaultConfigurationName = Release; 586 | }; 587 | 3E6EE6C21C27A3B000AA8711 /* Build configuration list for PBXNativeTarget "showautolayoutUITests" */ = { 588 | isa = XCConfigurationList; 589 | buildConfigurations = ( 590 | 3E6EE6C31C27A3B000AA8711 /* Debug */, 591 | 3E6EE6C41C27A3B000AA8711 /* Release */, 592 | ); 593 | defaultConfigurationIsVisible = 0; 594 | defaultConfigurationName = Release; 595 | }; 596 | /* End XCConfigurationList section */ 597 | }; 598 | rootObject = 3E6EE6871C27A3AF00AA8711 /* Project object */; 599 | } 600 | --------------------------------------------------------------------------------