Created
January 24, 2012 20:44
-
-
Save macmade/1672460 to your computer and use it in GitHub Desktop.
GenericViewController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface GenericViewController: UIViewController | |
{} | |
@end | |
@implementation GenericViewController | |
{ | |
- ( id )init | |
{ | |
NSString * className; | |
NSString * nibName; | |
className = NSStringFromClass( [ self class ] ); | |
nibName = [ className substringToIndex: className.length - 10 ]; | |
if( ( self = [ super initWithNibName: nibName bundle: nil ] ) ) | |
{} | |
return self; | |
} | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment