Skip to content

Commit c4d33a7

Browse files
committed
Removed switch from menu bar.
1 parent c60a0ef commit c4d33a7

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

Swift Push/Base.lproj/Main.storyboard

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9531" systemVersion="15D9c" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="XCN-vs-9xr">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9531" systemVersion="15E33e" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="XCN-vs-9xr">
33
<dependencies>
44
<deployment identifier="iOS"/>
55
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9529"/>
@@ -44,20 +44,8 @@
4444
<outlet property="delegate" destination="BYZ-38-t0r" id="j9Y-wF-RId"/>
4545
</connections>
4646
</tableView>
47-
<navigationItem key="navigationItem" title="Swift Push" id="VcA-Hs-3U8">
48-
<barButtonItem key="rightBarButtonItem" style="plain" id="lgF-b0-b23">
49-
<switch key="customView" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" id="Q3U-ZO-GPe">
50-
<rect key="frame" x="531" y="6" width="51" height="31"/>
51-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
52-
<color key="onTintColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
53-
<connections>
54-
<action selector="alertSwitch:" destination="BYZ-38-t0r" eventType="valueChanged" id="vrj-0s-t08"/>
55-
</connections>
56-
</switch>
57-
</barButtonItem>
58-
</navigationItem>
47+
<navigationItem key="navigationItem" title="Swift Push" id="VcA-Hs-3U8"/>
5948
<connections>
60-
<outlet property="alertSwitch" destination="Q3U-ZO-GPe" id="Zez-LH-8X8"/>
6149
<outlet property="tableView" destination="A2o-jL-Vhq" id="kFK-jj-PoN"/>
6250
</connections>
6351
</viewController>

Swift Push/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>398</string>
22+
<string>404</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIBackgroundModes</key>

Swift Push/ViewController.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class ViewController: UIViewController, UITableViewDataSource, UITableViewDelega
2121
var fetchedResultsController: NSFetchedResultsController?
2222

2323
@IBOutlet weak var tableView: UITableView!
24-
@IBOutlet var alertSwitch: UISwitch!
2524

2625

2726
// MARK: -
@@ -195,12 +194,7 @@ class ViewController: UIViewController, UITableViewDataSource, UITableViewDelega
195194
}
196195
}
197196

198-
199-
@IBAction func alertSwitch(sender: AnyObject) {
200-
print("alert switch state is \(alertSwitch.on)")
201-
}
202-
203-
197+
204198
func updateSearchResultsForSearchController(searchController: UISearchController)
205199
{
206200
let searchText = searchController.searchBar.text!

0 commit comments

Comments
 (0)