Skip to content

Commit 2517ca3

Browse files
Steve TreaseSteve Trease
authored andcommitted
Messing aorund.
1 parent 768dd7c commit 2517ca3

File tree

6 files changed

+11
-25
lines changed

6 files changed

+11
-25
lines changed
Binary file not shown.

Swift Push 3/AppDelegate.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5858

5959
func application(application: UIApplication!, didRegisterForRemoteNotificationsWithDeviceToken deviceToken:NSData!) {
6060

61-
// for testing Xcode Server static analysis
62-
if (true) {
63-
println ("true")
64-
} else {
65-
println ("false")
66-
}
67-
6861
let existingToken: AnyObject? = NSUserDefaults.standardUserDefaults().objectForKey("deviceToken")
6962

7063
println("device token is " + deviceToken.description)

Swift Push 3/Base.lproj/Main.storyboard

Lines changed: 5 additions & 5 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="6751" systemVersion="14D105g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="NEu-qu-DLA">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6751" systemVersion="14D113c" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="NEu-qu-DLA">
33
<dependencies>
44
<deployment version="2048" identifier="iOS"/>
55
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6736"/>
@@ -13,7 +13,7 @@
1313
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
1414
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1515
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
16-
<searchBar key="tableHeaderView" contentMode="redraw" placeholder="Search" showsCancelButton="YES" id="eAE-ew-HFb">
16+
<searchBar key="tableHeaderView" contentMode="scaleToFill" placeholder="Search" showsCancelButton="YES" id="eAE-ew-HFb">
1717
<rect key="frame" x="0.0" y="64" width="600" height="44"/>
1818
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
1919
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no"/>
@@ -65,11 +65,12 @@
6565
</connections>
6666
</searchDisplayController>
6767
</objects>
68-
<point key="canvasLocation" x="1809" y="156"/>
68+
<point key="canvasLocation" x="2899" y="116"/>
6969
</scene>
7070
<!--Navigation Controller-->
7171
<scene sceneID="mPp-Ew-cqJ">
7272
<objects>
73+
<placeholder placeholderIdentifier="IBFirstResponder" id="SUV-4Z-yks" userLabel="First Responder" sceneMemberID="firstResponder"/>
7374
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="NEu-qu-DLA" sceneMemberID="viewController">
7475
<toolbarItems/>
7576
<navigationBar key="navigationBar" contentMode="scaleToFill" id="tHv-9t-Jmk">
@@ -81,9 +82,8 @@
8182
<segue destination="Ciy-dE-pCt" kind="relationship" relationship="rootViewController" id="NZ0-Es-w79"/>
8283
</connections>
8384
</navigationController>
84-
<placeholder placeholderIdentifier="IBFirstResponder" id="SUV-4Z-yks" userLabel="First Responder" sceneMemberID="firstResponder"/>
8585
</objects>
86-
<point key="canvasLocation" x="997" y="156"/>
86+
<point key="canvasLocation" x="2233" y="116"/>
8787
</scene>
8888
</scenes>
8989
</document>

Swift Push 3/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>234</string>
22+
<string>242</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIBackgroundModes</key>

Swift Push 3/NotificationsTableViewController.swift

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
class NotificationsTableViewController: UITableViewController, UISearchBarDelegate, UISearchDisplayDelegate {
11+
class NotificationsTableViewController: UITableViewController, UISearchBarDelegate {
1212

1313
var filteredNotifications = [NotificationData]()
1414

@@ -21,7 +21,7 @@ class NotificationsTableViewController: UITableViewController, UISearchBarDelega
2121
}
2222

2323
func searchDisplayController(controller: UISearchDisplayController!, shouldReloadTableForSearchString searchString: String!) -> Bool {
24-
self.filterContentForSearchText(searchString)
24+
self.filterContentForSearchText(searchString)
2525
return true
2626
}
2727

@@ -34,12 +34,9 @@ class NotificationsTableViewController: UITableViewController, UISearchBarDelega
3434
super.viewDidLoad()
3535
println("viewDidLoad")
3636

37-
// Uncomment the following line to preserve selection between presentations
38-
// self.clearsSelectionOnViewWillAppear = false
39-
40-
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
41-
// self.navigationItem.rightBarButtonItem = self.editButtonItem()
4237

38+
// let searchController = UISearchController(searchResultsController: nil)
39+
// searchController.hidesNavigationBarDuringPresentation = false
4340

4441
let notificationCenter = NSNotificationCenter.defaultCenter()
4542
let mainQueue = NSOperationQueue.mainQueue()
@@ -50,11 +47,7 @@ class NotificationsTableViewController: UITableViewController, UISearchBarDelega
5047

5148
self.tableView.estimatedRowHeight = 44.0
5249
self.tableView.rowHeight = UITableViewAutomaticDimension
53-
54-
// self.tableView.layer.cornerRadius = 5.0
55-
// self.tableView.layer.masksToBounds = true
5650

57-
// self.view.backgroundColor = UIColor(red: 0.95, green: 0, blue: 0, alpha: 1.0)
5851
}
5952
override func didReceiveMemoryWarning() {
6053
super.didReceiveMemoryWarning()

Swift Push 3/Settings.bundle/Root.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<array>
77
<dict>
88
<key>DefaultValue</key>
9-
<string>234</string>
9+
<string>242</string>
1010
<key>Key</key>
1111
<string>CurrentBuildNumber</string>
1212
<key>Title</key>

0 commit comments

Comments
 (0)