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 | |
APPBUNDLEPATH="${TARGET_BUILD_DIR}/${EXECUTABLE_NAME}.app/" | |
REVEALFRAMEWORKPATH="/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib" | |
if [ -f "${REVEALFRAMEWORKPATH}" ] && [ "${CONFIGURATION}" != "ReleaseAppStore" ]; then | |
cp "${REVEALFRAMEWORKPATH}" "${APPBUNDLEPATH}" | |
fi |
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
Date: | |
Short: 1/9/07 | |
Medium: Jan 9, 2007 | |
Long: January 9, 2007 | |
Full: Tuesday, January 9, 2007 | |
Time: | |
Short: 9:42 AM | |
Medium: 9:42:00 AM | |
Long: 9:42:00 AM GMT+1 |
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
use_frameworks! | |
pod 'CocoaLumberjack', '~> 2.0' | |
pod 'HRSCustomErrorHandling', :git => 'https://github.com/Hotel-Reservation-Service/HRSCustomErrorHandling.git', :commit => 'c4aa9fa7f670bb9b6e737893d94031bbbf335d29' #'~> 0.2' | |
pod 'Aspects', '~> 1.4' | |
pod 'BCFoundation', :path => '../../BCComponents' | |
pod 'BCInterface', :path => '../../BCComponents' | |
pod 'TFFoundation', :path => '../TFFoundation' |
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
// | |
// ItemCollectionViewController.m | |
// ViewDeckExample | |
// | |
// Created by Michael Ochs on 9/17/16. | |
// Copyright © 2016 ViewDeck. All rights reserved. | |
// | |
#import "ItemCollectionViewController.h" |
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
@interface MyObject : NSObject | |
@end | |
@implementation MyObject | |
- (void)doSomething { | |
for (int i = 0; i < 1000; i++) { | |
[self print:i]; | |
usleep(100); | |
} |
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
@implementation IrisSegue | |
- (void)perform | |
{ | |
[self.sourceViewController presentViewController:self.destinationViewController animated:NO completion:^{ | |
// don't ask - it just works with two calls to dispatch_async | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
NSString* shutterAnimationName = @"cameraIris"; | |
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
NSDate *date = [NSDate new]; | |
NSDateFormatter *dateFormatter = [NSDateFormatter new]; | |
dateFormatter.locale = [NSLocale localeWithLocaleIdentifier:@"nl_NL"]; | |
dateFormatter.dateStyle = NSDateFormatterFullStyle; | |
dateFormatter.formattingContext = NSFormattingContextDynamic; // this is the important setting | |
NSString *dateString = [dateFormatter stringFromDate:date]; | |
NSString *s1 = [NSString stringWithFormat:@"Foo %@", dateString]; // "Foo dinsdag 13 december 2016" |
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
@interface MyStringProxy : NSProxy | |
@property (nonatomic) NSString *target; | |
@end | |
@implementation MyStringProxy | |
- (BOOL)respondsToSelector:(SEL)aSelector { |
OlderNewer