Questions tagged [rubymotion]

RubyMotion is a commercial system for building native iOS and Android apps using Ruby.

RubyMotion is a commercial system that allows writing cross-platform apps for iOS, Android and OS X in Ruby. For iOS, RubyMotion compiles Ruby source code to machine code and implements the Ruby object model using the Objective-C runtime.

Links

Related tags

681 questions
0
votes
3 answers

Ruby - get key and value from array of hashes easily

Have an array of single pair hashes, like this: arguments = [{:name=>"ABCD"},{:title=>"Awesome"},{:number=>4}] I need to loop through and pull each one off as a key and value. Right now, I'm doing this: def methodname(*arguments, &block) …
Jamon Holmgren
  • 23,738
  • 6
  • 59
  • 75
0
votes
1 answer

Rubymotion Image Button event not firing

Does anyone know why the button in the following RubyMotion code doesn't fire the say_something method when clicked ... class HomeViewController < UIViewController def loadView self.view = UIImageView.alloc.init end def viewDidLoad …
creativetechnologist
  • 1,452
  • 13
  • 29
0
votes
1 answer

Rounding the layer on a Navigation Controller

Came across this article on how rounded layouts generally look better: http://blog.edwardmarks.com/post/9859783254/improve-usability-with-a-black-status-bar-and-rounded Sounds great, but there's no link to the source code to actually do it! I'm…
Gant Laborde
  • 6,484
  • 1
  • 21
  • 30
0
votes
1 answer

RubyMotion with CoreAnimation constant issue

I'm trying to use some CATransition constants in my rubymotion app thusly: transition = CATransition.animation transition.duration = 0.4 transition.type = kCATransitionMoveIn transition.subtype = kCATransitionFromBottom But am getting undefined…
Cocoa Nub
  • 489
  • 7
  • 20
0
votes
2 answers

How to make an image rotate in RubyMotion?

How to rotate an image in RubyMotion?
RedNax
  • 1,507
  • 1
  • 10
  • 20
0
votes
2 answers

Rubymotion: How to add 2 subviews to a view with one addSubview call?

Here I create two views(bar and icon) and I would like to make one call to @window.addSubview to add them both. class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame…
Josh
  • 5,631
  • 1
  • 28
  • 54
0
votes
4 answers

How to make an image move/animate in RubyMotion?

There are a few examples out there that utilises animateWithDuration - are there any simple examples on how to use this function to move an image from point A to B ?
RedNax
  • 1,507
  • 1
  • 10
  • 20
0
votes
1 answer

How do you call removeFromSuperview in RubyMotion?

I'm looking to implement this solution in RubyMotion. How would the following statement look like? [self.tabsView removeFromSuperview] Thanks!
RedNax
  • 1,507
  • 1
  • 10
  • 20
0
votes
1 answer

Reskit not calling callbacks

I am trying to use restkit with cocoapods and rubymotion, and just cant get a simple get request to work. I can see on my rails app logs that the simulator request is getting there, but restkit never calls its callback. Worse is, I dont get any…
marcelorocks
  • 2,005
  • 3
  • 18
  • 28
0
votes
2 answers

Anybody have any luck getting FMDB to work with Rubymotion?

I'm trying to get FMDB to work with Rubymotion but every time I try to build the app I get this error: FMDBTest(master):rake Build ./build/iPhoneSimulator-5.1-Development Build vendor/Pods Link…
bodacious
  • 6,608
  • 9
  • 45
  • 74
0
votes
2 answers

Facebook-iOS-sdk error The operation couldn’t be completed. (facebookErrDomain error 10000.)

Ok, I have been trying to get my ios app working with the facebook-ios-sdk. Login goes pretty well until I try to make fb requests such as /me or /me/friends. I get a very unexplicable error: The operation couldn’t be completed. (facebookErrDomain…
marcelorocks
  • 2,005
  • 3
  • 18
  • 28
0
votes
1 answer

Error when using Facebook-iOS-SDK with Rubymotion

I've transposed an existing XCode project to Rubymotion but I keep running into an issue with Facebook-iOS-SDK integration. In my Rakefile: $:.unshift("/Library/RubyMotion/lib") require 'motion/project' require 'motion-cocoapods' require…
bodacious
  • 6,608
  • 9
  • 45
  • 74
0
votes
3 answers

Change image for Map aonnation view in rubymotion

I want to change UIAnnotationView image on mapkit in rubymotion language. Any one know this, kindly help me.
0
votes
2 answers

Top bar iOS app with RubyMotion?

I'm very new to RubyMotion and iOS development and I wanna put a top bar in my app, like this one from groupme and place an icon in the middle of it. How do I do that? What is the library? How do I attach it to the view? There is the code in my…
rodrigoalvesvieira
  • 7,895
  • 15
  • 63
  • 84
0
votes
1 answer

RubyMotion error : Objective-C stub for message 'open' type `c@:' not precompiled

My code is throwing an error. Objective-C stub for message 'open' type `c@:' not precompiled. Make sure you properly link with the framework or library that defines this message.
sparkymat
  • 9,938
  • 3
  • 30
  • 48