marty-suzuki / reverseextension Goto Github PK
View Code? Open in Web Editor NEWA UITableView extension that enables cell insertion from the bottom of a table view.
License: MIT License
A UITableView extension that enables cell insertion from the bottom of a table view.
License: MIT License
After my last pull request the version number hasn't been updated and that's why pod update ReverseExtension
pulls the old version
Best regards,
Patrick
hi ,
can i use this lib for os x .
thank you
UMLOG: error: session_id=0A305CA2267A57BCE3328B677E10407C, context=An instance 0x7fab039b2400 of class UITableView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x61000023b420> (
<NSKeyValueObservance 0x61000045e690: Observer: 0x6100001de4b0, Key path: contentInset, Options: <New: YES, Old: YES, Prior: NO> Context: 0x0, Property: 0x608000440d80>
Can you help me with this problem?
On line 163 in ReverseExtension.swift
contentInsetObserver?.didChange = { [weak self] _ in
DispatchQueue.main.async {
self?.configureTableViewInsets()
}
}
Gives a compile error.
Changing it to:
contentInsetObserver?.didChange = { [weak self] (_, _) in
DispatchQueue.main.async {
self?.configureTableViewInsets()
}
}
Works.
When can we expect an update for swift 4.2? Do you need any help with this?
In Xcode 10/Swift 4.2/iOS 12 Simulator, both my app and the included sample app crash if there are tableviewcells on the table and you try to scroll beyond the top of the view.
The issue doesn't seem to appear in Xcode 9/Swift 4.1/iOS 11.
Hey,
Am I correct in assuming that swipe to delete won't work with this anymore since the tableView and the cells are rotated?
Thanks
Hi,
If I use method for custom section header view than header is not presented properly:
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
Can you provide me instructions what should I do to make this work, thank you.
In ReverseExtension.swift, in function rectForRow, indexPath is misspelled; therefore, using the incorrect variable may cause weird behavior:
public func rectForRow(at indexPath: IndexPath) -> CGRect {
let indexPaht = reversedIndexPath(with: indexPath)
return nonNilBase.rectForRow(at: indexPath)
}
indexPaht should be indexPath
The methods IndexPath parameter is not reversed. I assume that is not intended?
Is there a way to fix it instead of manually reverse the IndexPath?
Best regards,
Patrick
Is there any chance to update this library to support swift 5 ? I tried to compile it against swift 5 (after fixing a few renames), but it looks like it always gets the first item from the datasource (using similar setup from the sample project)
I tried something similar a while ago when implementing a messenger-functionality in our app. We came up with the same idea of reverting the tableview and then reverting the cells. So, the cell at the bottom contained a UITextField to enter the text to the other user. A problem we stumbled upon was the autocorrect-bubble:
In this example i just added a textfield to the cell to see what happens… if you type in something and autocorrect comes up with some better stuff, the bubble is reversed. We tried to walk through the view-hierarchy to rotate the bubble, but no solution was satisfying... do you have any idea how to take care of this?
Cant change content insets top and bottom when set my table view as delegate for re.
but left and right works fine
You are so beautiful a girl !
Love this!
The bug reported in 設計やライブラリのせいでPeekを実装できなかった話 - Qiita occurs also in this library.
IB segue | on peeking |
---|---|
I updated to 0.4.5 and found out a bug.
The screen(tableview) will always turn upside down then I pop a view controller.
This bug only appears on 0.4.5.
I am getting this error, after I hit Back in the navigation controller. My ChatViewController (which uses ReverseExtension) is succesfully deiniting as you can see from the logs below, also another observer that I use (ContextWatcher) is deiniting as well.
I put a break point in deinit and the below error occures before the break point. Any ideas?
[00070]:ChatViewController.swift :deinit........................ :10:26:52 -------------------------
[00071]:ChatViewController.swift :deinit........................ :10:26:52 | ViewController deinit |
[00072]:ChatViewController.swift :deinit........................ :10:26:52 -------------------------
[00075]:CDContextWatcher.swift :deinit........................ :10:26:52 DEINIT ContextWatcher
2017-04-02 10:26:52.602283 LetsGoApp[401:153893] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x1031e0a00 of class UITableView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x1708390e0> (
<NSKeyValueObservance 0x170a5b780: Observer: 0x1701cb8b0, Key path: contentInset, Options: <New: YES, Old: YES, Prior: NO> Context: 0x0, Property: 0x17084d200>
)'
I tried use it by using cocoa framework in Objective C.
But I can't access "re" property.
Can you make Objective C sample demo project?
Thank you!
Do reverseExtension support for tvOS? if not, in near future?
The reversedIndexPath
method returns the wrong IndexPath when using sections. The unexpected behaviour emerges when calling methods like `scrollToRow(at: IndexPath, _, _) from the ViewController.
I use reverse tableview in my chat view . Although somewhere else I use a UITableViewController. When I enter UITableViewController and push to another view an then pop back. The TableViewController has been reversed. Is there anyway to disable the effect?
Hi,
is there a reason that the two methods deselectRow
and dequeueReusableCell
have an internal
protection level? Shouldn't they be public
?
Best regards,
Patrick
I have implemented this into my project and everything works great except the scroll bar is showing on the left side instead of the right side. Is there a way to make it show on the right side?
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.