Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7925931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:30:34+00:00 2026-06-03T18:30:34+00:00

Ruby Motion just came out, and the screencast doesn’t seem to say anything about

  • 0

Ruby Motion just came out, and the screencast doesn’t seem to say anything about whether or not you can use Interface Builder to build your interfaces and integrate them in your RubyMotion project. Is such a thing possible? Or do I really have code everything by hand, not to mention maintain to different pieces of code for iPhone/iPad?

My rep isn’t high enough to create a rubymotion tag, so please help out if appropriate.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:30:36+00:00Added an answer on June 3, 2026 at 6:30 pm

    I’d just like to point out that RubyMotion 1.3 now support automatic compilation of .xib files that you put into the resources folder. So now the workflow becomes :

    1. Create your .xib file using XCode (no need to create a project, just use File|New…|File) and save it into the resources folder. As there is no support for outlets yet, be careful to set the tag property for each control you want to use in your code (you’ll find in the property sheet of each component under the “View” header).
    2. RubyMotion will take care of compiling your .xib file into a .nib file, so enjoy 🙂
    3. In your UIViewController derived class, load the nib using loadNibNamed:owner:options:, as shown below.
    4. In viewDidLoad, fetch your various components using viewWithTag: and add events handlers using addTarget:action:forControlEvents:,as show below.
    5. As a bonus, next time you want to edit your xib, just do open resources/MyView.xib, it will only launch the good parts of XCode.

      class CalculatorViewController < UIViewController
          def loadView
              views = NSBundle.mainBundle.loadNibNamed "Keyboard", owner:self, options:nil
              self.view = views[0]
          end
      
          def viewDidLoad
              button = view.viewWithTag 1
              button.addTarget self, action:'buttonTapped:', forControlEvents:UIControlEventTouchUpInside
          end
      
          def buttonTapped(button)
              # ...
          end
      end
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ruby doesn't seem to have a facility for defining a protected/private block like so:
Ruby setters—whether created by (c)attr_accessor or manually—seem to be the only methods that need
I'm just starting to play around with Ruby Motion (v 1.9) and I'm having
Ruby on Rails has a screencast presentation they use to promote their framework that
Ruby has conditional initialization. Apparently, Java does not or does it? I try to
Ruby has method_missing , Python has getattr . Does Boo offer something I can
Ruby has a sort_by method on Enumerables. Fantastic! So you can do something like
Ruby's standard popen3 module does not work on Windows. Is there a maintained replacement
Ruby on Rails does not do multithreaded request-responses very well, or at least, ActiveRecord
Ruby can add methods to the Number class and other core types to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.