Coder Social home page Coder Social logo

zhangzhongshu / ztpagecontroller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wuzhentao/ztpagecontroller

0.0 2.0 0.0 8.6 MB

模仿网易新闻和其他新闻样式做的一个菜单栏,栏中有各自的控制器。

License: Apache License 2.0

Objective-C 100.00%

ztpagecontroller's Introduction

ZTPageController

模仿网易新闻和其他新闻样式做的一个菜单栏,栏中有各自的控制器。 ##Demo展示 其中有4中展示样式’网易style' ’搜狐style' ’腾讯style1' ’网易style2'
Demo:


实现:
如果使用这个框架,你只需要这两个方法即可: (其中vcclass是控制器的类,Title是控制器的标题,以数组的形式展示)

ZTViewController *vca =[[ZTViewControllealloc]initWithMneuViewStyle:MenuViewStyleDefault];
[vca loadVC:vcclass AndTitle:titles];

使用:
只需导入文件夹中的ZTPage的文件,即可使用。

##关于颜色和字体大小的设置 只需修改头文件中的宏(ZTPage.h),如下图:

##还有一个内存管理的问题 这个属性是使当前缓存中储存最大子控制器的数量,这个是仿照网易实现的

vca.countLimit = 5;


##结尾: * 如果发现bug和什么任何问题,请与我联系。 * 有好的意见或建议,可以联系我。

ztpagecontroller's People

Contributors

wuzhentao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.