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
4
votes
4 answers

Parsing string to time in RubyMotion

I try to parse a text representation of a time into a ruby Time object. Normally in ruby I would do it like this: require 'time' Time.parse('2010-12-15T13:16:45Z') # => 2010-12-15 13:16:45 UTC In RubyMotion I am unable to require libs and…
mordaroso
  • 1,550
  • 1
  • 11
  • 10
4
votes
2 answers

RubyMotion and CocoaPods problems

I'm various issues getting CocoaPods dependencies to work in RubyMotion. Firstly, if I add dependency 'JSONKit' to my Rakefile and then run rake it get's aborted with a can't convert Pathname into String error. rake --trace then produces the…
Alistair Holt
  • 1,432
  • 3
  • 17
  • 28
3
votes
0 answers

RubyMotion Image from URL in Motion-Game

I am using RubyMotion motion-game. I am trying to create a sprite, or ui widget, or really almost any other class that has an image associated with it. The trick is I want to create it from a URL, not a file. Is there is an existing way to do…
M1LKYW4Y
  • 598
  • 1
  • 4
  • 19
3
votes
1 answer

How to use React Native with RubyMotion

I have built a couple apps in RubyMotion and I would like to take advantage of the many benefits of React Native within those apps? Has anyone been able to get React Native to work inside an existing RubyMotion project?
senornestor
  • 4,075
  • 2
  • 33
  • 33
3
votes
1 answer

How to use ProMotion-Menu?

I did an new project only with the code shown in the Promotion-Menu's Readme. I have this : # app_delegate.rb class AppDelegate < PM::Delegate def on_load(app, options) @menu = open MenuDrawer end def show_menu @menu.show :left …
Dougui
  • 7,142
  • 7
  • 52
  • 87
3
votes
1 answer

RubyMotion binary being rejected by Apple for missing 64-bit support ("Invalid binary")

I have been developing an app and using Apple's new Testflight to distribute the beta. After every successful upload, I received a follow up email from Apple informing me that my binary lacked 64-bit support. However, RubyMotion has supported 64-bit…
senornestor
  • 4,075
  • 2
  • 33
  • 33
3
votes
0 answers

Call Objective C code from Javascript in Rubymotion

Purpose: I want to call objective C code from a Javascript in iOS Webview in RubyMotion I am loading a index.html file in iOS web View. And it has one button
My webview code def…
3
votes
0 answers

UITableView jumps to the top when a cell is deleted and then goes back to his position

I'm trying to code a feed so it's just a basic UITableView with one row per section and as many sections as posts. If I select a cell the tableView displays a cell in the row 1 in the same section than the selected cell, and if I re-select the cell…
Cacoa
  • 31
  • 2
3
votes
2 answers

How to use underscores instead of camelCase in RubyMotion?

I have found that the use of camel case both reduces readability and reuse on some scenarios so far when working with RubyMotion. While I understand how it is, on the outset, helpful coming from Cocoa over to keep this convention, it seems to me…
ylluminate
  • 12,102
  • 17
  • 78
  • 152
3
votes
1 answer

undefined method `[]' for nil:NilClass `read_provisioned_profile_array' on rake device mode=release in RubyMotion

So stumped here... I'm working to test out the release mode of a ruby motion app but keep getting this error when trying to rake device mode=release rake aborted! undefined method `[]' for…
SethS
  • 449
  • 4
  • 12
3
votes
3 answers

Converting UTC time to local time

I am fetching data from the server and part of that data is time. Time is stored in UTC in my DB so what I'm returning is also in UTC. For example: 2014-05-22 05:12:40 Further, I am using the DateTools to show the time difference on the device like…
birdy
  • 9,286
  • 24
  • 107
  • 171
3
votes
2 answers

custom style for just the first row of the table view

I am trying to set a different style for the first row of my table view. I'm doing this by the following code: def tableView(table_view, cellForRowAtIndexPath: index_path) data_row = @data[index_path.row] puts index_path.row if index_path.row…
birdy
  • 9,286
  • 24
  • 107
  • 171
3
votes
2 answers

Can you open ios app without url scheme

Hello I'm creating an app in Rubymotion, one of the feature is to open another application but I realized that target app do not use URL Scheme model into the info.plist Do you know how I should hack this ? I think this is possible cause the…
3
votes
1 answer

ERROR ITMS-9000: "This bundle is invalid. Apple is not currently accepting applications built

I am trying to submit my first ruby motion application via apple application loader and I get the error: ERROR ITMS-9000: "This bundle is invalid. Apple is not currently accepting applications built with this version of the SDK." at …
user3265421
  • 33
  • 1
  • 5
3
votes
1 answer

ProMotion Styling Table Cells with Teacup

I've looked all over for the Google answer to this, but no joy. What I'd like to do is mix and match Teacup and ProMotion for tables. The overall table is pretty easy. Just add this to the hash for the data element in the table_data…
Steve Ross
  • 4,134
  • 1
  • 28
  • 40