Skip to content

Instantly share code, notes, and snippets.

View rivera-ernesto's full-sized avatar
👨‍💻

Ernesto Rivera rivera-ernesto

👨‍💻
View GitHub Profile
@rivera-ernesto
rivera-ernesto / SafeNavigationController.h
Created August 15, 2014 03:20
SafeNavigationController which instead of ignoring subsequent push calls handles a "push queue"
//
// SafeNavigationController.h
// SafeNavigationController.h
//
// Created by 利辺羅 on 2014/08/14.
// Copyright (c) 2014年 CyberAgent Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="5056" systemVersion="13C1021" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="bNR-T5-btx">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
@rivera-ernesto
rivera-ernesto / NBUAvailability.h
Last active December 26, 2015 23:09
Availability replacement macros to check for new APIs usage that may cause a crash on older systems. Part of NBUCore.
#import <Availability.h>
#import <Foundation/NSObjCRuntime.h>
/**
Availability replacement macros to check for new APIs usage that may cause a crash on older systems.
Simple define your deployment target version before importing this header file in your prefix file.
E.g.: