#Change Log All notable changes to this project will be documented in this file.
1.2.4 (08/10/2016)
Released on Wednesday, August 10, 2016.
- Optimize appearance callbacks, fix unbalance error when call
reloadData
、reloadDataToPage:
andswitchToPage:animated:
inviewWillAppear:
method; - Delete
VTLayoutStyleCustom
, you can set the width ofmenuItem
byitemWidth
directly, it does not work when the value oflayoutStyle
isVTLayoutStyleDivide
; - Add
magicView:itemWidthAtIndex:
andmagicView:sliderWidthAtIndex:
delegate methods, you can custom the width ofmenuItem
orsliderView
atitemIndex
; - Deprecate property
needExtendBottom
, if you want realize translucent effect, you should set valueUIRectEdgeAll
toedgesForExtendedLayout
; - Update the frame of page view before appearance callbacks be called;
- Fix menu bar cannot auto scroll in some special conditions;
- Improved the demo project, to show how to cache and read the page data;
- Auto hide
sliderView
when menu titles are empty; - Rename internal files;
- Other optimization;
1.2.3 (07/06/2016)
Released on Wednesday, July 6, 2016.
- Add preloading switch, you can control preloading logic by modifying property
needPreloading
. - You can custom
sliderView
andseparatorView
if you need. - You can clear memory cache by method
clearMemoryCache
. - Add new method
pageIndexForViewController:
, you can get thepageIndex
of any page controller by this method, and also you can get thepageIndex
of current page controller by category methodvtm_pageIndex
conveniently. - Method
updateMenuTitles
was renamedreloadMenuTitles
, and propertyneedExtendedBottom
was renamedneedExtendBottom
. - Fix bug: unable to accurately focus on menu item when switch by
handlePanGesture:
.
1.2.2 (06/29/2016)
Released on Wednesday, June 29, 2016.
- Add new method
reloadDataToPage:
, support reload data and switch to specified page at the same time. - Optimize appearance logic, fix bug that multiple calls appearance methods(
viewWillAppear:
,etc), optimize multiple nesting. - Modify protocol
VTMagicViewDelegate
, methodviewDidAppeare:
was renamedviewDidAppear:
, and methodviewDidDisappeare:
was renamedviewDidDisappear:
.
1.2.1 (06/19/2016)
Released on Sunday, June 19, 2016.
- Add property
itemScale
, if you change it, menuItem will have zoom effect when switching. - Optimize menu bar.
1.2.0 (06/13/2016)
Released on Monday, June 13, 2016.
- Add property
sliderExtension
. - Optimize layout.
1.1.0 (06/04/2016)
Released on Sunday, June 4, 2016.
- Add property
sliderStyle
,you can show a bubble in menu bar by settingsliderStyle
toVTSliderStyleBubble
. - Add Center in demo project.
1.0.2 (06/02/2016)
Released on Thursday, June 2, 2016.
- Add new layout style
VTLayoutStyleCenter
. - Improved the demo project, add modules Center、Divide and Data.
1.0.1 (06/01/2016)
Released on Wednesday, June 1, 2016.
- Adjust the file directory.
1.0.0 (05/31/2016)
The initial version is released on Tuesday, May 31, 2016.
- You can custom every page controller by different identifier if you need, each one is independent.
- VTMagic will automatically calls the appearance methods when user switches the page, it is convenient for you to manage the data, or do some other things.
- Menu bar supports multiple layout style, you can change it by
layoutStyle
. - You can also custom
menuItem
if you need, it can display text and image. - You can get the nearest magicController in any child view controller which is conforms to
<VTMagicProtocol>
, after you import fileVTMagic.h
. - You can embed webview in any page, if the page can't scroll, you should call method handlePanGesture: to fix it(please refer to Data module).
- The page is reusable and support auto rotate.
- For more information please read file
VTMagicView.h
.