Skip to content

Commit c33ee43

Browse files
committed
Set deployment target to iOS 8.0
1 parent b1b591e commit c33ee43

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

Example/Example.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@
328328
buildSettings = {
329329
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
330330
INFOPLIST_FILE = Example/Info.plist;
331+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
331332
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
332333
PRODUCT_BUNDLE_IDENTIFIER = com.polydice.ICInputAccessoryExample;
333334
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -340,6 +341,7 @@
340341
buildSettings = {
341342
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
342343
INFOPLIST_FILE = Example/Info.plist;
344+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
343345
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
344346
PRODUCT_BUNDLE_IDENTIFIER = com.polydice.ICInputAccessoryExample;
345347
PRODUCT_NAME = "$(TARGET_NAME)";

Example/Example/ExampleCell.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,16 @@ class ExampleCell: UITableViewCell {
3535
contentView.addSubview(displayingView)
3636
displayingView.translatesAutoresizingMaskIntoConstraints = false
3737

38-
displayingView.topAnchor.constraintEqualToAnchor(contentView.topAnchor).active = true
39-
displayingView.leftAnchor.constraintEqualToAnchor(contentView.leftAnchor).active = true
40-
displayingView.bottomAnchor.constraintEqualToAnchor(contentView.bottomAnchor).active = true
41-
displayingView.rightAnchor.constraintEqualToAnchor(contentView.rightAnchor).active = true
38+
if #available(iOS 9.0, *) {
39+
displayingView.topAnchor.constraintEqualToAnchor(contentView.topAnchor).active = true
40+
displayingView.leftAnchor.constraintEqualToAnchor(contentView.leftAnchor).active = true
41+
displayingView.bottomAnchor.constraintEqualToAnchor(contentView.bottomAnchor).active = true
42+
displayingView.rightAnchor.constraintEqualToAnchor(contentView.rightAnchor).active = true
43+
} else {
44+
let views = ["view": displayingView]
45+
contentView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|[view]|", options: [], metrics: nil, views: views))
46+
contentView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:|[view]|", options: [], metrics: nil, views: views))
47+
}
4248
}
4349
}
4450
}

Example/Example/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>0.1.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

ICInputAccessory.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@
243243
DYLIB_INSTALL_NAME_BASE = "@rpath";
244244
INFOPLIST_FILE = ICInputAccessory/Info.plist;
245245
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
246+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
246247
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
247248
PRODUCT_BUNDLE_IDENTIFIER = com.polydice.ICInputAccessory;
248249
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -261,6 +262,7 @@
261262
DYLIB_INSTALL_NAME_BASE = "@rpath";
262263
INFOPLIST_FILE = ICInputAccessory/Info.plist;
263264
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
265+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
264266
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
265267
PRODUCT_BUNDLE_IDENTIFIER = com.polydice.ICInputAccessory;
266268
PRODUCT_NAME = "$(TARGET_NAME)";

ICInputAccessory/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>0.1.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)