Closed AnthonyMDev closed 10 years ago
Previous comment (now deleted) was intended for AutoLayoutCells
repo... please ignore.
The reason for this change was that, when being used with 'AutoLayoutCells' the constraint was being updated before the sizing cell could calculate the size of the other cells, causing undesired behaviors where all cells with the same identifier as the cell would either grow or none of them would grow and the text field would be cut off.
The problem I have with this commit is that it seems to not allow the ALAutoResizingTextView
to be used outside of a table view... see the demo... thoughts?
Please try the latest development commit c9bb847
, does this work?
Perhaps it would be good to have this included in the demo project (e.g. UITableViewController
subclass that has simple cells with ALAutoResizingTextView
in them?)
Can you add this, Anthony, as you seem to have it as an existing need and are most familiar with it?
Looking into this now
I broke some tests, but I'm fixing them now...
Your changes seem to work just fine for me in a table view @JRG-Developer. I don't see that it is not working when it's not in a tableview though.
One change I'm going to make. Apple documentation states that you should call [super updateConstraints]
at the end of your implementation.
Yeah, the changes that I've made work outside a table view (your changes only didn't per my testing).
Can you add a new UITableViewController
to verify this behavior works in future?
That is, add to the demo
Got it. I'll add that to the demo.
Great, after that's added, and I've fixed the tests, we'll get this out onto master
and pushed to trunk
.
:]
Demo project completed - #2
New pull request made
Cool, merged into development
.
FYI -- are you only supporting iOS 8.0+? You know that
self.tableView.rowHeight = UITableViewAutomaticDimension;
is only available from iOS 8.0+, right?
Perhaps since AutoLayoutTextViews
will support iOS 7.0+ for a while (maybe 6 more months or more), we should show the manual way of doing this...?
Hmm... there doesn't seem to be an easy/quick way of doing this... suppose that's why AutoLayoutCells
repo exists... :P
I'm leaving it alone for now...
Yes, I know that the demo project is only supporting iOS8. The only other way to do this would be to use AutoLayoutCells
.
On Nov 4, 2014, at 6:34 PM, Joshua Greene notifications@github.com wrote:
Hmm... there doesn't seem to be an easy/quick way of doing this... suppose that's why AutoLayoutCells repo exists... :P
I'm leaving it alone for now...
— Reply to this email directly or view it on GitHub https://github.com/JRG-Developer/AutoLayoutTextViews/issues/1#issuecomment-61751005.
I'm considering adding IBInspectable
to some properties... do you know if this is backwards compatible to iOS 7? I don't see why not, but I'm not finding a definitive answer so far...
Looks like it's adding new xml entries to the storyboard
... probably not backwards compatible to iOS 7.0- bummer! I'm omit it...
Please check out the latest development
demo project. I fixed a few things to allow setting placeholder
text on the cells.
However, this reveals a peculiar issue-- if you type a lot of text, then delete it, the placeholder
text is drawn squished... I'm not happy pushing it with this bug... I'm going to look into this and try to fix soon... check it out, if you find a fix, feel free to commit directly to development
(adding tests if needed).
Hmmm, odd. I’ll look at this when I get a chance and let you know if I find anything.
On Nov 4, 2014, at 7:00 PM, Joshua Greene notifications@github.com wrote:
Please check out the latest development demo project. I fixed a few things to allow setting placeholder text on the cells.
However, this reveals a peculiar issue-- if you type a lot of text, then delete it, the placeholder text is drawn squished... I'm not happy pushing it with this bug... I'm going to look into this and try to fix soon... check it out, if you find a fix, feel free to commit directly to development (adding tests if needed).
— Reply to this email directly or view it on GitHub https://github.com/JRG-Developer/AutoLayoutTextViews/issues/1#issuecomment-61752906.
Ok, I think I've fixed this. Please see the latest development
commit cc9610b
.
It looks like this is working in the demo project; can you make sure this works in your project, Anthony?
If it looks good to you, I'm good with pulling this into master
and pushing to CocoaPods trunk.
This works for me, so I think we are good to go with it. Thanks Josh!
Changes pulled into master
and pushed to trunk.
:]
I made a bug fix and created a version 1.1.1.
Podspec is updated, but I don't have privileges to push this to your trunk. Can this get pushed please?
Thanks