Scene Kit is coming to the Dispatch
There is very little documentation out there on Scene Kit, so we’ve had to figure it all out. Our pain is your gain, as I will be creating some basic gems in RubyMotion and creating some example apps.
It’s really fun stuff, stay tuned.
If you missed the last issue, you can find it here: issue #38.
Happy coding, Todd Werth (@twerth)
Articles, News, New Gems, and Blog Posts
August 4th, 2014 | screencast | by Jack Watson-Hamblin
“MotionInMotion – Episode 36 – Test Driven Development and Creating a Gem”
August 2nd, 2014 | blog post | by Jack Watson-Hamblin
“Gaining Control of RubyMotion with UIViewControllers”
RubyMotion App of the Week
Gems used in the app:
Pods used in the app:
ProMotion Tip by Mark Rickert
ProMotion is all shiny and new! There aren’t a lot of added features in 2.0.0 but you’ll find it builds 55% faster and is 20%+ lighter!
One new feature I was able to sneak past Jamon is the new ‘longpressable’ TableScreen module. You’ve always been able to fire an action for a particular table cell whenever it was tapped, but I needed a way to tap and hold to fire a different action based on that gesture. This 25-line module does just that.
longpressable to the top of your PM::TableScreen subclass (where you’d put searchable or indexable) and in your cell hashes add
Internally, it adds a
UILongPressGestureRecognizer to the table view and when the action is triggered, it figures out what cell your finger is on and runs the
long_press_action associated with the cell!
Make sure to check out the migration guide since some other things have changed in the way TableScreen cells are passing data back and forth.
Bonus tip: longpressable defaults to 1 second, but you can modify that like this:
longpressable min_duration: 2.5
My company InfiniteRed sponsors this newsletter by allowing me the time to work on it every week and hosting everything.
Contact us if you ever need help working on a project, mentoring, or other development services . We specialize in RubyMotion and have an awesome team.
To error is human, to force you to care about the error is Java
If you have any tips, blog posts, or comments, please send emails to email@example.com