Skip to content

Commit 1401e00

Browse files
committed
minor, eliminate unnecessary string coercion
1 parent ce792c4 commit 1401e00

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bk2ch13p630localNotification/ch26p899localNotification/ViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class ViewController: UIViewController {
8181
// Options button will offer Open, action buttons, Close
8282
ln.fireDate = NSDate(timeIntervalSinceNow:15)
8383
ln.soundName = UILocalNotificationDefaultSoundName
84+
// ln.repeatInterval = .Minute
8485
UIApplication.sharedApplication().scheduleLocalNotification(ln)
8586
}
8687
/*

bk2ch13p631todayExtension/CoffeeTimeTodayExtension/TodayViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TodayViewController: UIViewController, NCWidgetProviding {
2929
NSLog("doButton")
3030
let v = sender as! UIView
3131
let t = v.tag // tag is number of minutes
32-
if let url = NSURL(string:"coffeetime://\(String(t))") {
32+
if let url = NSURL(string:"coffeetime://\(t)") {
3333
NSLog("%@", "\(url)")
3434
self.extensionContext?.openURL(url, completionHandler: nil)
3535
}

0 commit comments

Comments
 (0)