2 // HMCombileViewController.m
5 // Created by Hori,Masaki on 2015/11/20.
6 // Copyright (c) 2015年 Hori,Masaki. All rights reserved.
9 #import "HMCombileViewController.h"
11 #import "HMFleetViewController.h"
14 @interface HMCombileViewController ()
16 @property (nonatomic, strong) HMFleetViewController* fleet1;
17 @property (nonatomic, strong) HMFleetViewController* fleet2;
19 @property (nonatomic, weak) IBOutlet NSView *placeholder1;
20 @property (nonatomic, weak) IBOutlet NSView *placeholder2;
24 @implementation HMCombileViewController
28 self.fleet1 = [HMFleetViewController viewControlerWithViewType:miniVierticalType];
29 [self.fleet1.view setFrame:[self.placeholder1 frame]];
30 [self.fleet1.view setAutoresizingMask:[self.placeholder1 autoresizingMask]];
31 [[self.placeholder1 superview] replaceSubview:self.placeholder1 with:self.fleet1.view];
32 self.fleet1.fleetNumber = 1;
34 self.fleet2 = [HMFleetViewController viewControlerWithViewType:miniVierticalType];
35 [self.fleet2.view setFrame:[self.placeholder2 frame]];
36 [self.fleet2.view setAutoresizingMask:[self.placeholder2 autoresizingMask]];
37 [[self.placeholder2 superview] replaceSubview:self.placeholder2 with:self.fleet2.view];
38 self.fleet2.fleetNumber = 2;