News for hackers. Stuff that matters.

dzenbot

Re:SlackTextViewController: A new growing text input for iOS on Wednesday September 24, 2014 @08:26PM (#8364906)
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?
Re:SlackTextViewController: A new growing text input for iOS on Wednesday September 24, 2014 @07:43PM (#8364769)
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 ;)
Re:SlackTextViewController: A new growing text input for iOS on Wednesday September 24, 2014 @06:15PM (#8364482)
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.
Re:SlackTextViewController: A new growing text input for iOS on Wednesday September 24, 2014 @05:01PM (#8364117)
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.
Re:SlackTextViewController: A new growing text input for iOS on Wednesday September 24, 2014 @04:52PM (#8364068)
thanks a lot @aaronbrethorst!
Re:SlackTextViewController: A new growing text input for iOS on Wednesday September 24, 2014 @04:09PM (#8363817)
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 :)
Re:SlackTextViewController: A new growing text input for iOS on Wednesday September 24, 2014 @03:59PM (#8363758)
Atomic commits yo! But yes, it was built with much love and attention to details.
Re:IMWebView. PhantomJS for Objective-C on Wednesday January 29, 2014 @10:13AM (#7144240)
Great library for scrapping UIWebView content! Thanks for sharing @ianmurrays