Skip to content

Instantly share code, notes, and snippets.

@lessthanyouthink
lessthanyouthink / ScrollViewPinner.swift
Created December 6, 2017 15:51
Pins a given scroll view’s width and height to its content size (and insets). Useful when you want to place a scroll view within another scroll view.
//
// ScrollViewPinner.swift
//
// Created by Charles Joseph on 2017-11-01.
//
import Foundation
import UIKit
/// Pins a given scroll view’s width and height to its content size (and insets). Useful when you want to place a scroll view within another scroll view.
@lessthanyouthink
lessthanyouthink / CJProperRotationNavigationController.h
Created October 5, 2012 20:27
A simple UINavigationController subclass to handle iOS 6's orientation changes better.
//
// CJProperRotationNavigationController.h
//
// Created by Charles Joseph on 2012-10-01.
//
#import <UIKit/UIKit.h>
@interface CJProperRotationNavigationController : UINavigationController