xibãã¡ã¤ã«ãObjective-Cã«å¤æãããã¼ã«
é å¸ãµã¤ãã¯ãã¡ãã
akosma's nib2objc at master - GitHub
http://github.com/akosma/nib2objc/tree/master
DLããç©ãXcodeã§ãã«ãããã¨ã³ãã³ãã©ã¤ã³ã¢ããªãçæããã¾ãã
xibãã¡ã¤ã«ãå¼æ°ã«ãã以ä¸ã®æ§ã«ä½¿ç¨ãã¾ãã
./nib2objc TestViewController.xib > output.txt
ãã¹ãã¨ãã¦ãã®æ§ãªã¬ã¤ã¢ã¦ããããxibãã¡ã¤ã«ãå¤æãã¦ã¿ã¾ããã
åºåå 容(UITextFieldã®è¨è¿°é¨åãæç²)ã¯ãã®æ§ã«æãã¾ããã
UITextField *view8 = [[UITextField alloc] initWithFrame:CGRectMake(111.0, 127.0, 97.0, 31.0)]; view8.frame = CGRectMake(111.0, 127.0, 97.0, 31.0); view8.adjustsFontSizeToFitWidth = YES; view8.alpha = 1.000; view8.autocapitalizationType = UITextAutocapitalizationTypeNone; view8.autocorrectionType = UITextAutocorrectionTypeDefault; view8.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin; view8.borderStyle = UITextBorderStyleRoundedRect; view8.clearsContextBeforeDrawing = NO; view8.clearsOnBeginEditing = YES; view8.clipsToBounds = NO; view8.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; view8.contentMode = UIViewContentModeScaleToFill; view8.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter; view8.enabled = YES; view8.enablesReturnKeyAutomatically = NO; view8.font = [UIFont fontWithName:@"Helvetica" size:12.000]; view8.hidden = NO; view8.highlighted = NO; view8.keyboardAppearance = UIKeyboardAppearanceDefault; view8.keyboardType = UIKeyboardTypeDefault; view8.minimumFontSize = 17.000; view8.multipleTouchEnabled = NO; view8.opaque = NO; view8.returnKeyType = UIReturnKeyDefault; view8.secureTextEntry = NO; view8.selected = NO; view8.tag = 0; view8.text = @"World!"; view8.textAlignment = UITextAlignmentLeft; view8.textColor = [UIColor colorWithWhite:0.000 alpha:1.000]; view8.userInteractionEnabled = YES;
ããã°ã©ã ã«ç´æ¥è¨è¿°ããããã®ãã¼ã«ã¨ãã¦ã¯ãã¡ããããInterface Builderã§è¨å®ãããããã®ãã©ã¡ã¼ã¿ã£ã¦å¯¾å¿ããããããã£ã£ã¦ä½ã ã£ãï¼ãã¨ãã£ãå ´åã«ãå½¹ã«ç«ã¡ããã§ãã