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
| #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
| // | |
| // 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> | |
| @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
| + (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
| 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
| - (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
| @protocol SnapshotCancellation | |
| - (void)cancel; | |
| @end | |
| + (id<SnapshotCancellation>)snapshotOfFolder:(NSString*)folder withBlock:(void(^)(Snapshot* shot))block { | |
| Snapshot* s = [[Snapshot alloc] initWithFolder:folder]; | |
| [s scanWithCompletion:block]; | |
| return s; |
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
| fetchRequest.entity = [RNPFeedListEntry entityInManagedObjectContext:self.managedObjectContext]; | |
| // this is the main predicate to get the feed entries that belong to the us | |
| NSPredicate *ownerPredicate = [NSPredicate predicateWithFormat:@"%K == %@ AND %K.%K == %@", | |
| RNPFeedListEntryRelationships.owner, self, RNPFeedListEntryRelationships.feed, | |
| RNPFeedAttributes.action, @(FeedAction_LIKE), self]; | |
| // this is the predicate to check that we have the required item | |
| NSPredicate *itemPopulatedPredicate = [NSPredicate predicateWithFormat:@"(%K.%K == nil) OR (%K.%K != nil)", | |
| RNPFeedListEntryRelationships.feed, RNPFeedAttributes.itemId, | |
| RNPFeedListEntryRelationships.feed, RNPFeedRelationships.item]; | |
| fetchRequest.predicate = [NSCompoundPredicate andPredicateWithSubpredicates:@[ownerPredicate, itemPopulatedPredicate]]; |
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
| echo "Starting Tag and upload to TestFlight with configuration: ${CONFIGURATION}" | |
| if [[ ${CONFIGURATION} != "Release" ]]; then | |
| exit | |
| fi | |
| cd ${SRCROOT} | |
| PREVIOUSTAG=`git tag | grep "$s." | sort -r | head -1` | |
| TAG="s.`git log --oneline | wc -l | tr -d ' '`" |