Skip to content

Instantly share code, notes, and snippets.

@ppm
ppm / gist:7254204
Created October 31, 2013 18:07
Response to animated/interactive UIViewController transition.
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self.transitionCoordinator animateAlongsideTransition:nil completion:^(id<UIViewControllerTransitionCoordinatorContext> context) {
if ( [context initiallyInteractive] ) return;
[self _onTransitionEnd:context];
}];
[self.transitionCoordinator notifyWhenInteractionEndsUsingBlock:^(id<UIViewControllerTransitionCoordinatorContext> context) {
[self _onTransitionEnd:context];
@Shilo
Shilo / NSAttributedString+Attributes.h
Created September 23, 2013 03:50
A category for NSAttributedString and NSMutableAttributedString to easily get or set sub-attributes.
//
// NSAttributedString+Attributes.h
// A category for NSAttributedString and NSMutableAttributedString to easily get or set sub-attributes.
//
// Created by Shilo White on 9/22/13.
// Copyright (c) 2013 XIDA Design & Technik. All rights reserved.
//
#import <Foundation/Foundation.h>
@yamaya
yamaya / xcode-clang-vers
Last active June 1, 2025 05:05
Xcode clang version record
# Xcode 4.3.3
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.3.2
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix