Skip to content
Browse files

Adding UI blocking activity indicator SVProgressHUD.

  • Loading branch information...
1 parent 93441b9 commit c28c1eade95409666b50abae7f7160b91046583a @jsakuda jsakuda committed
View
5 .gitmodules
@@ -1,3 +1,6 @@
[submodule "vendor/MKNetworkKit"]
path = vendor/MKNetworkKit
- url = https://github.com/MugunthKumar/MKNetworkKit.git
+ url = https://github.com/MugunthKumar/MKNetworkKit.git
+[submodule "vendor/SVProgressHUD"]
+ path = vendor/SVProgressHUD
+ url = https://github.com/samvermette/SVProgressHUD.git
View
23 HI Capacity.xcodeproj/project.pbxproj
@@ -17,6 +17,9 @@
09A445A21567A6CD00634C53 /* UIImage+TKCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 09A445991567A6CD00634C53 /* UIImage+TKCategory.m */; };
09A445A31567A6CD00634C53 /* UIView+TKCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 09A4459B1567A6CD00634C53 /* UIView+TKCategory.m */; };
09A445B11568645D00634C53 /* CalendarViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 09A445B01568645D00634C53 /* CalendarViewController.m */; };
+ 09B27FEB157CBB940015FF1A /* SVProgressHUD.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 09B27FE8157CBB940015FF1A /* SVProgressHUD.bundle */; };
+ 09B27FEC157CBB940015FF1A /* SVProgressHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = 09B27FEA157CBB940015FF1A /* SVProgressHUD.m */; };
+ 09B27FF0157CBBDC0015FF1A /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 09B27FEE157CBBAE0015FF1A /* QuartzCore.framework */; };
09F56C69157B73B30028ACEB /* EventDetailsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 09F56C68157B73B30028ACEB /* EventDetailsViewController.m */; };
A39E33ED155FA29F0076ED6D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A39E33EC155FA29F0076ED6D /* UIKit.framework */; };
A39E33EF155FA29F0076ED6D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A39E33EE155FA29F0076ED6D /* Foundation.framework */; };
@@ -77,6 +80,10 @@
09A4459B1567A6CD00634C53 /* UIView+TKCategory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+TKCategory.m"; sourceTree = "<group>"; };
09A445AF1568645D00634C53 /* CalendarViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CalendarViewController.h; sourceTree = "<group>"; };
09A445B01568645D00634C53 /* CalendarViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = CalendarViewController.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
+ 09B27FE8157CBB940015FF1A /* SVProgressHUD.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = SVProgressHUD.bundle; sourceTree = "<group>"; };
+ 09B27FE9157CBB940015FF1A /* SVProgressHUD.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVProgressHUD.h; sourceTree = "<group>"; };
+ 09B27FEA157CBB940015FF1A /* SVProgressHUD.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SVProgressHUD.m; sourceTree = "<group>"; };
+ 09B27FEE157CBBAE0015FF1A /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
09F56C67157B73B30028ACEB /* EventDetailsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventDetailsViewController.h; sourceTree = "<group>"; };
09F56C68157B73B30028ACEB /* EventDetailsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EventDetailsViewController.m; sourceTree = "<group>"; };
A39E33E8155FA29F0076ED6D /* HI Capacity.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "HI Capacity.app"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -130,6 +137,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 09B27FF0157CBBDC0015FF1A /* QuartzCore.framework in Frameworks */,
A39E344D1564E2660076ED6D /* Security.framework in Frameworks */,
A39E344B1564E2610076ED6D /* SystemConfiguration.framework in Frameworks */,
A39E34491564E17A0076ED6D /* CFNetwork.framework in Frameworks */,
@@ -184,9 +192,22 @@
path = vendor/TapkuLibrary;
sourceTree = "<group>";
};
+ 09B27FE7157CBB940015FF1A /* SVProgressHUD */ = {
+ isa = PBXGroup;
+ children = (
+ 09B27FE8157CBB940015FF1A /* SVProgressHUD.bundle */,
+ 09B27FE9157CBB940015FF1A /* SVProgressHUD.h */,
+ 09B27FEA157CBB940015FF1A /* SVProgressHUD.m */,
+ );
+ name = SVProgressHUD;
+ path = ../SVProgressHUD/SVProgressHUD;
+ sourceTree = "<group>";
+ };
A39E33DD155FA29E0076ED6D = {
isa = PBXGroup;
children = (
+ 09B27FEE157CBBAE0015FF1A /* QuartzCore.framework */,
+ 09B27FE7157CBB940015FF1A /* SVProgressHUD */,
09A4458C1567A6CD00634C53 /* TapkuLibrary */,
A39E34281564E0D40076ED6D /* MKNetworkKit */,
A39E33F2155FA29F0076ED6D /* HI Capacity */,
@@ -387,6 +408,7 @@
A39E3400155FA29F0076ED6D /* MainStoryboard_iPhone.storyboard in Resources */,
A39E3403155FA29F0076ED6D /* MainStoryboard_iPad.storyboard in Resources */,
09A4459D1567A6CD00634C53 /* TapkuLibrary.bundle in Resources */,
+ 09B27FEB157CBB940015FF1A /* SVProgressHUD.bundle in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -444,6 +466,7 @@
09A445B11568645D00634C53 /* CalendarViewController.m in Sources */,
091E407815731F8900EE1F9E /* Event.m in Sources */,
09F56C69157B73B30028ACEB /* EventDetailsViewController.m in Sources */,
+ 09B27FEC157CBB940015FF1A /* SVProgressHUD.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
7 HI Capacity/CalendarViewController.m
@@ -11,6 +11,7 @@
#import "HTTPEngine.h"
#import "Event.h"
#import "EventDetailsViewController.h"
+#import "SVProgressHUD.h"
@interface CalendarViewController ()
@@ -45,6 +46,7 @@ - (NSArray*) calendarMonthView:(TKCalendarMonthView*)monthView marksFromDate:(NS
}
// Dates don't match, need to perform a new asynchronous query
+ [SVProgressHUD showWithStatus:@"Loading" maskType:SVProgressHUDMaskTypeClear];
// keep track of the last start and end dates queried for
lastStartDate = startDate;
@@ -96,6 +98,8 @@ - (NSArray*) calendarMonthView:(TKCalendarMonthView*)monthView marksFromDate:(NS
[self setDataArray:datesArray];
[self setDataDictionary:eventsDictionary];
[[self monthView] reload]; // reload the month view since new events were loaded
+
+ [SVProgressHUD dismiss];
}
onError:^(NSError *error) {
NSLog(@"%@", error);
@@ -181,4 +185,7 @@ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
}
}
+- (void)viewDidUnload {
+ [super viewDidUnload];
+}
@end
View
34 HI Capacity/en.lproj/MainStoryboard_iPhone.storyboard
@@ -275,40 +275,6 @@
<point key="canvasLocation" x="1087" y="-70"/>
</scene>
</scenes>
- <classes>
- <class className="CalendarViewController" superclassName="TKCalendarMonthTableViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/CalendarViewController.h"/>
- </class>
- <class className="EventDetailsViewController" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/EventDetailsViewController.h"/>
- <relationships>
- <relationship kind="outlet" name="eventDescText" candidateClass="UITextView"/>
- <relationship kind="outlet" name="eventSummaryLabel" candidateClass="UILabel"/>
- <relationship kind="outlet" name="eventTimeLabel" candidateClass="UILabel"/>
- </relationships>
- </class>
- <class className="PostContentViewController" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/PostContentViewController.h"/>
- <relationships>
- <relationship kind="outlet" name="contentLabel" candidateClass="UIWebView"/>
- <relationship kind="outlet" name="dateLabel" candidateClass="UILabel"/>
- <relationship kind="outlet" name="scrollView" candidateClass="UIScrollView"/>
- <relationship kind="outlet" name="titleLabel" candidateClass="UILabel"/>
- </relationships>
- </class>
- <class className="PostsViewController" superclassName="UITableViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/PostsViewController.h"/>
- <relationships>
- <relationship kind="outlet" name="postTableView" candidateClass="UITableView"/>
- </relationships>
- </class>
- <class className="TKCalendarMonthTableViewController" superclassName="TKCalendarMonthViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/TKCalendarMonthTableViewController.h"/>
- </class>
- <class className="TKCalendarMonthViewController" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/TKCalendarMonthViewController.h"/>
- </class>
- </classes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
1 vendor/SVProgressHUD
@@ -0,0 +1 @@
+Subproject commit e043df9addabad767b92417ce41658b1b487e5d8

0 comments on commit c28c1ea

Please sign in to comment.
Something went wrong with that request. Please try again.