Permalink
Browse files

Merge branch 'overviewer'

  • Loading branch information...
2 parents 3cc5223 + c08fe94 commit ffd56ee4fad6ac727de692d6295d7cd8ae0e46a9 @jverkoey jverkoey committed Jul 29, 2011
Showing with 3,708 additions and 57 deletions.
  1. +1 −1 docs/Doxyfile
  2. BIN docs/gfx/overview-disk1.png
  3. BIN docs/gfx/overview-log1.png
  4. BIN docs/gfx/overview-maxloglevel1.png
  5. BIN docs/gfx/overview-memory1.png
  6. BIN docs/gfx/overview-memorywarning1.png
  7. BIN docs/gfx/overview1.png
  8. +56 −0 examples/photos/NetworkPhotoAlbums/NetworkPhotoAlbum.xcodeproj/project.pbxproj
  9. +7 −6 examples/photos/NetworkPhotoAlbums/src/AppDelegate.m
  10. +1 −0 examples/photos/NetworkPhotoAlbums/src/DribbblePhotoAlbumViewController.m
  11. +1 −0 examples/photos/NetworkPhotoAlbums/src/FacebookPhotoAlbumViewController.m
  12. +1 −1 examples/photos/NetworkPhotoAlbums/src/NetworkPhotoAlbumViewController.m
  13. +3 −2 examples/photos/NetworkPhotoAlbums/src/NetworkPhotoAlbum_Prefix.pch
  14. +84 −0 src/Doxygen.h
  15. +14 −0 src/core/src/NICommonMetrics.h
  16. +12 −0 src/core/src/NICommonMetrics.m
  17. +14 −0 src/core/src/NIDataStructures.h
  18. +71 −0 src/core/src/NIDataStructures.m
  19. +19 −0 src/core/unittests/NIDataStructureTests.m
  20. +5 −7 src/networkimage/src/NINetworkImageView.m
  21. +361 −0 src/overview/NimbusOverview.xcodeproj/project.pbxproj
  22. +20 −0 src/overview/lib/NimbusOverview_Prefix.pch
  23. BIN src/overview/resources/NimbusOverviewer.bundle/gfx/blueprint.gif
  24. +122 −0 src/overview/src/NIDeviceInfo.h
  25. +203 −0 src/overview/src/NIDeviceInfo.m
  26. +95 −0 src/overview/src/NIOverview.h
  27. +381 −0 src/overview/src/NIOverview.m
  28. +80 −0 src/overview/src/NIOverviewGraphView.h
  29. +124 −0 src/overview/src/NIOverviewGraphView.m
  30. +249 −0 src/overview/src/NIOverviewLogger.h
  31. +186 −0 src/overview/src/NIOverviewLogger.m
  32. +168 −0 src/overview/src/NIOverviewPageView.h
  33. +731 −0 src/overview/src/NIOverviewPageView.m
  34. +33 −0 src/overview/src/NIOverviewSwizzling.h
  35. +174 −0 src/overview/src/NIOverviewSwizzling.m
  36. +59 −0 src/overview/src/NIOverviewView.h
  37. +211 −0 src/overview/src/NIOverviewView.m
  38. +150 −0 src/overview/src/NimbusOverview.h
  39. +72 −40 src/photos/src/NIToolbarPhotoViewController.m
View
@@ -31,7 +31,7 @@ PROJECT_NAME = Nimbus
# This could be handy for archiving the generated documentation or
# if some version control system is used.
-PROJECT_NUMBER = 0.4.1.0
+PROJECT_NUMBER = 0.5.0
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -13,6 +13,14 @@
6631671713D680A500FF0CBE /* NetworkPhotoAlbumViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6631671613D680A500FF0CBE /* NetworkPhotoAlbumViewController.m */; };
6631673613D6825800FF0CBE /* CatalogTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6631673513D6825800FF0CBE /* CatalogTableViewController.m */; };
6631680D13D6891F00FF0CBE /* DribbblePhotoAlbumViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6631680C13D6891F00FF0CBE /* DribbblePhotoAlbumViewController.m */; };
+ 66409FA013E25C5300E9BA5A /* NIDeviceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 66409F9213E25C5300E9BA5A /* NIDeviceInfo.m */; };
+ 66409FA113E25C5300E9BA5A /* NIOverview.m in Sources */ = {isa = PBXBuildFile; fileRef = 66409F9513E25C5300E9BA5A /* NIOverview.m */; };
+ 66409FA213E25C5300E9BA5A /* NIOverviewGraphView.m in Sources */ = {isa = PBXBuildFile; fileRef = 66409F9713E25C5300E9BA5A /* NIOverviewGraphView.m */; };
+ 66409FA313E25C5300E9BA5A /* NIOverviewLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 66409F9913E25C5300E9BA5A /* NIOverviewLogger.m */; };
+ 66409FA413E25C5300E9BA5A /* NIOverviewPageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 66409F9B13E25C5300E9BA5A /* NIOverviewPageView.m */; };
+ 66409FA513E25C5300E9BA5A /* NIOverviewSwizzling.m in Sources */ = {isa = PBXBuildFile; fileRef = 66409F9D13E25C5300E9BA5A /* NIOverviewSwizzling.m */; };
+ 66409FA613E25C5300E9BA5A /* NIOverviewView.m in Sources */ = {isa = PBXBuildFile; fileRef = 66409F9F13E25C5300E9BA5A /* NIOverviewView.m */; };
+ 66409FA813E25C5E00E9BA5A /* NimbusOverviewer.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 66409FA713E25C5E00E9BA5A /* NimbusOverviewer.bundle */; };
665E0BB713CE815D008A1D21 /* NIDataStructures.m in Sources */ = {isa = PBXBuildFile; fileRef = 665E0B9913CE815D008A1D21 /* NIDataStructures.m */; };
665E0BB813CE815D008A1D21 /* NIDebuggingTools.m in Sources */ = {isa = PBXBuildFile; fileRef = 665E0B9B13CE815D008A1D21 /* NIDebuggingTools.m */; };
665E0BB913CE815D008A1D21 /* NIDeviceOrientation.m in Sources */ = {isa = PBXBuildFile; fileRef = 665E0B9D13CE815D008A1D21 /* NIDeviceOrientation.m */; };
@@ -67,6 +75,22 @@
6631673513D6825800FF0CBE /* CatalogTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CatalogTableViewController.m; path = src/CatalogTableViewController.m; sourceTree = "<group>"; };
6631680B13D6891F00FF0CBE /* DribbblePhotoAlbumViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DribbblePhotoAlbumViewController.h; path = src/DribbblePhotoAlbumViewController.h; sourceTree = "<group>"; };
6631680C13D6891F00FF0CBE /* DribbblePhotoAlbumViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DribbblePhotoAlbumViewController.m; path = src/DribbblePhotoAlbumViewController.m; sourceTree = "<group>"; };
+ 66409F9113E25C5300E9BA5A /* NIDeviceInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIDeviceInfo.h; path = ../../../src/overview/src/NIDeviceInfo.h; sourceTree = "<group>"; };
+ 66409F9213E25C5300E9BA5A /* NIDeviceInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIDeviceInfo.m; path = ../../../src/overview/src/NIDeviceInfo.m; sourceTree = "<group>"; };
+ 66409F9313E25C5300E9BA5A /* NimbusOverview.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NimbusOverview.h; path = ../../../src/overview/src/NimbusOverview.h; sourceTree = "<group>"; };
+ 66409F9413E25C5300E9BA5A /* NIOverview.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIOverview.h; path = ../../../src/overview/src/NIOverview.h; sourceTree = "<group>"; };
+ 66409F9513E25C5300E9BA5A /* NIOverview.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIOverview.m; path = ../../../src/overview/src/NIOverview.m; sourceTree = "<group>"; };
+ 66409F9613E25C5300E9BA5A /* NIOverviewGraphView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIOverviewGraphView.h; path = ../../../src/overview/src/NIOverviewGraphView.h; sourceTree = "<group>"; };
+ 66409F9713E25C5300E9BA5A /* NIOverviewGraphView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIOverviewGraphView.m; path = ../../../src/overview/src/NIOverviewGraphView.m; sourceTree = "<group>"; };
+ 66409F9813E25C5300E9BA5A /* NIOverviewLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIOverviewLogger.h; path = ../../../src/overview/src/NIOverviewLogger.h; sourceTree = "<group>"; };
+ 66409F9913E25C5300E9BA5A /* NIOverviewLogger.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIOverviewLogger.m; path = ../../../src/overview/src/NIOverviewLogger.m; sourceTree = "<group>"; };
+ 66409F9A13E25C5300E9BA5A /* NIOverviewPageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIOverviewPageView.h; path = ../../../src/overview/src/NIOverviewPageView.h; sourceTree = "<group>"; };
+ 66409F9B13E25C5300E9BA5A /* NIOverviewPageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIOverviewPageView.m; path = ../../../src/overview/src/NIOverviewPageView.m; sourceTree = "<group>"; };
+ 66409F9C13E25C5300E9BA5A /* NIOverviewSwizzling.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIOverviewSwizzling.h; path = ../../../src/overview/src/NIOverviewSwizzling.h; sourceTree = "<group>"; };
+ 66409F9D13E25C5300E9BA5A /* NIOverviewSwizzling.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIOverviewSwizzling.m; path = ../../../src/overview/src/NIOverviewSwizzling.m; sourceTree = "<group>"; };
+ 66409F9E13E25C5300E9BA5A /* NIOverviewView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIOverviewView.h; path = ../../../src/overview/src/NIOverviewView.h; sourceTree = "<group>"; };
+ 66409F9F13E25C5300E9BA5A /* NIOverviewView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIOverviewView.m; path = ../../../src/overview/src/NIOverviewView.m; sourceTree = "<group>"; };
+ 66409FA713E25C5E00E9BA5A /* NimbusOverviewer.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = NimbusOverviewer.bundle; path = ../../../src/overview/resources/NimbusOverviewer.bundle; sourceTree = "<group>"; };
665E0B9713CE815D008A1D21 /* NIBlocks.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIBlocks.h; path = ../../../src/core/src/NIBlocks.h; sourceTree = SOURCE_ROOT; };
665E0B9813CE815D008A1D21 /* NIDataStructures.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIDataStructures.h; path = ../../../src/core/src/NIDataStructures.h; sourceTree = SOURCE_ROOT; };
665E0B9913CE815D008A1D21 /* NIDataStructures.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIDataStructures.m; path = ../../../src/core/src/NIDataStructures.m; sourceTree = SOURCE_ROOT; };
@@ -361,6 +385,28 @@
name = Processors;
sourceTree = "<group>";
};
+ 66C52CC313DAA79E00D6BA6F /* Overview */ = {
+ isa = PBXGroup;
+ children = (
+ 66409F9113E25C5300E9BA5A /* NIDeviceInfo.h */,
+ 66409F9213E25C5300E9BA5A /* NIDeviceInfo.m */,
+ 66409F9313E25C5300E9BA5A /* NimbusOverview.h */,
+ 66409F9413E25C5300E9BA5A /* NIOverview.h */,
+ 66409F9513E25C5300E9BA5A /* NIOverview.m */,
+ 66409F9613E25C5300E9BA5A /* NIOverviewGraphView.h */,
+ 66409F9713E25C5300E9BA5A /* NIOverviewGraphView.m */,
+ 66409F9813E25C5300E9BA5A /* NIOverviewLogger.h */,
+ 66409F9913E25C5300E9BA5A /* NIOverviewLogger.m */,
+ 66409F9A13E25C5300E9BA5A /* NIOverviewPageView.h */,
+ 66409F9B13E25C5300E9BA5A /* NIOverviewPageView.m */,
+ 66409F9C13E25C5300E9BA5A /* NIOverviewSwizzling.h */,
+ 66409F9D13E25C5300E9BA5A /* NIOverviewSwizzling.m */,
+ 66409F9E13E25C5300E9BA5A /* NIOverviewView.h */,
+ 66409F9F13E25C5300E9BA5A /* NIOverviewView.m */,
+ );
+ name = Overview;
+ sourceTree = "<group>";
+ };
66EA057A13C011C0004FFE1A /* Source */ = {
isa = PBXGroup;
children = (
@@ -379,6 +425,7 @@
children = (
665E0B9513CE814D008A1D21 /* Core */,
665E0BC613CE8161008A1D21 /* Photos */,
+ 66C52CC313DAA79E00D6BA6F /* Overview */,
669815CB13D507F900417E8B /* ASIHTTPRequest */,
669819D313D5739D00417E8B /* Processors */,
669815CA13D507F200417E8B /* JSONKit */,
@@ -389,6 +436,7 @@
66EA059D13C0128E004FFE1A /* Resources */ = {
isa = PBXGroup;
children = (
+ 66409FA713E25C5E00E9BA5A /* NimbusOverviewer.bundle */,
66EAC7DB13D2A77D00BDFF34 /* NimbusPhotos.bundle */,
66EA05A213C01297004FFE1A /* NetworkPhotoAlbum-Info.plist */,
);
@@ -448,6 +496,7 @@
buildActionMask = 2147483647;
files = (
66EAC7DC13D2A77D00BDFF34 /* NimbusPhotos.bundle in Resources */,
+ 66409FA813E25C5E00E9BA5A /* NimbusOverviewer.bundle in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -497,6 +546,13 @@
6631673613D6825800FF0CBE /* CatalogTableViewController.m in Sources */,
6631680D13D6891F00FF0CBE /* DribbblePhotoAlbumViewController.m in Sources */,
667DC2BE13D89FD100C1B0ED /* NIPhotoScrubberView.m in Sources */,
+ 66409FA013E25C5300E9BA5A /* NIDeviceInfo.m in Sources */,
+ 66409FA113E25C5300E9BA5A /* NIOverview.m in Sources */,
+ 66409FA213E25C5300E9BA5A /* NIOverviewGraphView.m in Sources */,
+ 66409FA313E25C5300E9BA5A /* NIOverviewLogger.m in Sources */,
+ 66409FA413E25C5300E9BA5A /* NIOverviewPageView.m in Sources */,
+ 66409FA513E25C5300E9BA5A /* NIOverviewSwizzling.m in Sources */,
+ 66409FA613E25C5300E9BA5A /* NIOverviewView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -18,6 +18,7 @@
#import "FacebookPhotoAlbumViewController.h"
#import "CatalogTableViewController.h"
+#import "NimbusOverview.h"
///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -48,22 +49,22 @@ - (void)dealloc {
///////////////////////////////////////////////////////////////////////////////////////////////////
- (BOOL) application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+
+ [NIOverview applicationDidFinishLaunching];
+
self.window = [[[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds] autorelease];
- /*
- FacebookPhotoAlbumViewController* rootVC = [[[FacebookPhotoAlbumViewController alloc] initWithNibName:nil bundle:nil]
- autorelease];
- rootVC.facebookAlbumId = @"10150160584103418";
-*/
CatalogTableViewController* catalogVC =
[[[CatalogTableViewController alloc] initWithStyle:UITableViewStyleGrouped] autorelease];
_rootViewController = [[UINavigationController alloc] initWithRootViewController:catalogVC];
[self.window addSubview:_rootViewController.view];
- [self.window makeKeyAndVisible];
+ [NIOverview addOverviewToWindow:self.window];
+ [self.window makeKeyAndVisible];
+
return YES;
}
@@ -29,6 +29,7 @@ @implementation DribbblePhotoAlbumViewController
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)dealloc {
+ NI_RELEASE_SAFELY(_photoInformation);
NI_RELEASE_SAFELY(_apiPath);
[super dealloc];
@@ -30,6 +30,7 @@ @implementation FacebookPhotoAlbumViewController
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)dealloc {
+ NI_RELEASE_SAFELY(_photoInformation);
NI_RELEASE_SAFELY(_facebookAlbumId);
[super dealloc];
@@ -32,7 +32,7 @@ @implementation NetworkPhotoAlbumViewController
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)shutdown {
- for (ASIHTTPRequest *request in _queue.operations) {
+ for (ASIHTTPRequest* request in _queue.operations) {
request.delegate = nil;
}
[_queue cancelAllOperations];
@@ -15,8 +15,9 @@
//
#ifdef __OBJC__
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+#import <QuartzCore/QuartzCore.h>
#import "NimbusCore.h"
#import "NimbusPhotos.h"
#import "NimbusProcessors.h"
View
@@ -113,6 +113,90 @@
*/
/**
+ * @defgroup Version-5-0 Version 0.5 API Changes
+ * @ingroup Version-History
+ *
+ * Version 0.5.0 of Nimbus was released on July 29, 2011. This major version introduced the new
+ * Nimbus @link NimbusOverview Overview@endlink, a debugging tool that shows detailed information
+ * about the state of your device and application in the device's status bar area.
+ *
+ * @image html overview1.png "The Overview added to the network photo album app."
+ *
+ *
+ * <h2>Added Frameworks</h2>
+ *
+ * - @link NimbusOverview Nimbus Overview@endlink
+ *
+ *
+ * <h2>Core</h2>
+ *
+ * <h3>NICommonMetrics[.h]</h3>
+ *
+ * - <span class="apiDiffAdded">Added</span> <code>NIStatusBarFrameAnimationCurve()</code>
+ * - <span class="apiDiffAdded">Added</span> <code>NIStatusBarFrameAnimationDuration()</code>
+ * - <span class="apiDiffAdded">Added</span> <code>NIStatusBarHeight()</code>
+ * - <span class="apiDiffAdded">Added</span> <code>NIDeviceRotationDuration()</code>
+ *
+ * <h3>NIDataStructures[.h]</h3>
+ *
+ * - <span class="apiDiffAdded">Added</span> <code>[NILinkedList @link NILinkedList::objectEnumerator objectEnumerator@endlink]</code>
+ *
+ * <h3>NIDeviceOrientation[.h]</h3>
+ *
+ * - <span class="apiDiffAdded">Added</span> <code>NIRotateTransformForOrientation()</code>
+ *
+ *
+ * <h2>Network Image</h2>
+ *
+ * <h3>NINetworkImageView[.m]</h3>
+ *
+ * - <span class="apiDiffBugfix">Bugfix</span> Cancel network requests without blocking on the main thread.
+ *
+ *
+ * <h2>Photos</h2>
+ *
+ * <h3>NIToolbarPhotoViewController[.m]</h3>
+ *
+ * - <span class="apiDiffBugfix">Bugfix</span> Fix various memory leaks related to not releasing views on dealloc.
+ * - <span class="apiDiffBugfix">Bugfix</span> Fix memory leak when toggling the toolbar mode between a scrubber and buttons.
+ *
+ *
+ * <h2>Examples</h2>
+ *
+ * <h3>NetworkPhotoAlbums</h3>
+ *
+ * - <span class="apiDiffBugfix">Bugfix</span> Fix various memory leaks related to not releasing views on dealloc.
+ *
+ *
+ * <h2>Real Live People Involved in this Release</h2>
+ *
+ * <div class="contributor_profile">
+ * <img width="135px" height="135px" src="http://www.gravatar.com/avatar/f3c8603c353afa79b9f1c77f35efd566?s=135&amp;d=http://three20.info/gfx/team/silhouette.gif" />
+ * <div class="name">Jeff Verkoeyen</div>
+ * <div class="github"><a href="http://github.com/jverkoey">jverkoey</a></div>
+ * </div>
+ *
+ * <div class="clearfix"></div>
+ *
+ * <h3>Add Your Name to This List</h3>
+ *
+ * Contributions are highly encouraged! If you have a feature that you feel would fit within the
+ * Nimbus framework, feel free to fire off a pull request on GitHub. Bugs may be reported
+ * using the issue tracker on GitHub as well.
+ *
+ * Check out the <a href="https://github.com/jverkoey/nimbus/issues?sort=created&direction=desc&state=open&page=1&milestone=5">tasks grab bag</a>
+ * for opportunities to help out.
+ *
+ * <h2>Robots Involved in this Release</h2>
+ *
+ * <div class="contributor_profile">
+ * <div class="name"><a href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</a></div>
+ * </div>
+ *
+ * <div class="clearfix"></div>
+ */
+
+/**
* @defgroup Version-4 Version 0.4 API Changes
* @ingroup Version-History
*
@@ -54,6 +54,20 @@ UIViewAnimationCurve NIStatusBarAnimationCurve();
NSTimeInterval NIStatusBarAnimationDuration();
/**
+ * The animation curve used when animating the status bar frame.
+ *
+ * Value: UIViewAnimationCurveEaseInOut
+ */
+UIViewAnimationCurve NIStatusBarFrameAnimationCurve();
+
+/**
+ * The animation duration for animating the status bar frame.
+ *
+ * Value: 0.35 seconds
+ */
+NSTimeInterval NIStatusBarFrameAnimationDuration();
+
+/**
* Get the status bar's current height.
*
* If the status bar is hidden this will return 0.
@@ -42,6 +42,18 @@ NSTimeInterval NIStatusBarAnimationDuration() {
///////////////////////////////////////////////////////////////////////////////////////////////////
+UIViewAnimationCurve NIStatusBarFrameAnimationCurve() {
+ return UIViewAnimationCurveEaseInOut;
+}
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+NSTimeInterval NIStatusBarFrameAnimationDuration() {
+ return 0.35;
+}
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
CGFloat NIStatusBarHeight() {
CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame];
CGFloat statusBarHeight = MIN(statusBarFrame.size.width, statusBarFrame.size.height);
@@ -190,6 +190,20 @@ typedef void NILinkedListLocation;
/**
+ * @name Enumerating Objects
+ * @{
+ */
+#pragma mark Enumerating Objects
+
+/**
+ * Create an enumerator that can be used to enumerate this linked list.
+ */
+- (NSEnumerator *)objectEnumerator;
+
+/**@}*/// End of Enumerating Objects
+
+
+/**
* @name Constant-Time Access
* @{
*/
Oops, something went wrong.

0 comments on commit ffd56ee

Please sign in to comment.