Skip to content

Instantly share code, notes, and snippets.

View simondec's full-sized avatar

Simon de Carufel simondec

View GitHub Profile
@simondec
simondec / keybase.md
Created April 11, 2016 16:13
Proving my GitHub identity

Keybase proof

I hereby claim:

  • I am simondec on github.
  • I am simondec (https://keybase.io/simondec) on keybase.
  • I have a public key whose fingerprint is 2892 9A16 0A8F 1A64 A904 6C91 9AED 0D5E EAE8 EC00

To claim this, I am signing this object:

@simondec
simondec / ScrollableViewController.swift
Last active December 26, 2020 12:54
Recreating something similar to a UIPageViewController with a UIScrollView.
//
// ScrollableViewController.swift
//
import UIKit
class ScrollableViewController: UIViewController, UIScrollViewDelegate {
private let scrollView = UIScrollView()
private var controllers: Array<ViewController> = [
@interface TestViewController : UITableViewController
@end
@simondec
simondec / VariableCellHeightViewController.h
Last active August 29, 2015 14:19
Variable Cell Height TableView
#import <UIKit.h>
@interface VariableCellHeightViewController: UITableViewController
@end
@simondec
simondec / gist:5154313
Created March 13, 2013 17:28
Replacing the ViewController.m code by this one in the CollectionView-Simpe example will make the app crash when selecting an item. See like 82 for the problem (reloading an entire section doesn't seems to work).
/*
File: ViewController.m
Abstract: The primary view controller for this app.
Version: 1.0
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of
this Apple software constitutes acceptance of these terms. If you do