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
25
votes
5 answers

How to use UIButton as Toggle Button?

I am trying to create a toggle button for each cell in my table. When pressed, it will change the image and when pressed again it will change the image again -- Toggle. In the UIButton class I don't see a selected state. I'm looking for a way to…
Anthony
  • 33,838
  • 42
  • 169
  • 278
23
votes
2 answers

Python for iOS (like RubyMotion)

RubyMotion has been released, and I am wondering, if a similar solution is available, or coming for Python?
utdiscant
  • 11,128
  • 8
  • 31
  • 40
22
votes
4 answers

How can I create a horizontal gradient background for my iOS nav bar?

I know how to set a navigation bar background color (with barTintColor), but now I am working on an iOS app that calls for a horizontal gradient (not the typical vertical gradient). How can I create a navigation bar with a horizontal gradient…
Andrew
  • 227,796
  • 193
  • 515
  • 708
22
votes
6 answers

Can I build RubyMotion apps with Interface Builder?

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…
20
votes
2 answers

Using @selector in RubyMotion

How do I translate the following method call from ObjectiveC to RubyMotion syntax: [self.faceView addGestureRecognizer:[ [UIPinchGestureRecognizer alloc] initWithTarget:self.faceView action:@selector(pinch:)]]; I got this…
kolrie
  • 12,562
  • 14
  • 64
  • 98
14
votes
5 answers

AFNetworking with request error code 999

I'm new to objective-c and i'm having a hard time with a AFNetworking. So the thing is that i want to make a simple POST request to a server who will send me back a salt. I'v make a simple app, in order to test my request but i don't understand why…
xikimay
  • 167
  • 1
  • 1
  • 11
14
votes
3 answers

RubyMotion is Not Loading AudioToolbox framework

So I was trying to use AudioToolbox with RubyMotion, 1, Added app.frameworks << 'AudioToolbox' in Rakefile, 2, And in one of my simple view controller method, simply added p AudioFileID 3, Then rake, 4, Given an error, uninitialized constant…
simsicon
  • 311
  • 1
  • 7
13
votes
2 answers

How to get a snappy UICollectionView with lots of images (50-200)?

I'm using UICollectionView in an app that is displaying quite a lot of photos (50-200) and I'm having issues getting it to be snappy (as snappy as Photos app for example). I have a custom UICollectionViewCell with a UIImageView as it's subview. I'm…
Alistair Holt
  • 1,432
  • 3
  • 17
  • 28
12
votes
1 answer

Unable to find a specification for `AFNetworking (~> 2.1.0)`

am on a rubymotion project have required afmotion in rake file, gem file and bundle installed. I get the above error when I try to run rake pod:install. Any ideas? Thanks in advance.
Sherwyn Goh
  • 1,352
  • 1
  • 10
  • 19
11
votes
3 answers

How do I use Magical Record to create & update objects and save them without using contextForCurrentThread

I just read the author of MagicalRecord's blog post on Why contextForCurrentThread Doesn't work in MagicalRecord. contextForCurrentThread is deprecated and saveWithBlock should be used instead because it creates a safe new NSManagedObjectContext for…
Paul Sturgess
  • 3,254
  • 2
  • 23
  • 22
11
votes
2 answers

Rubymotion and Pointers to Structs

I'm experimenting with cocosmotion, a Rubymotion implementation of Cocos2d. In the tutorial I'm working through, I have a method that takes a struct as an argument. I consulted the Rubymotion and MacRuby docs, but can't figure out how to instantiate…
plasticbugs
  • 113
  • 4
10
votes
3 answers

Better autocomplete in VIM

All, I have been working with vim for some time now, and love everything about it - there is only one thing I really miss from IDEs like RubyMine, and that is advanced autocompletion. For reference, here is my standard VIM setup: …
Warren Wright
  • 589
  • 1
  • 4
  • 11
9
votes
3 answers

os x equivalent to ios's rootViewController

What would be the OS X equivalent of ios' (Ruby style) : @window.rootViewController = NSViewController.alloc.initWithNibName(nil, bundle: nil) There are two aspects : dealing with the absence of rootViewController in os x doing the equivalent of…
MichaelC
  • 357
  • 2
  • 12
9
votes
3 answers

RubyMotion Build: ERROR! Can't find a provisioning profile named `(?-mix:iOS Team Provisioning Profile)'

I am trying to build a Simple RubyMotion app so that i can transfer it on my iPhone. I executed rake build:device Ankits-MacBook-Pro:hello ankitgupta$ rake build:device Build ./build/iPhoneOS-6.0-Development Create…
AnkitG
  • 6,438
  • 7
  • 44
  • 72
8
votes
3 answers

Poor UICollectionView Scrolling Performance With UIImage

I have a UICollectionView in my app, and each cell is a UIImageView and some text labels. The problem is that when I have the UIImageViews displaying their images, the scrolling performance is terrible. It's nowhere near as smooth as the scrolling…
1
2 3
45 46