FCAnimationNavigationController
。fcAnimationNavigationController.customViewControllers
这个数组。sideBarName
。fcAnimationNavigationController
。FCAnimationNavigationController
。fcAnimationNavigationController.customViewControllers
这个数组。sideBarName
。fcAnimationNavigationController
。以下是示例代码 以下为範例程式碼:
self.fcAnimationOneController = [[FCAnimationOneController alloc] init];
self.fcAnimationOneController.sideBarName = @"ControllerOne";
self.fcAnimationTwoController = [[FCAnimationTwoController alloc] init];
self.fcAnimationTwoController.sideBarName = @"ControllerTwo";
self.fcAnimationThreeController = [[FCAnimationThreeController alloc] init];
self.fcAnimationThreeController.sideBarName = @"ControllerThree";
self.fcAnimationNavigationController.customViewControllers = @[self.fcAnimationOneController, self.fcAnimationTwoController, self.fcAnimationThreeController];
您想要放入 customViewControllers 的 controller 必须继承 FCBaseController。
controller.view 已经设置了 FCAnimationBaseView。
如果您想设置自定义视图,请使用 [controller.view addSubView:your customized view]。
加入 controller 需要继承自 FCBaseController。
FCBaseController 的 view 已经设置为 FCAnimationBaseView。
如果要设置 controller 的 view 为您自己制作的 view,请使用 [controller.view addSubView:自製的View]。
自定义 FCAnimationBaseView
的背景颜色
- (void) setCustomSuperViewBackgroundColor:(UIColor*)customBackgroundColor;
自定义 sidebarcell 及 sidebar 的背景颜色
使用 FCCustomSideBarCellDelegate
FCCustomSideBarCellDelegate
- (FCNavigationViewCell*) fcCustomView:(UITableView*)customView fcCustomSideBarCellAtRow:(NSInteger)cellRow;
- (UIColor*) fcCustomViewColor;
自定义 FCAnimationBaseView
的背景颜色
- (void) setCustomSuperViewBackgroundColor:(UIColor*)customBackgroundColor;
自定义 Sidebarcell 及 Sidebar 的背景颜色
使用 FCCustomSideBarCellDelegate
FCCustomSideBarCellDelegate
- (FCNavigationViewCell*) fcCustomView:(UITableView*)customView fcCustomSideBarCellAtRow:(NSInteger)cellRow;
- (UIColor*) fcCustomViewColor;