This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class FLPRelativeDateFormatter: NSDateFormatter { | |
static let sharedFormatter = FLPRelativeDateFormatter() | |
override func stringFromDate(date: NSDate) -> String { | |
let interval = date.timeIntervalSinceNow | |
if (interval < 61){ | |
return "Just now" | |
}else if(interval < 3600){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDirectoryEnumerator *enumerator = [[NSFileManager defaultManager] enumeratorAtPath:@"/System/Library/PrivateFrameworks/"]; | |
for (NSString * objectName in enumerator) { | |
if(![objectName containsString:@"/"]) { | |
NSLog(@"%@",objectName); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import GoogleMaps; | |
@protocol LabelsEntityProviderLabeling <NSObject> | |
@property (assign, nonatomic) bool labelingEnabled; | |
@end | |
- (void)forceRemoveLabelsFromMap:(GMSMapView *)mapView { | |
GMSUISettings *settings = mapView.settings; |