You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
607 B

//
// UIViewController+NibResource.swift
// R.swift Library
//
// Created by Mathijs Kadijk on 06-12-15.
// From: https://github.com/mac-cain13/R.swift.Library
// License: MIT License
//
import Foundation
import UIKit
public extension UIViewController {
/**
Returns a newly initialized view controller with the nib resource (R.nib.*).
- parameter nib: The nib resource (R.nib.*) to associate with the view controller.
- returns: A newly initialized UIViewController object.
*/
convenience init(nib: NibResourceType) {
self.init(nibName: nib.name, bundle: nib.bundle)
}
}