├── README.md
├── LoadNibViewDemo
├── en.lproj
│ └── InfoPlist.strings
├── Common
│ ├── SubView.h
│ ├── UIView+Ext.h
│ ├── FileOwner.h
│ ├── FileOwner.m
│ ├── UIView+Ext.m
│ └── SubView.m
├── ViewController.h
├── NibLoadNib
│ ├── EmbeddedView.h
│ ├── EmbeddedView.m
│ └── EmbeddedView.xib
├── LoadNib
│ ├── View5
│ │ ├── View5.h
│ │ ├── View5.m
│ │ └── View5.xib
│ ├── View1
│ │ └── View1.xib
│ ├── View3
│ │ └── View3.xib
│ ├── View4
│ │ └── View4.xib
│ ├── View6
│ │ └── View6.xib
│ └── View2
│ │ └── View2.xib
├── AppDelegate.h
├── main.m
├── LoadNibViewDemo-Prefix.pch
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── Base.lproj
│ ├── Main_iPad.storyboard
│ └── Main_iPhone.storyboard
├── LoadNibViewDemo-Info.plist
├── AppDelegate.m
└── ViewController.m
├── LoadNibViewDemoTests
├── en.lproj
│ └── InfoPlist.strings
├── LoadNibViewDemoTests-Info.plist
└── LoadNibViewDemoTests.m
└── LoadNibViewDemo.xcodeproj
├── xcuserdata
├── tangxp.xcuserdatad
│ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── LoadNibViewDemo.xcscheme
└── Haven.xcuserdatad
│ └── xcschemes
│ ├── xcschememanagement.plist
│ └── LoadNibViewDemo.xcscheme
├── project.xcworkspace
├── contents.xcworkspacedata
└── xcuserdata
│ ├── Haven.xcuserdatad
│ └── UserInterfaceState.xcuserstate
│ └── tangxp.xcuserdatad
│ ├── UserInterfaceState.xcuserstate
│ └── WorkspaceSettings.xcsettings
└── project.pbxproj
/README.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/LoadNibViewDemoTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/LoadNibViewDemo.xcodeproj/xcuserdata/tangxp.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/LoadNibViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LoadNibViewDemo.xcodeproj/project.xcworkspace/xcuserdata/Haven.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ondev/LoadNibViewDemo/HEAD/LoadNibViewDemo.xcodeproj/project.xcworkspace/xcuserdata/Haven.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/LoadNibViewDemo.xcodeproj/project.xcworkspace/xcuserdata/tangxp.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ondev/LoadNibViewDemo/HEAD/LoadNibViewDemo.xcodeproj/project.xcworkspace/xcuserdata/tangxp.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/LoadNibViewDemo/Common/SubView.h:
--------------------------------------------------------------------------------
1 | //
2 | // SubView.h
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 10/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface SubView : UIView
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/NibLoadNib/EmbeddedView.h:
--------------------------------------------------------------------------------
1 | //
2 | // EmbeddedView.h
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 10/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import "SubView.h"
10 |
11 | @interface EmbeddedView : SubView
12 |
13 | - (IBAction)click:(id)sender;
14 | @end
15 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/LoadNib/View5/View5.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIView5.h
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface View5 : UIView
12 | @property (nonatomic, weak) IBOutlet UIButton *btn;
13 | - (IBAction)tab:(id)sender;
14 | @end
15 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/Common/UIView+Ext.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIView+Ext.h
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface UIView (Ext)
12 | + (id)loadFromNib;
13 | + (id)loadFromNibNamed:(NSString*) nibName;
14 | + (id)loadFromNibNoOwner;
15 | @end
16 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/Common/FileOwner.h:
--------------------------------------------------------------------------------
1 | //
2 | // FileOwner.h
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface FileOwner : NSObject
12 | @property (nonatomic, weak) IBOutlet UIView *view;
13 |
14 | +(id)viewFromNibNamed:(NSString*) nibName;
15 | @end
16 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "AppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/LoadNibViewDemo-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #import
8 |
9 | #ifndef __IPHONE_5_0
10 | #warning "This project uses features only available in iOS SDK 5.0 and later."
11 | #endif
12 |
13 | #ifdef __OBJC__
14 | #import
15 | #import
16 | #endif
17 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/Common/FileOwner.m:
--------------------------------------------------------------------------------
1 | //
2 | // FileOwner.m
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import "FileOwner.h"
10 |
11 | @implementation FileOwner
12 | +(id)viewFromNibNamed:(NSString*) nibName {
13 | FileOwner *owner = [self new];
14 | [[NSBundle mainBundle] loadNibNamed:nibName owner:owner options:nil];
15 | return owner.view;
16 | }
17 | @end
18 |
--------------------------------------------------------------------------------
/LoadNibViewDemo.xcodeproj/project.xcworkspace/xcuserdata/tangxp.xcuserdatad/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges
6 |
7 | SnapshotAutomaticallyBeforeSignificantChanges
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/LoadNib/View5/View5.m:
--------------------------------------------------------------------------------
1 | //
2 | // UIView5.m
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import "View5.h"
10 |
11 | @implementation View5
12 |
13 | - (id)initWithFrame:(CGRect)frame
14 | {
15 | self = [super initWithFrame:frame];
16 | if (self) {
17 | // Initialization code
18 | }
19 | return self;
20 | }
21 |
22 | /*
23 | // Only override drawRect: if you perform custom drawing.
24 | // An empty implementation adversely affects performance during animation.
25 | - (void)drawRect:(CGRect)rect
26 | {
27 | // Drawing code
28 | }
29 | */
30 |
31 | - (IBAction)tab:(id)sender {
32 | NSLog(@"Button tapped");
33 | }
34 | @end
35 |
--------------------------------------------------------------------------------
/LoadNibViewDemo.xcodeproj/xcuserdata/Haven.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | LoadNibViewDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 4B7AD8B118A4BFCB00AD23F1
16 |
17 | primary
18 |
19 |
20 | 4B7AD8D518A4BFCB00AD23F1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/LoadNibViewDemo.xcodeproj/xcuserdata/tangxp.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | LoadNibViewDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 4B7AD8B118A4BFCB00AD23F1
16 |
17 | primary
18 |
19 |
20 | 4B7AD8D518A4BFCB00AD23F1
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/LoadNibViewDemoTests/LoadNibViewDemoTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | com.lf.extobjc.${PRODUCT_NAME:rfc1034identifier}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | BNDL
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleSignature
18 | ????
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/LoadNibViewDemoTests/LoadNibViewDemoTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // LoadNibViewDemoTests.m
3 | // LoadNibViewDemoTests
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface LoadNibViewDemoTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation LoadNibViewDemoTests
16 |
17 | - (void)setUp
18 | {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown
24 | {
25 | // Put teardown code here. This method is called after the invocation of each test method in the class.
26 | [super tearDown];
27 | }
28 |
29 | - (void)testExample
30 | {
31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32 | }
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/NibLoadNib/EmbeddedView.m:
--------------------------------------------------------------------------------
1 | //
2 | // EmbeddedView.m
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 10/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import "EmbeddedView.h"
10 |
11 | @implementation EmbeddedView
12 |
13 | - (id)initWithFrame:(CGRect)frame
14 | {
15 | self = [super initWithFrame:frame];
16 | if (self) {
17 | // Initialization code
18 | }
19 | return self;
20 | }
21 |
22 | /*
23 | // Only override drawRect: if you perform custom drawing.
24 | // An empty implementation adversely affects performance during animation.
25 | - (void)drawRect:(CGRect)rect
26 | {
27 | // Drawing code
28 | }
29 | */
30 |
31 |
32 |
33 | - (IBAction)click:(id)sender {
34 | NSLog(@"Click");
35 | }
36 |
37 | - (void)dealloc {
38 | NSLog(@"Embedded View dealloc");
39 | }
40 | @end
41 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/Common/UIView+Ext.m:
--------------------------------------------------------------------------------
1 | //
2 | // UIView+Ext.m
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import "UIView+Ext.h"
10 | #import "FileOwner.h"
11 |
12 | @implementation UIView (Ext)
13 | +(id)loadFromNib {
14 | return [self loadFromNibNamed:NSStringFromClass(self)];
15 | }
16 |
17 | +(id)loadFromNibNamed:(NSString*) nibName {
18 | return [FileOwner viewFromNibNamed:nibName];
19 | }
20 |
21 | + (id)loadFromNibNoOwner {
22 | UIView *result = nil;
23 | NSArray* elements = [[NSBundle mainBundle] loadNibNamed: NSStringFromClass([self class]) owner: nil options: nil];
24 | for (id anObject in elements) {
25 | if ([anObject isKindOfClass:[self class]]) {
26 | result = anObject;
27 | break;
28 | }
29 | }
30 | return result;
31 | }
32 | @end
33 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "40x40",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "60x60",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "ipad",
20 | "size" : "29x29",
21 | "scale" : "1x"
22 | },
23 | {
24 | "idiom" : "ipad",
25 | "size" : "29x29",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "ipad",
30 | "size" : "40x40",
31 | "scale" : "1x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "40x40",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "76x76",
41 | "scale" : "1x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "76x76",
46 | "scale" : "2x"
47 | }
48 | ],
49 | "info" : {
50 | "version" : 1,
51 | "author" : "xcode"
52 | }
53 | }
--------------------------------------------------------------------------------
/LoadNibViewDemo/Images.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "extent" : "full-screen",
7 | "minimum-system-version" : "7.0",
8 | "scale" : "2x"
9 | },
10 | {
11 | "orientation" : "portrait",
12 | "idiom" : "iphone",
13 | "subtype" : "retina4",
14 | "extent" : "full-screen",
15 | "minimum-system-version" : "7.0",
16 | "scale" : "2x"
17 | },
18 | {
19 | "orientation" : "portrait",
20 | "idiom" : "ipad",
21 | "extent" : "full-screen",
22 | "minimum-system-version" : "7.0",
23 | "scale" : "1x"
24 | },
25 | {
26 | "orientation" : "landscape",
27 | "idiom" : "ipad",
28 | "extent" : "full-screen",
29 | "minimum-system-version" : "7.0",
30 | "scale" : "1x"
31 | },
32 | {
33 | "orientation" : "portrait",
34 | "idiom" : "ipad",
35 | "extent" : "full-screen",
36 | "minimum-system-version" : "7.0",
37 | "scale" : "2x"
38 | },
39 | {
40 | "orientation" : "landscape",
41 | "idiom" : "ipad",
42 | "extent" : "full-screen",
43 | "minimum-system-version" : "7.0",
44 | "scale" : "2x"
45 | }
46 | ],
47 | "info" : {
48 | "version" : 1,
49 | "author" : "xcode"
50 | }
51 | }
--------------------------------------------------------------------------------
/LoadNibViewDemo/Base.lproj/Main_iPad.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/LoadNibViewDemo-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | com.lf.xibdemo
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ${PRODUCT_NAME}
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1.0
25 | LSRequiresIPhoneOS
26 |
27 | UIMainStoryboardFile
28 | Main_iPhone
29 | UIMainStoryboardFile~ipad
30 | Main_iPad
31 | UIRequiredDeviceCapabilities
32 |
33 | armv7
34 |
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationLandscapeLeft
39 | UIInterfaceOrientationLandscapeRight
40 |
41 | UISupportedInterfaceOrientations~ipad
42 |
43 | UIInterfaceOrientationPortrait
44 | UIInterfaceOrientationPortraitUpsideDown
45 | UIInterfaceOrientationLandscapeLeft
46 | UIInterfaceOrientationLandscapeRight
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/LoadNib/View1/View1.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/LoadNib/View3/View3.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @implementation AppDelegate
12 |
13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14 | {
15 | // Override point for customization after application launch.
16 | return YES;
17 | }
18 |
19 | - (void)applicationWillResignActive:(UIApplication *)application
20 | {
21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
23 | }
24 |
25 | - (void)applicationDidEnterBackground:(UIApplication *)application
26 | {
27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
29 | }
30 |
31 | - (void)applicationWillEnterForeground:(UIApplication *)application
32 | {
33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | - (void)applicationDidBecomeActive:(UIApplication *)application
37 | {
38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application
42 | {
43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
44 | }
45 |
46 | @end
47 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/LoadNib/View4/View4.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/LoadNib/View6/View6.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 7/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "FileOwner.h"
11 | #import "UIView+Ext.h"
12 | #import "View5.h"
13 |
14 | @interface ViewController ()
15 | @property (nonatomic, weak) IBOutlet UIView *referencedView;
16 | @end
17 |
18 | @implementation ViewController
19 |
20 | - (void)viewDidLoad
21 | {
22 | [super viewDidLoad];
23 | // Do any additional setup after loading the view, typically from a nib.
24 |
25 | // 1
26 | NSArray *views = [[NSBundle mainBundle] loadNibNamed:@"View1" owner:nil options:nil];
27 | UIView *v = [views lastObject];
28 | CGRect r = v.frame;
29 | r.origin.y += 80;
30 | v.frame = r;
31 | [self.view addSubview:v];
32 |
33 | // 2
34 | [[NSBundle mainBundle] loadNibNamed:@"View2" owner:self options:nil];
35 | r = _referencedView.frame;
36 | r.origin.y = v.frame.size.height + v.frame.origin.y;
37 | _referencedView.frame = r;
38 | [self.view addSubview:_referencedView];
39 |
40 | // 3
41 | FileOwner *owner = [FileOwner new];
42 | [[NSBundle mainBundle] loadNibNamed:@"View3" owner:owner options:nil];
43 | r = owner.view.frame;
44 | r.origin.y = _referencedView.frame.origin.y + _referencedView.frame.size.height;
45 | owner.view.frame = r;
46 | [self.view addSubview:owner.view];
47 |
48 | // 4
49 | UIView *v4 = [UIView loadFromNibNamed:@"View4"];
50 | r = v4.frame;
51 | r.origin.y = owner.view.frame.origin.y + owner.view.frame.size.height;
52 | v4.frame = r;
53 | [self.view addSubview:v4];
54 |
55 | // 5
56 | View5 *v5 = [View5 loadFromNib];
57 | r = v5.frame;
58 | r.origin.y = v4.frame.origin.y + v4.frame.size.height;
59 | v5.frame = r;
60 | [self.view addSubview:v5];
61 |
62 | // 6
63 | UIView *v6 = [[UIViewController alloc] initWithNibName:@"View6" bundle:nil].view;
64 | r = v6.frame;
65 | r.origin.y = v5.frame.origin.y + v5.frame.size.height;
66 | v6.frame = r;
67 | [self.view addSubview:v6];
68 | }
69 |
70 | //xib 用法一, xib from xib 二
71 | - (IBAction)touchTest:(id)sender {
72 | NSLog(@"touchTest");
73 | }
74 |
75 | - (void)didReceiveMemoryWarning
76 | {
77 | [super didReceiveMemoryWarning];
78 | // Dispose of any resources that can be recreated.
79 | }
80 |
81 | @end
82 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/LoadNib/View2/View2.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/Common/SubView.m:
--------------------------------------------------------------------------------
1 | //
2 | // SubView.m
3 | // LoadNibViewDemo
4 | //
5 | // Created by Haven on 10/2/14.
6 | // Copyright (c) 2014 LF. All rights reserved.
7 | //
8 |
9 | #import "SubView.h"
10 | #include "UIView+Ext.h"
11 |
12 | @implementation SubView
13 |
14 | - (id)initWithFrame:(CGRect)frame
15 | {
16 | self = [super initWithFrame:frame];
17 | if (self) {
18 | // Initialization code
19 | }
20 | return self;
21 | }
22 |
23 |
24 | - (id) awakeAfterUsingCoder:(NSCoder*)aDecoder {
25 | BOOL theThingThatGotLoadedWasJustAPlaceholder = ([[self subviews] count] == 0);
26 | if (theThingThatGotLoadedWasJustAPlaceholder) {
27 | SubView* theRealThing = [[self class] loadFromNibNoOwner];
28 |
29 | // pass properties through
30 | [self copyUIPropertiesTo:theRealThing];
31 |
32 | //auto layout
33 | self.translatesAutoresizingMaskIntoConstraints = NO;
34 | theRealThing.translatesAutoresizingMaskIntoConstraints = NO;
35 |
36 | return theRealThing;
37 | }
38 | return self;
39 | }
40 |
41 | -(void) copyUIPropertiesTo:(UIView *)view
42 | {
43 | // reflection did not work to get those lists, so I hardcoded them
44 | // any suggestions are welcome here
45 |
46 | NSArray *properties =
47 | [NSArray arrayWithObjects: @"frame",@"bounds", @"center", @"transform", @"contentScaleFactor", @"multipleTouchEnabled", @"exclusiveTouch", @"autoresizesSubviews", @"autoresizingMask", @"clipsToBounds", @"backgroundColor", @"alpha", @"opaque", @"clearsContextBeforeDrawing", @"hidden", @"contentMode", @"contentStretch", nil];
48 |
49 | // some getters have 'is' prefix
50 | NSArray *getters =
51 | [NSArray arrayWithObjects: @"frame", @"bounds", @"center", @"transform", @"contentScaleFactor", @"isMultipleTouchEnabled", @"isExclusiveTouch", @"autoresizesSubviews", @"autoresizingMask", @"clipsToBounds", @"backgroundColor", @"alpha", @"isOpaque", @"clearsContextBeforeDrawing", @"isHidden", @"contentMode", @"contentStretch", nil];
52 |
53 | for (int i=0; i<[properties count]; i++)
54 | {
55 | NSString * propertyName = [properties objectAtIndex:i];
56 | NSString * getter = [getters objectAtIndex:i];
57 |
58 | SEL getPropertySelector = NSSelectorFromString(getter);
59 |
60 | NSString *setterSelectorName =
61 | [propertyName stringByReplacingCharactersInRange:NSMakeRange(0,1) withString:[[propertyName substringToIndex:1] capitalizedString]];
62 |
63 | setterSelectorName = [NSString stringWithFormat:@"set%@:", setterSelectorName];
64 |
65 | SEL setPropertySelector = NSSelectorFromString(setterSelectorName);
66 |
67 | if ([self respondsToSelector:getPropertySelector] && [view respondsToSelector:setPropertySelector])
68 | {
69 | NSObject * propertyValue = [self valueForKey:propertyName];
70 |
71 | [view setValue:propertyValue forKey:propertyName];
72 | }
73 | }
74 | }
75 |
76 | @end
77 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/LoadNib/View5/View5.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
24 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/NibLoadNib/EmbeddedView.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
19 |
25 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/LoadNibViewDemo.xcodeproj/xcuserdata/Haven.xcuserdatad/xcschemes/LoadNibViewDemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
61 |
62 |
68 |
69 |
70 |
71 |
72 |
73 |
79 |
80 |
86 |
87 |
88 |
89 |
91 |
92 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/LoadNibViewDemo.xcodeproj/xcuserdata/tangxp.xcuserdatad/xcschemes/LoadNibViewDemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
61 |
62 |
68 |
69 |
70 |
71 |
75 |
76 |
77 |
78 |
84 |
85 |
91 |
92 |
93 |
94 |
96 |
97 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/LoadNibViewDemo/Base.lproj/Main_iPhone.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/LoadNibViewDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 4B7AD8B618A4BFCB00AD23F1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B7AD8B518A4BFCB00AD23F1 /* Foundation.framework */; };
11 | 4B7AD8B818A4BFCB00AD23F1 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B7AD8B718A4BFCB00AD23F1 /* CoreGraphics.framework */; };
12 | 4B7AD8BA18A4BFCB00AD23F1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B7AD8B918A4BFCB00AD23F1 /* UIKit.framework */; };
13 | 4B7AD8C018A4BFCB00AD23F1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD8BE18A4BFCB00AD23F1 /* InfoPlist.strings */; };
14 | 4B7AD8C218A4BFCB00AD23F1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AD8C118A4BFCB00AD23F1 /* main.m */; };
15 | 4B7AD8C618A4BFCB00AD23F1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AD8C518A4BFCB00AD23F1 /* AppDelegate.m */; };
16 | 4B7AD8C918A4BFCB00AD23F1 /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD8C718A4BFCB00AD23F1 /* Main_iPhone.storyboard */; };
17 | 4B7AD8CC18A4BFCB00AD23F1 /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD8CA18A4BFCB00AD23F1 /* Main_iPad.storyboard */; };
18 | 4B7AD8CF18A4BFCB00AD23F1 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AD8CE18A4BFCB00AD23F1 /* ViewController.m */; };
19 | 4B7AD8D118A4BFCB00AD23F1 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD8D018A4BFCB00AD23F1 /* Images.xcassets */; };
20 | 4B7AD8D818A4BFCB00AD23F1 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B7AD8D718A4BFCB00AD23F1 /* XCTest.framework */; };
21 | 4B7AD8D918A4BFCB00AD23F1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B7AD8B518A4BFCB00AD23F1 /* Foundation.framework */; };
22 | 4B7AD8DA18A4BFCB00AD23F1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B7AD8B918A4BFCB00AD23F1 /* UIKit.framework */; };
23 | 4B7AD8E218A4BFCB00AD23F1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD8E018A4BFCB00AD23F1 /* InfoPlist.strings */; };
24 | 4B7AD8E418A4BFCB00AD23F1 /* LoadNibViewDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AD8E318A4BFCB00AD23F1 /* LoadNibViewDemoTests.m */; };
25 | 4B7AD90818A4C9D400AD23F1 /* FileOwner.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AD90718A4C9D400AD23F1 /* FileOwner.m */; };
26 | 4B7AD90C18A4CB8200AD23F1 /* UIView+Ext.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AD90B18A4CB8200AD23F1 /* UIView+Ext.m */; };
27 | 4B7AD92318A4D2AC00AD23F1 /* View1.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD91718A4D2AC00AD23F1 /* View1.xib */; };
28 | 4B7AD92418A4D2AC00AD23F1 /* View2.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD91918A4D2AC00AD23F1 /* View2.xib */; };
29 | 4B7AD92518A4D2AC00AD23F1 /* View3.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD91B18A4D2AC00AD23F1 /* View3.xib */; };
30 | 4B7AD92618A4D2AC00AD23F1 /* View4.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD91D18A4D2AC00AD23F1 /* View4.xib */; };
31 | 4B7AD92718A4D2AC00AD23F1 /* View5.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AD92018A4D2AC00AD23F1 /* View5.m */; };
32 | 4B7AD92818A4D2AC00AD23F1 /* View5.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD92118A4D2AC00AD23F1 /* View5.xib */; };
33 | 4B7AD92A18A87B1700AD23F1 /* EmbeddedView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD92918A87B1700AD23F1 /* EmbeddedView.xib */; };
34 | 4B7AD93018A8875F00AD23F1 /* SubView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AD92F18A8875F00AD23F1 /* SubView.m */; };
35 | 4B7AD93318A8877900AD23F1 /* EmbeddedView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B7AD93218A8877900AD23F1 /* EmbeddedView.m */; };
36 | 4B7AD93C18A8ACD500AD23F1 /* View6.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4B7AD93B18A8ACD500AD23F1 /* View6.xib */; };
37 | /* End PBXBuildFile section */
38 |
39 | /* Begin PBXContainerItemProxy section */
40 | 4B7AD8DB18A4BFCB00AD23F1 /* PBXContainerItemProxy */ = {
41 | isa = PBXContainerItemProxy;
42 | containerPortal = 4B7AD8AA18A4BFCB00AD23F1 /* Project object */;
43 | proxyType = 1;
44 | remoteGlobalIDString = 4B7AD8B118A4BFCB00AD23F1;
45 | remoteInfo = LoadNibViewDemo;
46 | };
47 | /* End PBXContainerItemProxy section */
48 |
49 | /* Begin PBXFileReference section */
50 | 4B7AD8B218A4BFCB00AD23F1 /* LoadNibViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LoadNibViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
51 | 4B7AD8B518A4BFCB00AD23F1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
52 | 4B7AD8B718A4BFCB00AD23F1 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
53 | 4B7AD8B918A4BFCB00AD23F1 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
54 | 4B7AD8BD18A4BFCB00AD23F1 /* LoadNibViewDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "LoadNibViewDemo-Info.plist"; sourceTree = ""; };
55 | 4B7AD8BF18A4BFCB00AD23F1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
56 | 4B7AD8C118A4BFCB00AD23F1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
57 | 4B7AD8C318A4BFCB00AD23F1 /* LoadNibViewDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LoadNibViewDemo-Prefix.pch"; sourceTree = ""; };
58 | 4B7AD8C418A4BFCB00AD23F1 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
59 | 4B7AD8C518A4BFCB00AD23F1 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
60 | 4B7AD8C818A4BFCB00AD23F1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = ""; };
61 | 4B7AD8CB18A4BFCB00AD23F1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = ""; };
62 | 4B7AD8CD18A4BFCB00AD23F1 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
63 | 4B7AD8CE18A4BFCB00AD23F1 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
64 | 4B7AD8D018A4BFCB00AD23F1 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
65 | 4B7AD8D618A4BFCB00AD23F1 /* LoadNibViewDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LoadNibViewDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
66 | 4B7AD8D718A4BFCB00AD23F1 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
67 | 4B7AD8DF18A4BFCB00AD23F1 /* LoadNibViewDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "LoadNibViewDemoTests-Info.plist"; sourceTree = ""; };
68 | 4B7AD8E118A4BFCB00AD23F1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
69 | 4B7AD8E318A4BFCB00AD23F1 /* LoadNibViewDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LoadNibViewDemoTests.m; sourceTree = ""; };
70 | 4B7AD90618A4C9D400AD23F1 /* FileOwner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileOwner.h; sourceTree = ""; };
71 | 4B7AD90718A4C9D400AD23F1 /* FileOwner.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FileOwner.m; sourceTree = ""; };
72 | 4B7AD90A18A4CB8200AD23F1 /* UIView+Ext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+Ext.h"; sourceTree = ""; };
73 | 4B7AD90B18A4CB8200AD23F1 /* UIView+Ext.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+Ext.m"; sourceTree = ""; };
74 | 4B7AD91718A4D2AC00AD23F1 /* View1.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = View1.xib; sourceTree = ""; };
75 | 4B7AD91918A4D2AC00AD23F1 /* View2.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = View2.xib; sourceTree = ""; };
76 | 4B7AD91B18A4D2AC00AD23F1 /* View3.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = View3.xib; sourceTree = ""; };
77 | 4B7AD91D18A4D2AC00AD23F1 /* View4.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = View4.xib; sourceTree = ""; };
78 | 4B7AD91F18A4D2AC00AD23F1 /* View5.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = View5.h; sourceTree = ""; };
79 | 4B7AD92018A4D2AC00AD23F1 /* View5.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = View5.m; sourceTree = ""; };
80 | 4B7AD92118A4D2AC00AD23F1 /* View5.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = View5.xib; sourceTree = ""; };
81 | 4B7AD92918A87B1700AD23F1 /* EmbeddedView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = EmbeddedView.xib; sourceTree = ""; };
82 | 4B7AD92E18A8875F00AD23F1 /* SubView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SubView.h; sourceTree = ""; };
83 | 4B7AD92F18A8875F00AD23F1 /* SubView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SubView.m; sourceTree = ""; };
84 | 4B7AD93118A8877900AD23F1 /* EmbeddedView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EmbeddedView.h; sourceTree = ""; };
85 | 4B7AD93218A8877900AD23F1 /* EmbeddedView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EmbeddedView.m; sourceTree = ""; };
86 | 4B7AD93B18A8ACD500AD23F1 /* View6.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = View6.xib; sourceTree = ""; };
87 | /* End PBXFileReference section */
88 |
89 | /* Begin PBXFrameworksBuildPhase section */
90 | 4B7AD8AF18A4BFCB00AD23F1 /* Frameworks */ = {
91 | isa = PBXFrameworksBuildPhase;
92 | buildActionMask = 2147483647;
93 | files = (
94 | 4B7AD8B818A4BFCB00AD23F1 /* CoreGraphics.framework in Frameworks */,
95 | 4B7AD8BA18A4BFCB00AD23F1 /* UIKit.framework in Frameworks */,
96 | 4B7AD8B618A4BFCB00AD23F1 /* Foundation.framework in Frameworks */,
97 | );
98 | runOnlyForDeploymentPostprocessing = 0;
99 | };
100 | 4B7AD8D318A4BFCB00AD23F1 /* Frameworks */ = {
101 | isa = PBXFrameworksBuildPhase;
102 | buildActionMask = 2147483647;
103 | files = (
104 | 4B7AD8D818A4BFCB00AD23F1 /* XCTest.framework in Frameworks */,
105 | 4B7AD8DA18A4BFCB00AD23F1 /* UIKit.framework in Frameworks */,
106 | 4B7AD8D918A4BFCB00AD23F1 /* Foundation.framework in Frameworks */,
107 | );
108 | runOnlyForDeploymentPostprocessing = 0;
109 | };
110 | /* End PBXFrameworksBuildPhase section */
111 |
112 | /* Begin PBXGroup section */
113 | 4B7AD8A918A4BFCB00AD23F1 = {
114 | isa = PBXGroup;
115 | children = (
116 | 4B7AD8BB18A4BFCB00AD23F1 /* LoadNibViewDemo */,
117 | 4B7AD8DD18A4BFCB00AD23F1 /* LoadNibViewDemoTests */,
118 | 4B7AD8B418A4BFCB00AD23F1 /* Frameworks */,
119 | 4B7AD8B318A4BFCB00AD23F1 /* Products */,
120 | );
121 | sourceTree = "";
122 | };
123 | 4B7AD8B318A4BFCB00AD23F1 /* Products */ = {
124 | isa = PBXGroup;
125 | children = (
126 | 4B7AD8B218A4BFCB00AD23F1 /* LoadNibViewDemo.app */,
127 | 4B7AD8D618A4BFCB00AD23F1 /* LoadNibViewDemoTests.xctest */,
128 | );
129 | name = Products;
130 | sourceTree = "";
131 | };
132 | 4B7AD8B418A4BFCB00AD23F1 /* Frameworks */ = {
133 | isa = PBXGroup;
134 | children = (
135 | 4B7AD8B518A4BFCB00AD23F1 /* Foundation.framework */,
136 | 4B7AD8B718A4BFCB00AD23F1 /* CoreGraphics.framework */,
137 | 4B7AD8B918A4BFCB00AD23F1 /* UIKit.framework */,
138 | 4B7AD8D718A4BFCB00AD23F1 /* XCTest.framework */,
139 | );
140 | name = Frameworks;
141 | sourceTree = "";
142 | };
143 | 4B7AD8BB18A4BFCB00AD23F1 /* LoadNibViewDemo */ = {
144 | isa = PBXGroup;
145 | children = (
146 | 4B7AD91518A4D2AC00AD23F1 /* LoadNib */,
147 | 4B7AD92218A4D2AC00AD23F1 /* NibLoadNib */,
148 | 4B7AD90518A4C9D400AD23F1 /* Common */,
149 | 4B7AD8C418A4BFCB00AD23F1 /* AppDelegate.h */,
150 | 4B7AD8C518A4BFCB00AD23F1 /* AppDelegate.m */,
151 | 4B7AD8C718A4BFCB00AD23F1 /* Main_iPhone.storyboard */,
152 | 4B7AD8CA18A4BFCB00AD23F1 /* Main_iPad.storyboard */,
153 | 4B7AD8CD18A4BFCB00AD23F1 /* ViewController.h */,
154 | 4B7AD8CE18A4BFCB00AD23F1 /* ViewController.m */,
155 | 4B7AD8D018A4BFCB00AD23F1 /* Images.xcassets */,
156 | 4B7AD8BC18A4BFCB00AD23F1 /* Supporting Files */,
157 | );
158 | path = LoadNibViewDemo;
159 | sourceTree = "";
160 | };
161 | 4B7AD8BC18A4BFCB00AD23F1 /* Supporting Files */ = {
162 | isa = PBXGroup;
163 | children = (
164 | 4B7AD8BD18A4BFCB00AD23F1 /* LoadNibViewDemo-Info.plist */,
165 | 4B7AD8BE18A4BFCB00AD23F1 /* InfoPlist.strings */,
166 | 4B7AD8C118A4BFCB00AD23F1 /* main.m */,
167 | 4B7AD8C318A4BFCB00AD23F1 /* LoadNibViewDemo-Prefix.pch */,
168 | );
169 | name = "Supporting Files";
170 | sourceTree = "";
171 | };
172 | 4B7AD8DD18A4BFCB00AD23F1 /* LoadNibViewDemoTests */ = {
173 | isa = PBXGroup;
174 | children = (
175 | 4B7AD8E318A4BFCB00AD23F1 /* LoadNibViewDemoTests.m */,
176 | 4B7AD8DE18A4BFCB00AD23F1 /* Supporting Files */,
177 | );
178 | path = LoadNibViewDemoTests;
179 | sourceTree = "";
180 | };
181 | 4B7AD8DE18A4BFCB00AD23F1 /* Supporting Files */ = {
182 | isa = PBXGroup;
183 | children = (
184 | 4B7AD8DF18A4BFCB00AD23F1 /* LoadNibViewDemoTests-Info.plist */,
185 | 4B7AD8E018A4BFCB00AD23F1 /* InfoPlist.strings */,
186 | );
187 | name = "Supporting Files";
188 | sourceTree = "";
189 | };
190 | 4B7AD90518A4C9D400AD23F1 /* Common */ = {
191 | isa = PBXGroup;
192 | children = (
193 | 4B7AD92E18A8875F00AD23F1 /* SubView.h */,
194 | 4B7AD92F18A8875F00AD23F1 /* SubView.m */,
195 | 4B7AD90618A4C9D400AD23F1 /* FileOwner.h */,
196 | 4B7AD90718A4C9D400AD23F1 /* FileOwner.m */,
197 | 4B7AD90A18A4CB8200AD23F1 /* UIView+Ext.h */,
198 | 4B7AD90B18A4CB8200AD23F1 /* UIView+Ext.m */,
199 | );
200 | path = Common;
201 | sourceTree = "";
202 | };
203 | 4B7AD91518A4D2AC00AD23F1 /* LoadNib */ = {
204 | isa = PBXGroup;
205 | children = (
206 | 4B7AD91618A4D2AC00AD23F1 /* View1 */,
207 | 4B7AD91818A4D2AC00AD23F1 /* View2 */,
208 | 4B7AD91A18A4D2AC00AD23F1 /* View3 */,
209 | 4B7AD91C18A4D2AC00AD23F1 /* View4 */,
210 | 4B7AD91E18A4D2AC00AD23F1 /* View5 */,
211 | 4B7AD93A18A8ACD500AD23F1 /* View6 */,
212 | );
213 | path = LoadNib;
214 | sourceTree = "";
215 | };
216 | 4B7AD91618A4D2AC00AD23F1 /* View1 */ = {
217 | isa = PBXGroup;
218 | children = (
219 | 4B7AD91718A4D2AC00AD23F1 /* View1.xib */,
220 | );
221 | path = View1;
222 | sourceTree = "";
223 | };
224 | 4B7AD91818A4D2AC00AD23F1 /* View2 */ = {
225 | isa = PBXGroup;
226 | children = (
227 | 4B7AD91918A4D2AC00AD23F1 /* View2.xib */,
228 | );
229 | path = View2;
230 | sourceTree = "";
231 | };
232 | 4B7AD91A18A4D2AC00AD23F1 /* View3 */ = {
233 | isa = PBXGroup;
234 | children = (
235 | 4B7AD91B18A4D2AC00AD23F1 /* View3.xib */,
236 | );
237 | path = View3;
238 | sourceTree = "";
239 | };
240 | 4B7AD91C18A4D2AC00AD23F1 /* View4 */ = {
241 | isa = PBXGroup;
242 | children = (
243 | 4B7AD91D18A4D2AC00AD23F1 /* View4.xib */,
244 | );
245 | path = View4;
246 | sourceTree = "";
247 | };
248 | 4B7AD91E18A4D2AC00AD23F1 /* View5 */ = {
249 | isa = PBXGroup;
250 | children = (
251 | 4B7AD91F18A4D2AC00AD23F1 /* View5.h */,
252 | 4B7AD92018A4D2AC00AD23F1 /* View5.m */,
253 | 4B7AD92118A4D2AC00AD23F1 /* View5.xib */,
254 | );
255 | path = View5;
256 | sourceTree = "";
257 | };
258 | 4B7AD92218A4D2AC00AD23F1 /* NibLoadNib */ = {
259 | isa = PBXGroup;
260 | children = (
261 | 4B7AD92918A87B1700AD23F1 /* EmbeddedView.xib */,
262 | 4B7AD93118A8877900AD23F1 /* EmbeddedView.h */,
263 | 4B7AD93218A8877900AD23F1 /* EmbeddedView.m */,
264 | );
265 | path = NibLoadNib;
266 | sourceTree = "";
267 | };
268 | 4B7AD93A18A8ACD500AD23F1 /* View6 */ = {
269 | isa = PBXGroup;
270 | children = (
271 | 4B7AD93B18A8ACD500AD23F1 /* View6.xib */,
272 | );
273 | path = View6;
274 | sourceTree = "";
275 | };
276 | /* End PBXGroup section */
277 |
278 | /* Begin PBXNativeTarget section */
279 | 4B7AD8B118A4BFCB00AD23F1 /* LoadNibViewDemo */ = {
280 | isa = PBXNativeTarget;
281 | buildConfigurationList = 4B7AD8E718A4BFCB00AD23F1 /* Build configuration list for PBXNativeTarget "LoadNibViewDemo" */;
282 | buildPhases = (
283 | 4B7AD8AE18A4BFCB00AD23F1 /* Sources */,
284 | 4B7AD8AF18A4BFCB00AD23F1 /* Frameworks */,
285 | 4B7AD8B018A4BFCB00AD23F1 /* Resources */,
286 | );
287 | buildRules = (
288 | );
289 | dependencies = (
290 | );
291 | name = LoadNibViewDemo;
292 | productName = LoadNibViewDemo;
293 | productReference = 4B7AD8B218A4BFCB00AD23F1 /* LoadNibViewDemo.app */;
294 | productType = "com.apple.product-type.application";
295 | };
296 | 4B7AD8D518A4BFCB00AD23F1 /* LoadNibViewDemoTests */ = {
297 | isa = PBXNativeTarget;
298 | buildConfigurationList = 4B7AD8EA18A4BFCB00AD23F1 /* Build configuration list for PBXNativeTarget "LoadNibViewDemoTests" */;
299 | buildPhases = (
300 | 4B7AD8D218A4BFCB00AD23F1 /* Sources */,
301 | 4B7AD8D318A4BFCB00AD23F1 /* Frameworks */,
302 | 4B7AD8D418A4BFCB00AD23F1 /* Resources */,
303 | );
304 | buildRules = (
305 | );
306 | dependencies = (
307 | 4B7AD8DC18A4BFCB00AD23F1 /* PBXTargetDependency */,
308 | );
309 | name = LoadNibViewDemoTests;
310 | productName = LoadNibViewDemoTests;
311 | productReference = 4B7AD8D618A4BFCB00AD23F1 /* LoadNibViewDemoTests.xctest */;
312 | productType = "com.apple.product-type.bundle.unit-test";
313 | };
314 | /* End PBXNativeTarget section */
315 |
316 | /* Begin PBXProject section */
317 | 4B7AD8AA18A4BFCB00AD23F1 /* Project object */ = {
318 | isa = PBXProject;
319 | attributes = {
320 | LastUpgradeCheck = 0500;
321 | ORGANIZATIONNAME = LF;
322 | TargetAttributes = {
323 | 4B7AD8D518A4BFCB00AD23F1 = {
324 | TestTargetID = 4B7AD8B118A4BFCB00AD23F1;
325 | };
326 | };
327 | };
328 | buildConfigurationList = 4B7AD8AD18A4BFCB00AD23F1 /* Build configuration list for PBXProject "LoadNibViewDemo" */;
329 | compatibilityVersion = "Xcode 3.2";
330 | developmentRegion = English;
331 | hasScannedForEncodings = 0;
332 | knownRegions = (
333 | en,
334 | Base,
335 | );
336 | mainGroup = 4B7AD8A918A4BFCB00AD23F1;
337 | productRefGroup = 4B7AD8B318A4BFCB00AD23F1 /* Products */;
338 | projectDirPath = "";
339 | projectRoot = "";
340 | targets = (
341 | 4B7AD8B118A4BFCB00AD23F1 /* LoadNibViewDemo */,
342 | 4B7AD8D518A4BFCB00AD23F1 /* LoadNibViewDemoTests */,
343 | );
344 | };
345 | /* End PBXProject section */
346 |
347 | /* Begin PBXResourcesBuildPhase section */
348 | 4B7AD8B018A4BFCB00AD23F1 /* Resources */ = {
349 | isa = PBXResourcesBuildPhase;
350 | buildActionMask = 2147483647;
351 | files = (
352 | 4B7AD92318A4D2AC00AD23F1 /* View1.xib in Resources */,
353 | 4B7AD92618A4D2AC00AD23F1 /* View4.xib in Resources */,
354 | 4B7AD92818A4D2AC00AD23F1 /* View5.xib in Resources */,
355 | 4B7AD92A18A87B1700AD23F1 /* EmbeddedView.xib in Resources */,
356 | 4B7AD8CC18A4BFCB00AD23F1 /* Main_iPad.storyboard in Resources */,
357 | 4B7AD8D118A4BFCB00AD23F1 /* Images.xcassets in Resources */,
358 | 4B7AD93C18A8ACD500AD23F1 /* View6.xib in Resources */,
359 | 4B7AD8C918A4BFCB00AD23F1 /* Main_iPhone.storyboard in Resources */,
360 | 4B7AD8C018A4BFCB00AD23F1 /* InfoPlist.strings in Resources */,
361 | 4B7AD92518A4D2AC00AD23F1 /* View3.xib in Resources */,
362 | 4B7AD92418A4D2AC00AD23F1 /* View2.xib in Resources */,
363 | );
364 | runOnlyForDeploymentPostprocessing = 0;
365 | };
366 | 4B7AD8D418A4BFCB00AD23F1 /* Resources */ = {
367 | isa = PBXResourcesBuildPhase;
368 | buildActionMask = 2147483647;
369 | files = (
370 | 4B7AD8E218A4BFCB00AD23F1 /* InfoPlist.strings in Resources */,
371 | );
372 | runOnlyForDeploymentPostprocessing = 0;
373 | };
374 | /* End PBXResourcesBuildPhase section */
375 |
376 | /* Begin PBXSourcesBuildPhase section */
377 | 4B7AD8AE18A4BFCB00AD23F1 /* Sources */ = {
378 | isa = PBXSourcesBuildPhase;
379 | buildActionMask = 2147483647;
380 | files = (
381 | 4B7AD92718A4D2AC00AD23F1 /* View5.m in Sources */,
382 | 4B7AD8CF18A4BFCB00AD23F1 /* ViewController.m in Sources */,
383 | 4B7AD90C18A4CB8200AD23F1 /* UIView+Ext.m in Sources */,
384 | 4B7AD90818A4C9D400AD23F1 /* FileOwner.m in Sources */,
385 | 4B7AD8C618A4BFCB00AD23F1 /* AppDelegate.m in Sources */,
386 | 4B7AD8C218A4BFCB00AD23F1 /* main.m in Sources */,
387 | 4B7AD93318A8877900AD23F1 /* EmbeddedView.m in Sources */,
388 | 4B7AD93018A8875F00AD23F1 /* SubView.m in Sources */,
389 | );
390 | runOnlyForDeploymentPostprocessing = 0;
391 | };
392 | 4B7AD8D218A4BFCB00AD23F1 /* Sources */ = {
393 | isa = PBXSourcesBuildPhase;
394 | buildActionMask = 2147483647;
395 | files = (
396 | 4B7AD8E418A4BFCB00AD23F1 /* LoadNibViewDemoTests.m in Sources */,
397 | );
398 | runOnlyForDeploymentPostprocessing = 0;
399 | };
400 | /* End PBXSourcesBuildPhase section */
401 |
402 | /* Begin PBXTargetDependency section */
403 | 4B7AD8DC18A4BFCB00AD23F1 /* PBXTargetDependency */ = {
404 | isa = PBXTargetDependency;
405 | target = 4B7AD8B118A4BFCB00AD23F1 /* LoadNibViewDemo */;
406 | targetProxy = 4B7AD8DB18A4BFCB00AD23F1 /* PBXContainerItemProxy */;
407 | };
408 | /* End PBXTargetDependency section */
409 |
410 | /* Begin PBXVariantGroup section */
411 | 4B7AD8BE18A4BFCB00AD23F1 /* InfoPlist.strings */ = {
412 | isa = PBXVariantGroup;
413 | children = (
414 | 4B7AD8BF18A4BFCB00AD23F1 /* en */,
415 | );
416 | name = InfoPlist.strings;
417 | sourceTree = "";
418 | };
419 | 4B7AD8C718A4BFCB00AD23F1 /* Main_iPhone.storyboard */ = {
420 | isa = PBXVariantGroup;
421 | children = (
422 | 4B7AD8C818A4BFCB00AD23F1 /* Base */,
423 | );
424 | name = Main_iPhone.storyboard;
425 | sourceTree = "";
426 | };
427 | 4B7AD8CA18A4BFCB00AD23F1 /* Main_iPad.storyboard */ = {
428 | isa = PBXVariantGroup;
429 | children = (
430 | 4B7AD8CB18A4BFCB00AD23F1 /* Base */,
431 | );
432 | name = Main_iPad.storyboard;
433 | sourceTree = "";
434 | };
435 | 4B7AD8E018A4BFCB00AD23F1 /* InfoPlist.strings */ = {
436 | isa = PBXVariantGroup;
437 | children = (
438 | 4B7AD8E118A4BFCB00AD23F1 /* en */,
439 | );
440 | name = InfoPlist.strings;
441 | sourceTree = "";
442 | };
443 | /* End PBXVariantGroup section */
444 |
445 | /* Begin XCBuildConfiguration section */
446 | 4B7AD8E518A4BFCB00AD23F1 /* Debug */ = {
447 | isa = XCBuildConfiguration;
448 | buildSettings = {
449 | ALWAYS_SEARCH_USER_PATHS = NO;
450 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
451 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
452 | CLANG_CXX_LIBRARY = "libc++";
453 | CLANG_ENABLE_MODULES = YES;
454 | CLANG_ENABLE_OBJC_ARC = YES;
455 | CLANG_WARN_BOOL_CONVERSION = YES;
456 | CLANG_WARN_CONSTANT_CONVERSION = YES;
457 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
458 | CLANG_WARN_EMPTY_BODY = YES;
459 | CLANG_WARN_ENUM_CONVERSION = YES;
460 | CLANG_WARN_INT_CONVERSION = YES;
461 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
462 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
463 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
464 | COPY_PHASE_STRIP = NO;
465 | GCC_C_LANGUAGE_STANDARD = gnu99;
466 | GCC_DYNAMIC_NO_PIC = NO;
467 | GCC_OPTIMIZATION_LEVEL = 0;
468 | GCC_PREPROCESSOR_DEFINITIONS = (
469 | "DEBUG=1",
470 | "$(inherited)",
471 | );
472 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
473 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
474 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
475 | GCC_WARN_UNDECLARED_SELECTOR = YES;
476 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
477 | GCC_WARN_UNUSED_FUNCTION = YES;
478 | GCC_WARN_UNUSED_VARIABLE = YES;
479 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
480 | ONLY_ACTIVE_ARCH = YES;
481 | SDKROOT = iphoneos;
482 | TARGETED_DEVICE_FAMILY = "1,2";
483 | };
484 | name = Debug;
485 | };
486 | 4B7AD8E618A4BFCB00AD23F1 /* Release */ = {
487 | isa = XCBuildConfiguration;
488 | buildSettings = {
489 | ALWAYS_SEARCH_USER_PATHS = NO;
490 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
491 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
492 | CLANG_CXX_LIBRARY = "libc++";
493 | CLANG_ENABLE_MODULES = YES;
494 | CLANG_ENABLE_OBJC_ARC = YES;
495 | CLANG_WARN_BOOL_CONVERSION = YES;
496 | CLANG_WARN_CONSTANT_CONVERSION = YES;
497 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
498 | CLANG_WARN_EMPTY_BODY = YES;
499 | CLANG_WARN_ENUM_CONVERSION = YES;
500 | CLANG_WARN_INT_CONVERSION = YES;
501 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
502 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
503 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
504 | COPY_PHASE_STRIP = YES;
505 | ENABLE_NS_ASSERTIONS = NO;
506 | GCC_C_LANGUAGE_STANDARD = gnu99;
507 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
508 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
509 | GCC_WARN_UNDECLARED_SELECTOR = YES;
510 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
511 | GCC_WARN_UNUSED_FUNCTION = YES;
512 | GCC_WARN_UNUSED_VARIABLE = YES;
513 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
514 | SDKROOT = iphoneos;
515 | TARGETED_DEVICE_FAMILY = "1,2";
516 | VALIDATE_PRODUCT = YES;
517 | };
518 | name = Release;
519 | };
520 | 4B7AD8E818A4BFCB00AD23F1 /* Debug */ = {
521 | isa = XCBuildConfiguration;
522 | buildSettings = {
523 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
524 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
525 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
526 | GCC_PREFIX_HEADER = "LoadNibViewDemo/LoadNibViewDemo-Prefix.pch";
527 | INFOPLIST_FILE = "LoadNibViewDemo/LoadNibViewDemo-Info.plist";
528 | PRODUCT_NAME = "$(TARGET_NAME)";
529 | WRAPPER_EXTENSION = app;
530 | };
531 | name = Debug;
532 | };
533 | 4B7AD8E918A4BFCB00AD23F1 /* Release */ = {
534 | isa = XCBuildConfiguration;
535 | buildSettings = {
536 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
537 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
538 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
539 | GCC_PREFIX_HEADER = "LoadNibViewDemo/LoadNibViewDemo-Prefix.pch";
540 | INFOPLIST_FILE = "LoadNibViewDemo/LoadNibViewDemo-Info.plist";
541 | PRODUCT_NAME = "$(TARGET_NAME)";
542 | WRAPPER_EXTENSION = app;
543 | };
544 | name = Release;
545 | };
546 | 4B7AD8EB18A4BFCB00AD23F1 /* Debug */ = {
547 | isa = XCBuildConfiguration;
548 | buildSettings = {
549 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
550 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/LoadNibViewDemo.app/LoadNibViewDemo";
551 | FRAMEWORK_SEARCH_PATHS = (
552 | "$(SDKROOT)/Developer/Library/Frameworks",
553 | "$(inherited)",
554 | "$(DEVELOPER_FRAMEWORKS_DIR)",
555 | );
556 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
557 | GCC_PREFIX_HEADER = "LoadNibViewDemo/LoadNibViewDemo-Prefix.pch";
558 | GCC_PREPROCESSOR_DEFINITIONS = (
559 | "DEBUG=1",
560 | "$(inherited)",
561 | );
562 | INFOPLIST_FILE = "LoadNibViewDemoTests/LoadNibViewDemoTests-Info.plist";
563 | PRODUCT_NAME = "$(TARGET_NAME)";
564 | TEST_HOST = "$(BUNDLE_LOADER)";
565 | WRAPPER_EXTENSION = xctest;
566 | };
567 | name = Debug;
568 | };
569 | 4B7AD8EC18A4BFCB00AD23F1 /* Release */ = {
570 | isa = XCBuildConfiguration;
571 | buildSettings = {
572 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
573 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/LoadNibViewDemo.app/LoadNibViewDemo";
574 | FRAMEWORK_SEARCH_PATHS = (
575 | "$(SDKROOT)/Developer/Library/Frameworks",
576 | "$(inherited)",
577 | "$(DEVELOPER_FRAMEWORKS_DIR)",
578 | );
579 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
580 | GCC_PREFIX_HEADER = "LoadNibViewDemo/LoadNibViewDemo-Prefix.pch";
581 | INFOPLIST_FILE = "LoadNibViewDemoTests/LoadNibViewDemoTests-Info.plist";
582 | PRODUCT_NAME = "$(TARGET_NAME)";
583 | TEST_HOST = "$(BUNDLE_LOADER)";
584 | WRAPPER_EXTENSION = xctest;
585 | };
586 | name = Release;
587 | };
588 | /* End XCBuildConfiguration section */
589 |
590 | /* Begin XCConfigurationList section */
591 | 4B7AD8AD18A4BFCB00AD23F1 /* Build configuration list for PBXProject "LoadNibViewDemo" */ = {
592 | isa = XCConfigurationList;
593 | buildConfigurations = (
594 | 4B7AD8E518A4BFCB00AD23F1 /* Debug */,
595 | 4B7AD8E618A4BFCB00AD23F1 /* Release */,
596 | );
597 | defaultConfigurationIsVisible = 0;
598 | defaultConfigurationName = Release;
599 | };
600 | 4B7AD8E718A4BFCB00AD23F1 /* Build configuration list for PBXNativeTarget "LoadNibViewDemo" */ = {
601 | isa = XCConfigurationList;
602 | buildConfigurations = (
603 | 4B7AD8E818A4BFCB00AD23F1 /* Debug */,
604 | 4B7AD8E918A4BFCB00AD23F1 /* Release */,
605 | );
606 | defaultConfigurationIsVisible = 0;
607 | defaultConfigurationName = Release;
608 | };
609 | 4B7AD8EA18A4BFCB00AD23F1 /* Build configuration list for PBXNativeTarget "LoadNibViewDemoTests" */ = {
610 | isa = XCConfigurationList;
611 | buildConfigurations = (
612 | 4B7AD8EB18A4BFCB00AD23F1 /* Debug */,
613 | 4B7AD8EC18A4BFCB00AD23F1 /* Release */,
614 | );
615 | defaultConfigurationIsVisible = 0;
616 | defaultConfigurationName = Release;
617 | };
618 | /* End XCConfigurationList section */
619 | };
620 | rootObject = 4B7AD8AA18A4BFCB00AD23F1 /* Project object */;
621 | }
622 |
--------------------------------------------------------------------------------