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
1 answer

RubyMotion: UIWindow backgroundColor

I'm watching this introductory screencast on RubyMotion to get started http://pragmaticstudio.com/screencasts/rubymotion. In the screencast, the author uses window.backgroundColor to set the background color. However, when I look into the UIWindow…
trivektor
  • 5,608
  • 9
  • 37
  • 53
0
votes
1 answer

How can I insert a UISegmentedControl to a navigationBar using RubyMotion?

I've built an iOS application using Xcode which I'm now transposing over to RubyMotion. Using interface builder I was able to add a segmented control to my navigation bar on one of my view controllers. When I try to recreate this programatically in…
bodacious
  • 6,608
  • 9
  • 45
  • 74
0
votes
1 answer

How to insert image into bar created by UIViewController?

The tabs can be created - however, how can you insert a graphic into each tab and when the tabs are selected, how do you call it out to a new screen? # Create a tabbar tabbar = UITabBarController.alloc.init # Each Tab has a view controller…
RedNax
  • 1,507
  • 1
  • 10
  • 20
0
votes
2 answers

RubyMotion: Find each character entry in UITextField

I am new to RubyMotion for iOS app, but I coded using Objective C. My requirement is to get the delegate method which should be called for every char type in UITextField. Objective C: I used "shouldChangeCharactersInRange" for finding the user…
Lara
  • 3
  • 4
0
votes
1 answer

Custom URL Scheme RubyMotion

I am needing to go to a specified ViewController in my app. I can get to the rootViewController just fine when entering scheme:// in Safari as I've edited my Info.plist. I even came across this: https://stackoverflow.com/a/10925872/1327809 -…
jpgr
  • 278
  • 2
  • 3
  • 13
0
votes
1 answer

How to do a sliding transition in RubyMotion?

I've been looking at the different examples of loading a screen - is there a way to insert a transition screen (sliding) when the a tap is detected? Currently UIImage.imageNamed loads up the next graphic instantly - how to make it slide? def…
RedNax
  • 1,507
  • 1
  • 10
  • 20
0
votes
1 answer

How can Rubymotion create bridge metadata on Leopard ?

I am using 1.8.24 of gems and 1.9 of rubymotion on Snow Leopard and trying to compile the SparrowInMotion sample project. I added require 'rubygems' to the Rakefile but it is still crashing on the "invalid option: --no-64-bit" of gen_bridge_data. I…
angel of code
  • 686
  • 8
  • 25
0
votes
1 answer

Does RubyMotion support integration of objective-c code?

There are a ton of libraries/pieces of code that have already been built in Objective-C can RubyMotion use these bits without rewriting them in Ruby?
Gavin Miller
  • 43,168
  • 21
  • 122
  • 188
0
votes
1 answer

How do I create the CFErrorRef parameter required for modifying ABAddressBook via Ruby Motion

I'm trying to use Ruby Motion to add an entry to the AddressBook. I can't figure out how to properly instantiate the CFErrorRef parameter. error = nil # compiles but won't capture an error properly # Here are my numerous attempts: #error =…
Guy Argo
  • 397
  • 4
  • 10
0
votes
1 answer

Getting NoMethodError when accessing NSManagedObject NSString in controller

Most of this code is derived directly from the RubyMotion Locations sample. I defined a simple NSManagedObject: class Text < NSManagedObject def self.entity @entity ||= begin # Create the entity for our Text class. The entity has 2…
codewise
  • 626
  • 8
  • 23
-1
votes
1 answer

Failed to open APK in Rubymotion

I'm getting the following error when running: bundle exec rake release on my RubyMotion Android app: ziparchive W 08-24 13:55:26 89539 4680851 Unable to open '~/.rubymotion-android/sdk/platforms/android-31/android.jar': No such file or…
-1
votes
1 answer

iOS rubymotion app poor performance

My app works smooth on emulator, but is extremely slow and laggy on real device(iPhone 4). Push animation is laggy and scrolling is now smooth. Here is an example of view controller https://gist.github.com/Dark-Sun/37daeb4cf05c58d4f421
-1
votes
1 answer

RubyMotion RMQ default global styles

I'd like have default styles for UIViews. Let's say that I want to have ALL UILabel with backgroundColor of color.light_gray. Moreover I want to style my custom UIViews, e.g. for EVERY AttributedUILabel I want to have kerning value set to 2. How to…
Kamil Lelonek
  • 14,592
  • 14
  • 66
  • 90
-1
votes
1 answer

Sign In change to Sign out when is logged in

Sorry it abit long,hope you guys understand I have a list of items in my tableView which it is JASidePanelController Eg: @menu = { 'menu' => ['Item1','Sign In'] } This list will be in every of my cell. When I perform Sign In action successfully,…
Nich
  • 1,112
  • 1
  • 14
  • 29
-1
votes
3 answers

Ruby array only storing last item during collect statement

I have a ruby method that queries a array through a search. From what is typed in the searchbar it appends that item to another array that shows on the screen. Below is my method: @churches = ["UGBC", "Oak Ridge Baptist", "Calvary"] @search_results…
Jason Milam
  • 101
  • 2
  • 14
1 2 3
45
46