Skip to content

Instantly share code, notes, and snippets.

@lessthanyouthink
lessthanyouthink / ScrollViewPinner.swift
Created Dec 6, 2017
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.
View ScrollViewPinner.swift
//
// 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 Oct 5, 2012
A simple UINavigationController subclass to handle iOS 6's orientation changes better.
View CJProperRotationNavigationController.h
//
// CJProperRotationNavigationController.h
//
// Created by Charles Joseph on 2012-10-01.
//
#import <UIKit/UIKit.h>
@interface CJProperRotationNavigationController : UINavigationController