Skip to content
Snippets Groups Projects
Commit 6da34e43 authored by Dima4ka's avatar Dima4ka
Browse files

ics file bug fixed

parent efaf9afb
Branches
No related tags found
No related merge requests found
...@@ -980,7 +980,7 @@ ...@@ -980,7 +980,7 @@
<color key="backgroundColor" red="0.0" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/> <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"/> <color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/> <fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" enablesReturnKeyAutomatically="YES"/> <textInputTraits key="textInputTraits" autocapitalizationType="words" enablesReturnKeyAutomatically="YES"/>
<connections> <connections>
<outlet property="delegate" destination="EuZ-uN-7jh" id="oII-DW-iXL"/> <outlet property="delegate" destination="EuZ-uN-7jh" id="oII-DW-iXL"/>
</connections> </connections>
... ...
......
...@@ -308,7 +308,7 @@ static WPIModel *sharedDataModel = nil; ...@@ -308,7 +308,7 @@ static WPIModel *sharedDataModel = nil;
NSError* error; 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; ...@@ -330,7 +330,8 @@ static WPIModel *sharedDataModel = nil;
} }
-(NSString*)getICSFile { -(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 *sDate = [self getDateForPurpose:2];
NSDate *eDate = [self getDateForPurpose:3]; NSDate *eDate = [self getDateForPurpose:3];
NSString *location = [self getLocation]; NSString *location = [self getLocation];
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment