From 6da34e431abaf7c8004cb2dbde9183f2e970c4d3 Mon Sep 17 00:00:00 2001 From: Dima4ka <dima4ka007@gmail.com> Date: Thu, 10 Apr 2014 14:30:18 -0400 Subject: [PATCH] ics file bug fixed --- WPI Calendar Event Creator/Base.lproj/Main.storyboard | 2 +- WPI Calendar Event Creator/WPIModel.m | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/WPI Calendar Event Creator/Base.lproj/Main.storyboard b/WPI Calendar Event Creator/Base.lproj/Main.storyboard index 296aff6..04265ae 100644 --- a/WPI Calendar Event Creator/Base.lproj/Main.storyboard +++ b/WPI Calendar Event Creator/Base.lproj/Main.storyboard @@ -980,7 +980,7 @@ <color key="backgroundColor" red="0.0" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> <fontDescription key="fontDescription" type="system" pointSize="14"/> - <textInputTraits key="textInputTraits" enablesReturnKeyAutomatically="YES"/> + <textInputTraits key="textInputTraits" autocapitalizationType="words" enablesReturnKeyAutomatically="YES"/> <connections> <outlet property="delegate" destination="EuZ-uN-7jh" id="oII-DW-iXL"/> </connections> diff --git a/WPI Calendar Event Creator/WPIModel.m b/WPI Calendar Event Creator/WPIModel.m index a89359a..b9981fb 100644 --- a/WPI Calendar Event Creator/WPIModel.m +++ b/WPI Calendar Event Creator/WPIModel.m @@ -308,7 +308,7 @@ static WPIModel *sharedDataModel = nil; NSError* error; - //[self.eventStore saveEvent:event span:EKSpanThisEvent error:&error]; + [self.eventStore saveEvent:event span:EKSpanThisEvent error:&error]; @@ -330,7 +330,8 @@ static WPIModel *sharedDataModel = nil; } -(NSString*)getICSFile { - NSString *title = [self getTitleForPurpose:1]; + + NSString *title = ![(NSNumber*)[self.data valueForKey:@"Use Custom Professor"] boolValue] ? @"Appointment" : [self getTitleForPurpose:1]; NSDate *sDate = [self getDateForPurpose:2]; NSDate *eDate = [self getDateForPurpose:3]; NSString *location = [self getLocation]; -- GitLab