Skip to content

Commit

Permalink
Fixed all code in chapter-datesCalendarsEvents for Xcode 7 Beta 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vandadnp committed Jun 29, 2015
1 parent 448a560 commit fbc7974
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 6 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
type: EKSourceType,
title: String) -> EKSource?{

for source in eventStore.sources() as [EKSource]{
for source in eventStore.sources{
if source.sourceType.rawValue == type.rawValue &&
source.title.caseInsensitiveCompare(title) ==
NSComparisonResult.OrderedSame{
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
type: EKSourceType,
title: String) -> EKSource?{

for source in eventStore.sources() as [EKSource]{
for source in eventStore.sources{
if source.sourceType.rawValue == type.rawValue &&
source.title.caseInsensitiveCompare(title) ==
NSComparisonResult.OrderedSame{
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
type: EKSourceType,
title: String) -> EKSource?{

for source in eventStore.sources() as [EKSource]{
for source in eventStore.sources{
if source.sourceType.rawValue == type.rawValue &&
source.title.caseInsensitiveCompare(title) ==
NSComparisonResult.OrderedSame{
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
type: EKSourceType,
title: String) -> EKSource?{

for source in eventStore.sources() as [EKSource]{
for source in eventStore.sources{
if source.sourceType.rawValue == type.rawValue &&
source.title.caseInsensitiveCompare(title) ==
NSComparisonResult.OrderedSame{
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
type: EKSourceType,
title: String) -> EKSource?{

for source in eventStore.sources() as [EKSource]{
for source in eventStore.sources{
if source.sourceType.rawValue == type.rawValue &&
source.title.caseInsensitiveCompare(title) ==
NSComparisonResult.OrderedSame{
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var icloudEventSource: EKSource?

let eventStore = EKEventStore()
for source in eventStore.sources(){
for source in eventStore.sources{
if source.sourceType.rawValue == EKSourceType.CalDAV.rawValue &&
source.title.lowercaseString == "icloud"{
icloudEventSource = source
Expand Down

0 comments on commit fbc7974

Please sign in to comment.