akiroom / axstretchableheadertabviewcontroller Goto Github PK
View Code? Open in Web Editor NEWStretchable header view + Horizontal swipable tab view
License: MIT License
Stretchable header view + Horizontal swipable tab view
License: MIT License
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)" ..
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)
It can't run on iOS6.Could you support iOS6?
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..
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
/tmp/CocoaPods/Try/AXStretchableHeaderTabViewController/Example/StretchableHeaderTabViewExample/AXSampleListViewController.m:7:9: 'AXStretchableHeaderTabViewController/AXDummyViewController.h' file not found
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
I got this when moving to landscape:
*** Assertion failure in -[UIView layoutSublayersOfLayer:], /SourceCache/UIKit/UIKit-2935.138/UIView.m:8803
the only thing that I've found so far:
http://stackoverflow.com/questions/24273202/dynamically-sized-uitableview-in-uiscrollview-with-auto-layout
kinda brutal solution. I didn't go deeper yet.
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?
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~~
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:
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!
Hi. I use AXStretchableHeaderTabViewController
in my project as a profile page. How can I add 'pull to refresh' option to reload profile and refresh the view? Thanks
It's possible to not consider the swipe in headerview zone ?
What's the recommended way to make the second sub view controller selected after the AXStretchableHeaderTabViewController has loaded?
Hi,
How can I use this with a Storyboard?
By the way thanks for great work!
How about support for presenting the view instead of adding it on window , is it possible with current implementation ?
please check this irritating issue. i am using this in swift with cocoa pods
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! ;-)
when i remove the mothod - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event; in the AXStretchableHeaderView.
how can you implement both click envent and move envent on the header. thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.