Skip to content

Commit

Permalink
Updated for iOS 8.3 and Xcode 6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ioscreator committed Apr 22, 2015
1 parent be17feb commit 10f9adc
Show file tree
Hide file tree
Showing 22 changed files with 220 additions and 11 deletions.
Binary file added IOS8SWiftAttributedStringsTutorial/.DS_Store
Binary file not shown.
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>11EDE39F-651C-4D23-A8A4-BE36C338CC8C</string>
<key>IDESourceControlProjectName</key>
<string>IOS8SWiftAttributedStringsTutorial</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
<string>https://github.com/ioscreator/ioscreator.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>IOS8SWiftAttributedStringsTutorial/IOS8SWiftAttributedStringsTutorial.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/ioscreator/ioscreator.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
<key>IDESourceControlWCCName</key>
<string>ioscreator</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
Expand Up @@ -16,7 +16,7 @@ class ViewController: UIViewController {

// 1
let string = "Testing Attributed Strings" as NSString
var attributedString = NSMutableAttributedString(string: string)
var attributedString = NSMutableAttributedString(string: string as String)


// 2
Expand Down
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>0F96CB7A-2745-4E6D-B1DA-FE018092D5FE</string>
<key>IDESourceControlProjectName</key>
<string>IOS8SwiftActivityViewControllerTutorial</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
<string>https://github.com/ioscreator/ioscreator.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>IOS8SwiftActivityViewControllerTutorial/IOS8SwiftActivityViewControllerTutorial.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/ioscreator/ioscreator.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
<key>IDESourceControlWCCName</key>
<string>ioscreator</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
Expand Up @@ -27,7 +27,7 @@ class ViewController: UIViewController,UITextFieldDelegate {
textField.delegate = self
}

func textFieldShouldReturn(textField: UITextField!) -> Bool {
func textFieldShouldReturn(textField: UITextField) -> Bool {
textField.resignFirstResponder()

return true
Expand Down
Binary file modified IOS8SwiftAddRowsTableViewTutorial/.DS_Store
Binary file not shown.
Binary file not shown.
Expand Up @@ -18,7 +18,7 @@ class CarListViewController: UITableViewController {
}

@IBAction func done(segue:UIStoryboardSegue) {
var carDetailVC = segue.sourceViewController as CarDetailViewController
var carDetailVC = segue.sourceViewController as! CarDetailViewController
newCar = carDetailVC.name

cars.append(newCar)
Expand Down Expand Up @@ -48,11 +48,11 @@ class CarListViewController: UITableViewController {


override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("carCell", forIndexPath: indexPath) as UITableViewCell
let cell = tableView.dequeueReusableCellWithIdentifier("carCell", forIndexPath: indexPath) as! UITableViewCell

// Configure the cell...

cell.textLabel.text = cars[indexPath.row]
cell.textLabel!.text = cars[indexPath.row]

return cell
}
Expand Down
Binary file added IOS8SwiftAddSearchTableViewTutorial/.DS_Store
Binary file not shown.
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>D446639A-F0C7-484D-A370-7B06FD19703A</string>
<key>IDESourceControlProjectName</key>
<string>IOS8SwiftAddSearchTableViewTutorial</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
<string>https://github.com/ioscreator/ioscreator.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>IOS8SwiftAddSearchTableViewTutorial/IOS8SwiftAddSearchTableViewTutorial.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/ioscreator/ioscreator.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
<key>IDESourceControlWCCName</key>
<string>ioscreator</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
Expand Up @@ -56,7 +56,7 @@ class TableViewController: UITableViewController, UISearchResultsUpdating {


override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as UITableViewCell
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! UITableViewCell

// 3
if (self.resultSearchController.active) {
Expand All @@ -76,8 +76,8 @@ class TableViewController: UITableViewController, UISearchResultsUpdating {
filteredTableData.removeAll(keepCapacity: false)

let searchPredicate = NSPredicate(format: "SELF CONTAINS[c] %@", searchController.searchBar.text)
let array = (tableData as NSArray).filteredArrayUsingPredicate(searchPredicate!)
filteredTableData = array as [String]
let array = (tableData as NSArray).filteredArrayUsingPredicate(searchPredicate)
filteredTableData = array as! [String]

self.tableView.reloadData()
}
Expand Down
Binary file added IOS8SwiftCalculatorTutorial/.DS_Store
Binary file not shown.
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>855EE143-A68A-4305-8169-5B96DFA367D7</string>
<key>IDESourceControlProjectName</key>
<string>IOS8SwiftCalculatorTutorial</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
<string>https://github.com/ioscreator/ioscreator.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>IOS8SwiftCalculatorTutorial/IOS8SwiftCalculatorTutorial.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/ioscreator/ioscreator.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
<key>IDESourceControlWCCName</key>
<string>ioscreator</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
Expand Up @@ -14,10 +14,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?


func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
/*func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
// Override point for customization after application launch.
return true
}
}*/

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool {
return true
}

func applicationWillResignActive(application: UIApplication) {
// 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.
Expand Down
Binary file added iOS8SwiftAddEventTutorial/.DS_Store
Binary file not shown.
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>1FD7AE68-BA7F-4B5F-BFB3-7DF6A53ACB6F</string>
<key>IDESourceControlProjectName</key>
<string>iOS8SwiftAddEventTutorial</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
<string>https://github.com/ioscreator/ioscreator.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>iOS8SwiftAddEventTutorial/iOS8SwiftAddEventTutorial.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/ioscreator/ioscreator.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>0B5DE09DB2E2FB7363ABEFE25201CBF9E247BD54</string>
<key>IDESourceControlWCCName</key>
<string>ioscreator</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
Expand Up @@ -41,7 +41,7 @@ class ViewController: UIViewController {
func insertEvent(store: EKEventStore) {
// 1
let calendars = store.calendarsForEntityType(EKEntityTypeEvent)
as [EKCalendar]
as! [EKCalendar]

for calendar in calendars {
// 2
Expand Down

0 comments on commit 10f9adc

Please sign in to comment.