This file contains 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) presentShareController:(SLComposeViewController*)shareCompose | |
{ | |
if ([shareCompose.serviceType isEqualToString:SLServiceTypeFacebook]) { | |
UIWindow *window = [[UIApplication sharedApplication] keyWindow]; | |
UIWindowLevel prevWindowLevel = window.windowLevel; | |
window.windowLevel = UIWindowLevelNormal; | |
SLComposeViewControllerCompletionHandler handler = shareCompose.completionHandler; | |
shareCompose.completionHandler = ^(SLComposeViewControllerResult result){ |
This file contains 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
int toIndex=0; | |
[self.tableView beginUpdates]; | |
for (NSDictionary* reddit in sortedReddits) { | |
NSString *displayName = [reddit valueForKeyPath:@"data.display_name"]; | |
NSUInteger fromIndex = | |
[_reddits indexOfObjectPassingTest:^BOOL(NSDictionary *obj, NSUInteger idx, BOOL *stop) { | |
if ([[obj valueForKeyPath:@"data.display_name"] isEqualToString:displayName] ) { | |
*stop = YES; | |
return YES; | |
} |
This file contains 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
int toIndex=0; | |
[self.tableView beginUpdates]; | |
for (NSDictionary* reddit in sortedReddits) { | |
NSString *displayName = [reddit valueForKeyPath:@"data.display_name"]; | |
NSUInteger fromIndex = | |
[_reddits indexOfObjectPassingTest:^BOOL(NSDictionary *obj, NSUInteger idx, BOOL *stop) { | |
if ([[obj valueForKeyPath:@"data.display_name"] isEqualToString:displayName] ) { | |
*stop = YES; | |
return YES; | |
} |
This file contains 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 <XCTest/XCTest.h> | |
typedef id (^OperationToExchangeForClass)(void); | |
@interface RCTestCase : XCTestCase | |
- (void) exchangeClassMethodForClass:(Class)clazz selector:(SEL)selector operation:(OperationToExchangeForClass)operation; | |
@property (nonatomic) NSBundle *unitTestBundle; |
This file contains 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 "NSURL+MUAdditions.h" | |
@implementation NSURL (MUAdditions) | |
-(NSURL*) URLByAppendingQueryString:(NSString*)queryString | |
{ | |
NSString *absoluteString = [self absoluteString]; | |
NSInteger startOfQueryString = [absoluteString rangeOfString:@"?"].location; | |
NSInteger startOfFragment = [absoluteString rangeOfString:@"#"].location; |
This file contains 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
post_install do |installer| | |
project = Xcodeproj::Project.open('MeetupApp.xcodeproj') | |
config_mapping = { | |
:Debug => 'Configuration/Debug.xcconfig' | |
} | |
set_xcconfig_reference(project,'MeetupApp','Debug','Configuration/Debug.xcconfig') | |
end | |
def set_xcconfig_reference(project, target_name, config_name, xcconfig_name) |
This file contains 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
//RCCoreData helper class | |
+(BOOL) onMainThread:(void (^)(void))mainThreadOperation | |
{ | |
BOOL isMainThread = [NSThread isMainThread]; | |
NSAssert(isMainThread, @"Should be on main thread"); | |
if (isMainThread) { | |
mainThreadOperation(); | |
} else { | |
dispatch_async(dispatch_get_main_queue(), mainThreadOperation); |
This file contains 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
#!/bin/sh | |
# run_scan_build.sh | |
# Hinge | |
# | |
# Created by al on 27/05/2015. | |
# Copyright (c) 2015 Hinge, Inc. All rights reserved. | |
CLANG_CHECK="Xcode" | |
XCODE_COMPILER_LOCATION="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" |
This file contains 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
ibrary/Caches/Snapshots | |
2015-06-30 17:58:50.852 <Notice> ======== HNGConfigurationService AppStore, Beta, production Hinge, 3.5.0 (10356) 2015.06.30, iPhone6,1 8.3 ======== | |
2015-06-30 17:58:51.022 <Notice> Breadcrumb: Using configuration: Beta | |
2015-06-30 17:58:51.088 <Notice> Breadcrumb: begin transaction UARegistration | |
2015-06-30 17:58:51.414 <Error> -[DatabaseManager initialisePersistentStore] [Line 196] [NSCocoaErrorDomain(259)] The operation couldn’t be completed. (Cocoa error 259.) { | |
NSSQLiteErrorDomain = 11; | |
NSUnderlyingException = "Fatal error. The database at /var/mobile/Containers/Data/Application/DB1255CB-0CE6-4572-8130-DBD693B8AFFF/Documents/hinge330.sqlite is corrupted. SQLite error code:11, 'database disk image is malformed'"; | |
} | |
2015-06-30 17:58:51.423 <Notice> Breadcrumb: logged error:The operation couldn’t be completed. (Cocoa error 259.) | |
2015-06-30 17:58:51.433 <Warning> --- Deleting Store: file:///var/mobile/Containers/Data/Application/DB1255CB-0CE6-4572-8130-DBD693B8AFFF/Documen |
This file contains 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
// | |
// UIImageView+RestaurantWebImage.h | |
// DinerApp | |
// | |
// Created by ALeszkiewicz on 6/21/16. | |
// Copyright © 2016 GrubHub Inc. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
OlderNewer