116 } |
116 } |
117 |
117 |
118 -(void) viewDidAppear:(BOOL)animated { |
118 -(void) viewDidAppear:(BOOL)animated { |
119 [self.splitViewRootController.detailViewController viewDidAppear:animated]; |
119 [self.splitViewRootController.detailViewController viewDidAppear:animated]; |
120 [self.baseController viewDidAppear:animated]; |
120 [self.baseController viewDidAppear:animated]; |
121 [super viewDidLoad]; |
121 [super viewDidAppear:animated]; |
122 } |
122 } |
123 |
123 |
124 -(void) viewDidDisappear:(BOOL)animated { |
124 -(void) viewDidDisappear:(BOOL)animated { |
125 [self.splitViewRootController.detailViewController viewDidDisappear:animated]; |
125 [self.splitViewRootController.detailViewController viewDidDisappear:animated]; |
126 [self.baseController viewDidDisappear:animated]; |
126 [self.baseController viewDidDisappear:animated]; |
127 [super viewDidUnload]; |
127 [super viewDidDisappear:animated]; |
|
128 } |
|
129 |
|
130 -(void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { |
|
131 [self.splitViewRootController willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration]; |
|
132 [self.baseController willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration]; |
128 } |
133 } |
129 |
134 |
130 -(void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { |
135 -(void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { |
131 if (IS_IPAD() == NO) |
136 [self.splitViewRootController willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration]; |
132 return; |
137 [self.baseController willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration]; |
|
138 } |
133 |
139 |
134 CGRect screenRect = [[UIScreen mainScreen] safeBounds]; |
140 -(void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { |
135 self.splitViewRootController.masterViewController.view.frame = CGRectMake(0, 0, 320, screenRect.size.height); |
141 [self.splitViewRootController didRotateFromInterfaceOrientation:fromInterfaceOrientation]; |
|
142 [self.baseController didRotateFromInterfaceOrientation:fromInterfaceOrientation]; |
136 } |
143 } |
137 |
144 |
138 @end |
145 @end |