Skip to content

Commit 263d8cd

Browse files
stevetreaseSteve Trease
authored andcommitted
Build 600.
1 parent d205f38 commit 263d8cd

File tree

7 files changed

+22
-6
lines changed

7 files changed

+22
-6
lines changed

Swift Push 4/AppDelegate.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4343
item = NotificationData()
4444
item.alert = "test data " + formatter.stringFromNumber(i)!
4545
item.message = item.alert
46+
if (i % 3 == 0) {
47+
item.alert = ""
48+
}
4649
notifications.insert(item, atIndex: 0)
4750
}
4851
*/

Swift Push 4/Base.lproj/Main.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8187.4" systemVersion="15A279b" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="nIE-zw-TiR">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8191" systemVersion="15B17c" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="nIE-zw-TiR">
33
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8151.3"/>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/>
55
</dependencies>
66
<scenes>
77
<!--Navigation Controller-->

Swift Push 4/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>594</string>
22+
<string>601</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIBackgroundModes</key>

Swift Push 4/MasterViewController.swift

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,20 @@ class MasterViewController: UITableViewController, UISearchResultsUpdating {
101101
cell.detailTextLabel!.text = cell.detailTextLabel!.text! + " (\(notification.messageID))"
102102
}
103103

104-
if(indexPath.row % 2 == 0){
104+
// highlight alert messages in lightgray.
105+
if notification.alert == "" {
105106
cell.backgroundColor = UIColor.whiteColor()
107+
} else {
108+
cell.backgroundColor = UIColor.lightGrayColor().colorWithAlphaComponent(0.2)
109+
}
110+
111+
/*
112+
if(indexPath.row % 2 == 0){
113+
cell.backgroundColor = cell.backgroundColor!.colorWithAlphaComponent(0.10)
106114
} else{
107-
cell.backgroundColor = UIColor.lightGrayColor().colorWithAlphaComponent(0.20)
115+
cell.backgroundColor = cell.backgroundColor!.colorWithAlphaComponent(0.20)
108116
}
117+
*/
109118

110119
return cell
111120
}

Swift Push 4/NotificationData.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ class NotificationData {
1818
var timeStampSent = NSDate()
1919
var timeStampReceived = NSDate()
2020
var messageID: Int = 0
21+
enum messageType {
22+
case alert
23+
case message
24+
}
2125
}

Swift Push 4/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>594</string>
9+
<string>601</string>
1010
<key>Key</key>
1111
<string>CurrentBuildNumber</string>
1212
<key>Title</key>

0 commit comments

Comments
 (0)