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

iOS 7 view controller layout issue with transparent/blurred nav bar

I am having trouble with my view controllers in iOS 7. I'm trying to figure out the best way to adjust my view's layout under the nav bar and status bar while maintaining the transparency/blur of the nav bar. So for example, if I have a view…
tvalent2
  • 4,959
  • 10
  • 45
  • 87
3
votes
2 answers

iOS app with RubyMotion pulling from Rails API

I built a rails application were users can add music to their personal playlist. These playlists are only seen by the owner. There is a "my" namespace with a playlists controller. Inside the controller I have a method to add a song to the playlist…
Dileet
  • 2,034
  • 3
  • 33
  • 53
3
votes
2 answers

NSTokenField click completion list item

I have an NSTokenField in my application and I implemented the tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem: method in which I specify the receiver’s tokenizing character set with the setTokenizingCharacterSet: method: def…
siekfried
  • 2,964
  • 1
  • 21
  • 36
3
votes
1 answer

NSJSONSerialization.JSONObjectWithData float conversion/rounding error?

My simple RubyMotion code: data = DataParser.parse(url) error_ptr = Pointer.new(:object) json = NSJSONSerialization.JSONObjectWithData(data, options: 0, error: error_ptr) The url is a weather API that provides a JSON with temperatures as floats…
Robert
  • 1,936
  • 27
  • 38
3
votes
2 answers

Calling a different superclass init method from custom initializer in MacRuby

In Objective C, a custom init method must call the superclass's designated initializer. Consider the following custom init method for a sublcass of NSView: - (void)initWithFrame:(CGRect)aFrame andName:(NSString *)aName { if(self = [super…
maxedison
  • 17,243
  • 14
  • 67
  • 114
3
votes
2 answers

String encryption in RubyMotion

I'm trying to encrypt strings in RubyMotion - ideally AES but weaker/older cyphers such as Blowfish should do just fine. So far I have failed at compiling a couple of pods: RNCrypto and CommonCrypto. Suggestions? Anyone else tried these pods? Thank…
Adrian Spinei
  • 550
  • 5
  • 15
3
votes
1 answer

Core Data Migration Error: Can't Copy

I'm really stuck on a Core Data error that I can't seem to solve: Can't migrate SQLite store: Error Domain=NSCocoaErrorDomain Code=134110 The operation couldn’t be completed. (Cocoa error 134110.) UserInfo=0xab4b630 {NSUnderlyingError=0xab4b2e0 The…
AwDogsGo2Heaven
  • 952
  • 11
  • 26
3
votes
1 answer

Parse & Rubymotion

I cannot get parse to work with rubymotion. I tried using the cocoapod and vendoring the project. I must be missing something trivial. The ideal scenario to me would be to use the pod as opposed to vendoring the project, but I'll use whichever I can…
pachun
  • 926
  • 2
  • 10
  • 26
3
votes
4 answers

How to use localization with RubyMotion?

I think it's not possible to use I18n, so what's the best approach? From what I see you can use Bubblewrap as so: # Localization (using NSBundle.mainBundle.localizedStringForKey): BubbleWrap.localized_string(:foo, 'fallback') => "fallback" But…
marcgg
  • 65,020
  • 52
  • 178
  • 231
3
votes
1 answer

Ruby Motion: Removing a Ruby Class Completely from Object Space

I'm running into a brick wall testing class redefinitions and just don't know how to approach it. Here's the scenario I'm testing (this is not Core Data): Application is run with a model in version 1 Eager programmer modifies model by…
Steve Ross
  • 4,134
  • 1
  • 28
  • 40
3
votes
2 answers

In RubyMotion how do you cancel a list refresh when the back link is touched?

I'm new to RubyMotion and struggling to get to grips with some of the APIs. My app is a very basic series of UITable lists, if you select an item you go into the list for that item which is achieved by pushing a new controller. This all works fine,…
3
votes
1 answer

How to set UISlider's MinimumTrackImage so that it won't strech?

Ever since I've updated my XCode, the MinimumTrackImage on my UISlider is now stretching, when before it was clipping like I wanted it to. The MaximumTrackImage's behavior didn't change. How can I get the MinimumTrackImage to not stretch? Note that…
marcgg
  • 65,020
  • 52
  • 178
  • 231
3
votes
1 answer

How to test ios version without bubblewrap

I'd like to open maps on ios6 by usine MKMapItem but I'd also like fallback using google maps for older ios versions... I have no Idea to do this on rubymtion without BubbleWrap cause Device.ios_version return me an error I want to this this on…
3
votes
3 answers

No valid 'aps-environment' entitlement string found for application 'MyApp': (null). Notifications will not be delivered

I've set up my application in the Provisioning Portal and enabled it for APS. I've set up two provisioning profiles for the application, both specific to this App ID. I'm building my application with my company's distribution certificate and the ad…
bodacious
  • 6,608
  • 9
  • 45
  • 74
3
votes
2 answers

Bubblewrap HTTP -> Table View; method returns bubblewrap query instead of response data

I'm trying out Rubymotion and can't seem to do figure how to accomplish what seems like a simple task. I've set up a UITableView for a directory of people. I've created a rails back end that returns json. Person model has a get_people class method…
sbauch
  • 810
  • 9
  • 18