GCKUIUtils Class

  • GCKUIUtils is a class containing utility methods for user interface tasks.

  • The class includes methods to retrieve the current view controller and format time intervals and local time strings.

GCKUIUtils Class Reference

Overview

User interface utility methods.

Since
3.0

Inherits NSObject.

Class Method Summary

(nullable UIViewController *) + currentViewController
 Returns the currently active view controller, by navigating through the view controller hierarchy beginning with the root view controller. More...
 
(NSString *) + timeIntervalAsString:
 Formats a time interval in MM:SS or H:MM:SS format. More...
 
(NSString *) + localTimeAsString:
 Formats a local time based on the current locale. More...
 

Method Detail

+ (nullable UIViewController *) currentViewController

Returns the currently active view controller, by navigating through the view controller hierarchy beginning with the root view controller.

+ (NSString *) timeIntervalAsString: (NSTimeInterval)  timeInterval

Formats a time interval in MM:SS or H:MM:SS format.

+ (NSString *) localTimeAsString: (NSTimeInterval)  localTime

Formats a local time based on the current locale.

Since
4.3.4