My First Rubymotion Application
Sep 15th, 2013
After struggling to figure out Rubymotion for a while. I found a great set of tutorials by Clay Allsopp.
With these examples, and the rest of the internet to help me. I was able to Frankenstein enough things together to create an application.
ParkWare is an application that you can use for remembering where you parked your car. With a supporting API the thing that makes this iPhone app stand out is the ability to share your car code with another person.
Now hopefully you don’t park your car on a highway. But if you do, ParkWare will remember where you parked it.
While the application works. I’m pretty sure that my code is a mess. Regardless, there are a couple of things I figured out and found helpful. Here are a couple of snippets
Button with an Image Background
1 2 3
I often used this for centering objects within my view window
Making a label wrap was tricky. But this seemed to do the trick.
1 2 3 4
Adding an image to the view
Another thing that made a lot more sense after I looked it up was Frames. When first playing with the numbers I thought they were (X1,Y1),(X2,Y2). When it turns out that a fame is actually [[Xpos,Ypos],[Width,Height]].
Every time I do something in RubyMotion I feel like I’m learning more. As time goes I hope to make more applications and make a better use of this excellent tool.
I haven’t released the application to the App Store yet, I still think I have some design changes to make. But as soon as I do it will be interesting to see if any bug reports come in. I am also going to start refactoring my code shortly after I release it.