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
| - (NSUInteger)supportedInterfaceOrientations { | |
| switch ([[UIDevice currentDevice] userInterfaceIdiom]) { | |
| case UIUserInterfaceIdiomPad: | |
| return UIInterfaceOrientationMaskLandscape; | |
| case UIUserInterfaceIdiomPhone: | |
| return UIInterfaceOrientationMaskPortrait; | |
| } |
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
| git log --pretty=format:"* %s" --reverse 567..HEAD |
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
| + (void)checkToDisplayConnectionAlert { | |
| static BOOL hasAlerted = NO; | |
| BOOL canConnect = ([[DLMHTTPClient sharedClient] networkReachabilityStatus] == AFNetworkReachabilityStatusReachableViaWWAN | [[DLMHTTPClient sharedClient] networkReachabilityStatus] == AFNetworkReachabilityStatusReachableViaWiFi); | |
| if (canConnect) { | |
| hasAlerted = NO; | |
| } else if (!hasAlerted) { |
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 <Foundation/Foundation.h> | |
| @interface NSObject (DCTPropertyNameFromSelector) | |
| - (NSString *)dct_propertyNameForSelector:(SEL)selector; | |
| @end |
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
| // | |
| // RQSTextFieldOptionsController.h | |
| // Requests | |
| // | |
| // Created by Daniel Tull on 03.10.2012. | |
| // Copyright (c) 2012 Daniel Tull. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> |
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 <Foundation/Foundation.h> | |
| int main(int argc, char *argv[]) { | |
| @autoreleasepool { | |
| NSArray *array = @[@"one", @"two", @"three", @"four", @"five", @"six", @"seven", @"eight", @"nine", @"ten", @"eleven", @"twelve"]; | |
| dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0); | |
| dispatch_group_t group = dispatch_group_create(); | |
| dispatch_semaphore_t semaphore = dispatch_semaphore_create(6); |
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/UIKit.h> | |
| @interface ActivityController : NSObject | |
| + (instancetype)presentActivityItems:(NSArray *)activityItems | |
| fromViewController:(UIViewController *)viewController | |
| barButtonItem:(UIBarButtonItem *)item; | |
| @end |
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
| @implementation ShakeAnimation { | |
| CGRect originalRect; | |
| NSInteger counter; | |
| } | |
| + (void)shakeView:(UIView *)view { | |
| [[[[self class] alloc] initWithView:view] shake]; | |
| } | |
| - (id)initWithView:(UIView *)view { |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>--project-company</key> | |
| <string>Elegant Chaos</string> | |
| <key>--company-id</key> | |
| <string>com.elegantchaos</string> | |
| <key>--keep-undocumented-objects</key> | |
| <false/> |
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
| /* | |
| ThreadedManagedObjectContext.h | |
| ThreadedManagedObjectContext | |
| Created by Daniel Tull on 25.07.2012. | |
| Copyright (c) 2012 Daniel Tull. All rights reserved. | |