Skip to content

Commit 07f866d

Browse files
author
Steve Trease
committed
Removed display of time received.
1 parent 0b6fe11 commit 07f866d

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

Swift Push 3/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
111111
println ("messageID: \(messageID)")
112112
}
113113
if let timeStamp = userInfo["timestamp"] as? NSTimeInterval {
114-
item.timeStamp = NSDate (timeIntervalSince1970: timeStamp)
114+
item.timeStampSent = NSDate (timeIntervalSince1970: timeStamp)
115115
println ("timestamp: \(timeStamp)")
116116
}
117117

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>318</string>
22+
<string>321</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIBackgroundModes</key>

Swift Push 3/NotificationData.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ let maxNotifications = 128
1515
class NotificationData {
1616
var alert: String = ""
1717
// var payload: String = ""
18-
var timeStamp = NSDate() // timestamp the date/time the notification record is created
18+
var timeStampSent = NSDate()
19+
var timeStampReceived = NSDate()
1920
var messageID: Int = 0
2021
}

Swift Push 3/NotificationsTableViewController.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,8 @@ class NotificationsTableViewController: UITableViewController, UISearchBarDelega
9393
cell.detailTextLabel?.numberOfLines = 0
9494

9595
cell.textLabel?.text = notification.alert as String
96-
// var detailTextLabel: String = NSDateFormatter.localizedStringFromDate(notification.timeStamp, dateStyle: .MediumStyle, timeStyle: .ShortStyle) as String
97-
// etailTextLabel += " \(notification.messageID) "
98-
// ell.detailTextLabel?.text = detailTextLabel
99-
cell.detailTextLabel?.text = NSDateFormatter.localizedStringFromDate(notification.timeStamp, dateStyle: .MediumStyle, timeStyle: .ShortStyle) as String + " (\(notification.messageID))"
100-
96+
cell.detailTextLabel?.text = NSDateFormatter.localizedStringFromDate(notification.timeStampSent, dateStyle: .MediumStyle, timeStyle: .ShortStyle) as String
97+
+ " (\(notification.messageID))"
10198

10299
if (indexPath.row % 2 == 0 ) {
103100
cell.backgroundColor = UIColor(white: 0.95, alpha: 1.0)

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>318</string>
9+
<string>321</string>
1010
<key>Key</key>
1111
<string>CurrentBuildNumber</string>
1212
<key>Title</key>

0 commit comments

Comments
 (0)