Skip to content

jun-hui/SmoothSwitchNavigationBar

Repository files navigation

SmoothSwitchNavigationBar

导航栏颜色平滑过渡

效果图:

image

使用方法:

1.无需多余代码

2.只需将 SmoothSwitchNavigationBar/SmoothSwitchNavigationBar/SmoothSwitchNavigationBar 文件夹导入到工程

3.在 viewWillAppear 里设置上颜色和透明度即可:

  • (void)viewWillAppear:(BOOL)animated {

    [super viewWillAppear:animated];

    [self.navigationController.navigationBar setBarTintColor:[UIColor redColor]];

    self.navBarBgAlpha = @"1.0";

}

About

导航栏颜色平滑过渡

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published