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

Selecting the iOS Simulator device type with RubyMotion

Since iOS 8 was released the default device type for simulator became iPhone 6. And even if I manually change the device type using Hardware > Device menu, on the next launch (using rake simulator) the simulator will revert to iPhone 6. I wonder if…
Dmitry Sokurenko
  • 6,042
  • 4
  • 32
  • 53
7
votes
1 answer

Paging effect for the title in iOS nav bar

How can I achieve paging the navigation bar title in iOS? That is, having the title in the nav bar slide left or right depending on which way you swipe, fade in/out depending on your swipe and get replaced by the next UIPageView's title. Twitter's…
7
votes
2 answers

How can i start a different simulator with Rubymotion command line

In Rubymotion we start terminal with rake Ankits-MacBook-Pro:Magic ankitgupta$ rake Build ./build/iPhoneSimulator-6.0-Development Simulate ./build/iPhoneSimulator-6.0-Development/Magic.app (main)> By default it is starting…
AnkitG
  • 6,438
  • 7
  • 44
  • 72
7
votes
2 answers

initializing ruby singleton

I'm trying to initializing a singleton in ruby. Here's some code: class MyClass attr_accessor :var_i_want_to_init # singleton @@instance = MyClass.new def self.instance @@instance end def initialize # tried 1. initialize, 2. new,…
pachun
  • 926
  • 2
  • 10
  • 26
7
votes
3 answers

Using the Parse iOS SDK with RubyMotion

RubyMotion provides these instructions for vendoring 3rd party code: http://www.rubymotion.com/developer-center/guides/project-management/#_files_dependencies I'm trying to add Parse.com's iOS SDK. These are the instructions for adding it to an…
user94154
  • 16,176
  • 20
  • 77
  • 116
6
votes
2 answers

How to make a menubar app look good with "Dark Mode" in Yosemite?

While developing a menubar app, I am having a hard time finding the preferred method for making the app actually look good. I would have thought that Apple controls would have essentially handled this for the most part, but it appears not. What is…
ylluminate
  • 12,102
  • 17
  • 78
  • 152
6
votes
2 answers

SIGTRAP error on iOS – AutoreleasePoolPage::busted

Does anyone have any clue what's causing this crash? It happens very rarely. The crash reports are coming via HockeyApp from the device. I've not been able to reproduce it on the simulator. Any ideas greatly appreciated. Exception Type: …
Paul Sturgess
  • 3,254
  • 2
  • 23
  • 22
6
votes
1 answer

Disable drag and drop for WebView in favor for one of its superviews

I'm working on an application featured like Mac Mail. I have a WebView which allow the user to write a new message. I implemented the drag and drop feature so that a user can add an attachment to the message that way. To make it simple, I have a…
siekfried
  • 2,964
  • 1
  • 21
  • 36
6
votes
4 answers

How to put a button in middle of the UIView Horizontally and Vertically for any device?

I have a UIButton of type UIButtonRoundedRectType that I want to put in middle of the screen horizontally and vertically. I've tried doing this by hardcoding numbers but this looks back when run on iPhone vs. iphone (retina). I would like to…
Anthony
  • 33,838
  • 42
  • 169
  • 278
6
votes
3 answers

Apple rejected app because it's transmitting MAC Address without user permission

We had a recently developed app rejected by Apple. Here is their explanation: We found your app does not obtain user consent before collecting the user's personal data, as required by theApp Store Review Guidelines. Specifically, your…
silasjmatson
  • 1,814
  • 18
  • 37
6
votes
2 answers

Weird behaviour in MKMapView - pins disappearing

Within my app we have a screen with an MKMapView. This map shows pins for a bunch of Locations (location is a model defined within the app). When running in the simulator this works fine. However, when running this on a device the pins seem to…
bodacious
  • 6,608
  • 9
  • 45
  • 74
6
votes
1 answer

How to create an md5 hash of a string in RubyMotion

I have an email and want to pull the corresponding image from gravatar.com With ruby, it's easy: require 'Digest/md5' Digest::MD5.hexdigest("my string") Since there is no require method in RubyMotion, how do I generate the hash from the…
silasjmatson
  • 1,814
  • 18
  • 37
6
votes
3 answers

Creating a spec helper in rubymotion

I have some common methods used in a couple different specs, I want to extract them to some place like a spec helper that is accessible from all specs. Anyone know how to do this?
jacob
  • 2,284
  • 3
  • 20
  • 21
6
votes
1 answer

RubyMotion and Pointers

I'm an Objective-C noob, have searched high and low not finding the answer to this yet: In my RubyMotion project I have a UIView subclass called StatusGuage, which contains a method called drawLinearGradient as follows: def…
Midwire
  • 1,090
  • 8
  • 25
5
votes
1 answer

RubyMotion app files load order: how to load lib files before other files?

I have a RubyMotion project that needs to load certain directories and files earlier than others. I want to load the /lib directory files before the /app directory files. Research turned up many ways to adjust the load order, but no definitive…
joelparkerhenderson
  • 34,808
  • 19
  • 98
  • 119
1
2
3
45 46