Giter Site home page Giter Site logo

axstretchableheadertabviewcontroller's Introduction

AXStretchableHeaderTabViewController

Version License Platform

Stretchable header view + Horizontal swipable tab view

Usage

To run the example project; clone the repo, and run pod install from the Example directory first.

Screenshots

Stretchable Header

Stretchable Header

Swipable tabs

Swipable tabs

Installation

AXStretchableHeaderTabViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AXStretchableHeaderTabViewController"

Author

Hiroki Akiyama, [email protected]

License

MIT license. See the LICENSE file for more info.

axstretchableheadertabviewcontroller's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

axstretchableheadertabviewcontroller's Issues

how to add refreshcontrol to sub views?

hi,
i want to use 'AXStretchableHeaderTabViewController' to my project, it's very cool..
and my sub table views need to add refreshcontrol.
user can dropdown to update table rows.
but it seems display wrong position for refresh image.

how i can to do these ? or pls give me some advice .
thank you very much~~

Storyboard support?

Hi,

How can I use this with a Storyboard?

By the way thanks for great work!

UICollectionViewController in subview

With an UICollectionViewController in subview the scroll not work, it's not the same UITableViewController's behavior , do you have an idea ?
Thx a lot

AutoLayout error

Hi, when running the sample, I get this error due to layout constraints

Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
 (
"<NSLayoutConstraint:0x166ac530 V:[UILabel:0x166d6de0(21)]>",
"<NSLayoutConstraint:0x166a5cf0 V:[UIButton:0x166a7db0(30)]>",
"<NSLayoutConstraint:0x166bdf50 V:|-(8)-[UILabel:0x166d6de0]   (Names: '|':AXSampleSwipableHeaderView:0x166d0d30 )>",
"<NSLayoutConstraint:0x166d4220 V:[UILabel:0x166d6de0]-(8)-[UIImageView:0x166c1c50]>",
"<NSLayoutConstraint:0x166bfb00 V:[UIButton:0x166a7db0]-(8)-|   (Names: '|':AXSampleSwipableHeaderView:0x166d0d30 )>",
"<NSLayoutConstraint:0x166abee0 V:[UIImageView:0x166c1c50]-(8)-[UIButton:0x166a7db0]>",
"<NSAutoresizingMaskLayoutConstraint:0x16558800 h=-&- v=-&- AXSampleSwipableHeaderView:0x166d0d30.height == UIView:0x166d5360.height - 388.5>",
"<NSAutoresizingMaskLayoutConstraint:0x16569b60 h=--& v=--& V:[UIView:0x166d5360(455)]>"

)

 Will attempt to recover by breaking constraint 
 <NSLayoutConstraint:0x166a5cf0 V:[UIButton:0x166a7db0(30)]>

Does anybody get the same error? Any idea where it comes from?

AXDummyViewController.h file not found when pod try

/tmp/CocoaPods/Try/AXStretchableHeaderTabViewController/Example/StretchableHeaderTabViewExample/AXSampleListViewController.m:7:9: 'AXStretchableHeaderTabViewController/AXDummyViewController.h' file not found

Custom AXTabBar style - e.g. with segmented control, non blur etc

Not an issue, just an idea:)

How about to make also AXTabBar customizable? Or replaceable with a custom tabBar that conforms to the AXTabBarDelegate protocol or just a AXTabBar subclass. I can think of many styles, for example:

  • Segmented control (probably most native example)
  • Image buttons
  • Non-blurred tabs of certain color (black, white, blue, whatever)
  • Tabs with special indicator (arrow, dot or something else)
  • Just pageControl (no buttons)

That would be actually very easy, possibly easier than through AXTabBarStyle. Or at least more flexible.

And I believe many developers will come with more ideas. So I wonder if you could alter the interface, so it will support such custom bars.

Have a great day!

ld: framework not found Reveal

I'm trying to run the sample project but I get this error

ld: framework not found Reveal
clang: error: linker command failed with exit code 1 (use -v to see invocation)

UIViewController with UIScrollView

For a subview controller, I've added a UIScrollView to an plain UIViewController that conforms to the 'AXStretchableSubViewControllerViewSource' protocol.

Within the stretchableSubViewInSubViewController:subViewController method, the reference to the UIScrollView is returned.

However, the 'stretch' and 'move' effect of the header view is not triggered - what am I missing?

Nice and great control, anyway! ;-)

Make tab inactive

Hi. I'm using your lib in my project and there is one feature we couldn't make in time. So we wanna make it inactive. I didn't find anything about it. Thanks

UITableViewController only

Is there a way how to use also UIViewController with embedded UITableView or UIScrollView the same way as UITableViewController?
The header responds only to this class so far..

Section header offset when using UITableViewStylePlain

I've changed the table view style to UITableViewStylePlain within AXSub2TableViewController to get fixed section headers when scrolling the table view, but the section headers didn't correspond to the stretched offset of the table header view.

Screenshot appended - see the section header between "(0,0)" and "(0,2)" ..
screen shot 2014-09-13 at 17 19 22

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.