Skip to content

Commit 773951e

Browse files
committed
updated for Swift 1.2
1 parent 0098341 commit 773951e

File tree

11 files changed

+149
-27
lines changed

11 files changed

+149
-27
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
6+
<false/>
7+
<key>IDESourceControlProjectIdentifier</key>
8+
<string>F429D9DB-54E3-4ED9-9EB4-4596264A1B4E</string>
9+
<key>IDESourceControlProjectName</key>
10+
<string>IOS8SwiftLocalNotificationTutorial</string>
11+
<key>IDESourceControlProjectOriginsDictionary</key>
12+
<dict>
13+
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
14+
<string>https://github.com/ioscreator/ioscreator.git</string>
15+
</dict>
16+
<key>IDESourceControlProjectPath</key>
17+
<string>IOS8SwiftLocalNotificationTutorial/IOS8SwiftLocalNotificationTutorial.xcodeproj</string>
18+
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
19+
<dict>
20+
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
21+
<string>../../..</string>
22+
</dict>
23+
<key>IDESourceControlProjectURL</key>
24+
<string>https://github.com/ioscreator/ioscreator.git</string>
25+
<key>IDESourceControlProjectVersion</key>
26+
<integer>111</integer>
27+
<key>IDESourceControlProjectWCCIdentifier</key>
28+
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
29+
<key>IDESourceControlProjectWCConfigurations</key>
30+
<array>
31+
<dict>
32+
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
33+
<string>public.vcs.git</string>
34+
<key>IDESourceControlWCCIdentifierKey</key>
35+
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
36+
<key>IDESourceControlWCCName</key>
37+
<string>ioscreator</string>
38+
</dict>
39+
</array>
40+
</dict>
41+
</plist>

IOS8SwiftLocalNotificationTutorial/IOS8SwiftLocalNotificationTutorial/AppDelegate.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1313

1414
var window: UIWindow?
1515

16-
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
16+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool {
1717
// Override point for customization after application launch.
1818

1919
if(UIApplication.instancesRespondToSelector(Selector("registerUserNotificationSettings:"))) {
@@ -23,6 +23,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2323
return true
2424
}
2525

26+
27+
2628
func application(application: UIApplication, didReceiveLocalNotification notification: UILocalNotification) {
2729
application.applicationIconBadgeNumber = 0
2830
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
6+
<false/>
7+
<key>IDESourceControlProjectIdentifier</key>
8+
<string>8874730B-6C3B-4CD8-BF90-FCCEF5F49BD2</string>
9+
<key>IDESourceControlProjectName</key>
10+
<string>IOS8SwiftMapKitTutorial</string>
11+
<key>IDESourceControlProjectOriginsDictionary</key>
12+
<dict>
13+
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
14+
<string>https://github.com/ioscreator/ioscreator.git</string>
15+
</dict>
16+
<key>IDESourceControlProjectPath</key>
17+
<string>IOS8SwiftMapKitTutorial/IOS8SwiftMapKitTutorial.xcodeproj</string>
18+
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
19+
<dict>
20+
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
21+
<string>../../..</string>
22+
</dict>
23+
<key>IDESourceControlProjectURL</key>
24+
<string>https://github.com/ioscreator/ioscreator.git</string>
25+
<key>IDESourceControlProjectVersion</key>
26+
<integer>111</integer>
27+
<key>IDESourceControlProjectWCCIdentifier</key>
28+
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
29+
<key>IDESourceControlProjectWCConfigurations</key>
30+
<array>
31+
<dict>
32+
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
33+
<string>public.vcs.git</string>
34+
<key>IDESourceControlWCCIdentifierKey</key>
35+
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
36+
<key>IDESourceControlWCCName</key>
37+
<string>ioscreator</string>
38+
</dict>
39+
</array>
40+
</dict>
41+
</plist>

IOS8SwiftMapKitTutorial/IOS8SwiftMapKitTutorial/AppDelegate.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,31 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1313

1414
var window: UIWindow?
1515

16+
17+
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool {
18+
// Override point for customization after application launch.
19+
return true
20+
}
1621

17-
func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
18-
// Override point for customization after application launch.
19-
return true
20-
}
21-
22-
func applicationWillResignActive(application: UIApplication!) {
22+
func applicationWillResignActive(application: UIApplication) {
2323
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
2424
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
2525
}
2626

27-
func applicationDidEnterBackground(application: UIApplication!) {
27+
func applicationDidEnterBackground(application: UIApplication) {
2828
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
2929
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
3030
}
3131

32-
func applicationWillEnterForeground(application: UIApplication!) {
32+
func applicationWillEnterForeground(application: UIApplication) {
3333
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
3434
}
3535

36-
func applicationDidBecomeActive(application: UIApplication!) {
36+
func applicationDidBecomeActive(application: UIApplication) {
3737
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
3838
}
3939

40-
func applicationWillTerminate(application: UIApplication!) {
40+
func applicationWillTerminate(application: UIApplication) {
4141
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
4242
}
4343

IOS8SwiftMapKitTutorial/IOS8SwiftMapKitTutorial/Base.lproj/Main.storyboard

Lines changed: 3 additions & 6 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="6205" systemVersion="14A299l" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="14A388b" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
33
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6198"/>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
55
</dependencies>
66
<scenes>
77
<!--View Controller-->
@@ -34,9 +34,6 @@
3434
<simulatedMetricsContainer key="defaultSimulatedMetrics">
3535
<simulatedStatusBarMetrics key="statusBar"/>
3636
<simulatedOrientationMetrics key="orientation"/>
37-
<simulatedScreenMetrics key="destination" type="retina4">
38-
<size key="portraitSize" width="320" height="568"/>
39-
<size key="landscapeSize" width="568" height="320"/>
40-
</simulatedScreenMetrics>
37+
<simulatedScreenMetrics key="destination" type="retina4"/>
4138
</simulatedMetricsContainer>
4239
</document>

IOS8SwiftMapKitTutorial/IOS8SwiftMapKitTutorial/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ViewController: UIViewController {
2626
mapView.setRegion(region, animated: true)
2727

2828
let annotation = MKPointAnnotation()
29-
annotation.setCoordinate(location)
29+
annotation.coordinate = location
3030
annotation.title = "Big Ben"
3131
annotation.subtitle = "London"
3232

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
6+
<false/>
7+
<key>IDESourceControlProjectIdentifier</key>
8+
<string>7BB74E43-6DB0-45BB-9182-5CC2D8905271</string>
9+
<key>IDESourceControlProjectName</key>
10+
<string>IOS8SwiftMoveViewKeyboardTutorial</string>
11+
<key>IDESourceControlProjectOriginsDictionary</key>
12+
<dict>
13+
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
14+
<string>https://github.com/ioscreator/ioscreator.git</string>
15+
</dict>
16+
<key>IDESourceControlProjectPath</key>
17+
<string>IOS8SwiftMoveViewKeyboardTutorial/IOS8SwiftMoveViewKeyboardTutorial.xcodeproj</string>
18+
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
19+
<dict>
20+
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
21+
<string>../../..</string>
22+
</dict>
23+
<key>IDESourceControlProjectURL</key>
24+
<string>https://github.com/ioscreator/ioscreator.git</string>
25+
<key>IDESourceControlProjectVersion</key>
26+
<integer>111</integer>
27+
<key>IDESourceControlProjectWCCIdentifier</key>
28+
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
29+
<key>IDESourceControlProjectWCConfigurations</key>
30+
<array>
31+
<dict>
32+
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
33+
<string>public.vcs.git</string>
34+
<key>IDESourceControlWCCIdentifierKey</key>
35+
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
36+
<key>IDESourceControlWCCName</key>
37+
<string>ioscreator</string>
38+
</dict>
39+
</array>
40+
</dict>
41+
</plist>

0 commit comments

Comments
 (0)