SCUtilities
@interface SCUtilities : NSObject
This class defines a set of internal helper methods
-
Method determines the system version
Declaration
Objective-C
+ (double)systemVersion; -
Method determines if code is being run on an iPad
Declaration
Objective-C
+ (BOOL)is_iPad; -
Method determines if the given view is inside a popover view
Declaration
Objective-C
+ (BOOL)isViewInsidePopover:(UIView *)view; -
Undocumented
Declaration
Objective-C
+ (BOOL)IsInternetConnectionAvailable; -
Undocumented
Declaration
Objective-C
+ (BOOL)isURLValid:(NSString *)urlString; -
Undocumented
Declaration
Objective-C
+ (NSObject *)getFirstNodeInNibWithName:(NSString *)nibName; -
Undocumented
Declaration
Objective-C
+ (NSString *)getUserFriendlyTitleFromName:(NSString *)propertyName; -
Undocumented
Declaration
Objective-C
+ (Class)swiftCompatibleNSClassFromString:(NSString *)className; -
Undocumented
Declaration
Objective-C
+ (BOOL)isStringClass:(Class)aClass; -
Undocumented
Declaration
Objective-C
+ (BOOL)isNumberClass:(Class)aClass; -
Undocumented
Declaration
Objective-C
+ (BOOL)isDateClass:(Class)aClass; -
Undocumented
Declaration
Objective-C
+ (BOOL)isDictionaryClass:(Class)aClass; -
Undocumented
Declaration
Objective-C
+ (BOOL)isBasicDataTypeClass:(Class)aClass; -
Undocumented
Declaration
Objective-C
+ (NSString *)dataStructureNameForClass:(Class)aClass; -
Undocumented
Declaration
Objective-C
+ (BOOL)propertyName:(NSString *)propertyName existsInObject:(NSObject *)object; -
Returns the the value for the given property in the given object.
- - parameter: propertyName The name of the property whose value is requested. propertyName can be
- given in a key-path format (e.g.: “subObject1.subObject2.subObject3”). More than one property
- can be given, separated by ‘;’ (e.g.: “property1;property2;property3”).
- - parameter: object The owner object of the given property.
- - returns: Returns the value of the given property. If more than one property name is given
- (separated by ‘;’), the return value is an NSArray. Returns nil if property does not exist
- in object (or NSNull if more than one property name is given).
Declaration
Objective-C
+ (NSObject *)valueForPropertyName:(NSString *)propertyName inObject:(NSObject *)object; -
Undocumented
Declaration
Objective-C
+ (NSString *)stringValueForPropertyName:(NSString *)propertyName inObject:(NSObject *)object separateValuesUsingDelimiter:(NSString *)delimiter; -
Undocumented
Declaration
Objective-C
+ (void)setValue:(NSObject *)value forPropertyName:(NSString *)propertyName inObject:(NSObject *)object; -
Undocumented
Declaration
Objective-C
+ (NSObject *)getValueCompatibleWithDataType:(SCDataType)dataType fromValue:(NSObject *)value; -
Undocumented
Declaration
Objective-C
+ (NSDictionary *)bindingsDictionaryForBindingsString:(NSString *)bindingsString; -
Undocumented
Declaration
Objective-C
+ (NSString *)bindingsStringForBindingsDictionary:(NSDictionary *)bindingsDictionary; -
Undocumented
Declaration
Objective-C
+ (NSString *)base64EncodedStringFromString:(NSString *)string; -
We need our own instantiator for cases where we need to port Xcode 6 view controller id naming conventions to Xcode 7
Declaration
Objective-C
+ (UIViewController *) instantiateViewControllerWithIdentifier:(NSString *)identifier usingStoryboard:(UIStoryboard *)storyboard; -
Undocumented
Declaration
Objective-C
+ (NSDate *)stripTimeFromDate:(NSDate *)date;
View on GitHub
Install in Dash
SCUtilities Class Reference