FCSideBar 1.0.0

FCSideBar 1.0.0

测试已测试
语言语言 Obj-CObjective C
许可 Apache 2
发布最后发布2015年9月

FrancisHu770410 维护。



FCSideBar 1.0.0

  • FrancisHu770410

简介 介紹

demo gif

如何使用 使用

  1. 创建 FCAnimationNavigationController
  2. 将要加入的控制器放入 fcAnimationNavigationController.customViewControllers 这个数组。
  3. 设置每个控制器的 sideBarName
  4. 呈现到 fcAnimationNavigationController
  5. sidebar 上将出现 sideBarName 列表,选择名称将切换到相应的控制器。
  1. 创建 FCAnimationNavigationController
  2. 将想要加入的 controller 放入 fcAnimationNavigationController.customViewControllers 这个数组。
  3. 设置每个 controller 的 sideBarName
  4. 将 controller 呈现到 fcAnimationNavigationController
  5. sidebar 上的列表将显示相应的名称,点击相应的名称即可切换到相应的 controller。

以下是示例代码 以下为範例程式碼:

    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;