Comments (5)
I'd suggest to replace viewController.view with this function:
- (UIScrollView *)scrollViewFromHierarchyOfViewController: (UIViewController *)controller
{
// Get selected scroll view.
UIScrollView *scrollView = (id)controller.view;
if (![scrollView isKindOfClass:[UIScrollView class]]) {
for (UIView *subview in [self selectedViewController].view.subviews) {
if ([subview isKindOfClass:[UIScrollView class]]) {
scrollView = (id)subview;
break;
}
}
}
return scrollView;
}
from axstretchableheadertabviewcontroller.
or even better by providing a view for each controller, so that for example UINavigationController can be embedded and therefore Instagram gallery picker effect can be achieved!
That would make the library even cooler!!
from axstretchableheadertabviewcontroller.
Thank you for your advice.
Now, I implemented AXStretchableSubViewControllerViewSource
protocol, from version 0.9.0.
You can represent which view is UIScrollView by this protocol.
Please check AXSub4ViewController.h
and AXSub4ViewController.m
in example.
from axstretchableheadertabviewcontroller.
works like a charm! Great work!
from axstretchableheadertabviewcontroller.
Thank you for your nice comment!
from axstretchableheadertabviewcontroller.
Related Issues (19)
- remove swipe in header view HOT 5
- It can't run on iOS6.Could you support iOS6?
- how to add refreshcontrol to sub views? HOT 1
- UICollectionViewController in subview
- Custom AXTabBar style - e.g. with segmented control, non blur etc HOT 3
- UIViewController with UIScrollView HOT 2
- Crash on landscape HOT 1
- Storyboard support? HOT 1
- Section header offset when using UITableViewStylePlain HOT 1
- Select the second sub view controller HOT 1
- AutoLayout error
- both click envent and move envent on the header all views
- Support for same as presentviewcontroller
- Could not load NIB in bundle AXStretchableHeaderTabViewController'' *** First throw call stack
- ld: framework not found Reveal HOT 3
- AXDummyViewController.h file not found when pod try HOT 2
- Make tab inactive
- Add `UIRefreshControl` to whole AXStretchableHeaderTabViewController
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axstretchableheadertabviewcontroller.