Comments (8)
Thank you for your response. You're right.
Also @rabzu Demo in Swift pull request #20 was very helpful.
extension BLKDelegateSplitter: UICollectionViewDelegate {
}
from blkflexibleheightbar.
I'm pretty new to Swift and iOS and I spent a lot of hours to come to the conclusion that the break was with this class. Modifying the BLKDelegateSplitter class to conform to the UITableViewDelegate protocol fixed it for me. I have the demo running now with a Swift based view controller.
from blkflexibleheightbar.
Yeah, I think all you have to do is extending BLKDelegateSplitter with the protocol you want to use. In your case UITableViewDelegate.
from blkflexibleheightbar.
@trevisthomas could you show your BLKDelegateSplitter conformation to the UITableViewDelegate?
from blkflexibleheightbar.
Just edit the BLKDelegateSplitter.h file. Replace the @implementation declaration at line 29 with:
@interface BLKDelegateSplitter : NSObject <NSObject, UITableViewDelegate>
from blkflexibleheightbar.
Hi rafalkitta,
I tried with your extension so I don't get the compiler error. But at run time, the BLKDelegateSplitter
does not forward the calls to any of its sub-delegates.
Have you modify anything else to make it work ? I use Swift 2.0
from blkflexibleheightbar.
It appeared I have to make a strong reference to the splitter because tableView.delegate
is weak. Why splitter was just deallocated by ARC...
Works perfectly now, great component !
from blkflexibleheightbar.
This is working fine in swift 4 also
add this extension to solve this issue this is work for me
extension BLKFlexibleHeightBarBehaviorDefiner :UITableViewDelegate{
}
from blkflexibleheightbar.
Related Issues (20)
- delegate HOT 3
- CollectionView Problem HOT 1
- Starting to scroll from the bar HOT 4
- support AutoLayout HOT 1
- ScrollView setContentOffset not working after setup BLKFlexibleHeightBar. HOT 1
- Fast swiping down cause flexibleHeader not take effect immediately
- Problems synchronising the bar with table view scrolling.
- does not work with swift ? HOT 3
- Broken indicator insets HOT 1
- problem with elasticMaximumHeightAtTop when I need a negative progress
- Something wrong with BLKFlexibleHeightBar when I put scrollView into it HOT 2
- Why use delegate rather than KVO contentOffset/contentSize?
- Usage inside NavigationViewController
- FacebookStyleBarBehaviorDefiner with pagination
- Carthage support
- issue with add subview my custom UIView can any one help me on this
- When I use BLKFlexibleHeightBar in a UIWebview, the webview can't display properly.
- Use library in tabbar?
- Bar overlaps with native status-bar on iPhone X
- How to change actual height (frame.height) of BLKFlexibleHeightBar?
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 blkflexibleheightbar.