https://github.com/akosma/nib2objc
nib2objc – NIB to Objective-C
converter
This utility converts NIB files (or XIB ones) into Objective-C code,
including all the properties of each instance, the documented constructor
calls, and also the view hierarchy. It uses the output of the ibtool
utility bundled with the Xcode tools. For more information about ibtool,
please check the ibtool man page.
Usage
Compile and put the utility in your path, and then call
nib2objc yourfile.xib > code.m
This will generate a file with the output of the conversion, similar to
this (check out the included sample.m file for the full version):
// ...
UIView *view6 = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0,
320.0, 460.0)];
view6.frame = CGRectMake(0.0, 0.0, 320.0, 460.0);
view6.alpha = 1.000;
view6.autoresizingMask = UIViewAutoresizingFlexibleWidth |
UIViewAutoresizingFlexibleHeight;
view6.backgroundColor = [UIColor colorWithWhite:0.750 alpha:1.000];
view6.clearsContextBeforeDrawing = NO;
// ...
UIButton *button9 = [UIButton
buttonWithType:UIButtonTypeRoundedRect];
button9.frame = CGRectMake(167.0, 65.0, 72.0, 37.0);
button9.adjustsImageWhenDisabled = YES;
button9.adjustsImageWhenHighlighted = YES;
button9.alpha = 1.000;
button9.autoresizingMask = UIViewAutoresizingFlexibleRightMargin |
UIViewAutoresizingFlexibleBottomMargin;
button9.clearsContextBeforeDrawing = NO;
button9.clipsToBounds = NO;