dzenbot
|
11 years ago
|
on: SlackTextViewController: A new growing text input for iOS
We do the same thing, custom views, mostly drawn in -drawRect:, reused in different cells. It's actually a very nice technique but like you said, the are some sacrifices to take. Still, these cells depend of a tableViewcCell which has unique properties and special APIs that collectionViewCells don't.
I think the most trikcy part here is to be able to build a custom UICollectionViewLayout allowing to display cells from the bottom. Haven't found any third-party doing it well enough yet. Do you know of any?
dzenbot
|
11 years ago
|
on: SlackTextViewController: A new growing text input for iOS
Most definitely! UICollectionViewLayout should be the right answer, but the thing is: the Slack iOS app was already built using UITableView, drawing many many custom cells.
We'll probably port someday to UICollectionView ;)
dzenbot
|
11 years ago
|
on: SlackTextViewController: A new growing text input for iOS
By subclassing SlackTextViewController, you'll get a tableView or collectionView, and a toolbar at the bottom containing the growing text input. That's basically it.
You may decide later to override some methods for disabling or enabling more features.
dzenbot
|
11 years ago
|
on: SlackTextViewController: A new growing text input for iOS
Try this out and let us know what you think. It's been designed in a way where you shouldn't care about the growing text input and trivial features related to it, but to build your tableView/collectionView cells and content.
dzenbot
|
11 years ago
|
on: SlackTextViewController: A new growing text input for iOS
thanks a lot @aaronbrethorst!
dzenbot
|
11 years ago
|
on: SlackTextViewController: A new growing text input for iOS
I believe that atomic commits makes things easier later, if you need to roll back, stash, or branch out. It's just hard to keep the habit going and not become lazy :)
dzenbot
|
11 years ago
|
on: SlackTextViewController: A new growing text input for iOS
Atomic commits yo! But yes, it was built with much love and attention to details.
dzenbot
|
12 years ago
|
on: IMWebView. PhantomJS for Objective-C
Great library for scrapping UIWebView content! Thanks for sharing @ianmurrays