ProMotion is a RubyMotion gem that makes iPhone development less like Objective-C and more like Ruby.
Questions tagged [rubymotion-promotion]
31 questions
3
votes
1 answer
How to use ProMotion-Menu?
I did an new project only with the code shown in the Promotion-Menu's Readme. I have this :
# app_delegate.rb
class AppDelegate < PM::Delegate
def on_load(app, options)
@menu = open MenuDrawer
end
def show_menu
@menu.show :left
…

Dougui
- 7,142
- 7
- 52
- 87
2
votes
1 answer
iOS custom keyboard throws exception
Developing an iOS app using Rubymotion and the task at hand is to make the keyboard smaller. The stock keyboard for some reason is the larger version (pre-iOS7?) as opposed to the newer stock keyboard which is roughly a half-inch shorter. Found a…

Mark Mniece
- 21
- 2
2
votes
1 answer
Simplest way to set a background image on a ProMotion screen?
I just want to set a background image on a screen for a placeholder. What is the quickest, easiest, simplest way to do that? Everything I've tried does not seem to work.
I should mention that this is in RedPotion so I already have access to RMQ.

Andrew
- 227,796
- 193
- 515
- 708
2
votes
1 answer
Google Maps iOS SDK Crash in RubyMotion
I have an iOS app built in RubyMotion (using the Promotion framework). I'm trying to load a view which is just a Google Maps view (GMSMapView) - their example even, it loads fine the first time the app is installed on a device or the simulator, but…

TheVelourFog
- 101
- 6
2
votes
2 answers
Is there any tool in Ruboto like ProMotion in RubyMotion?
I know there are many tools/frameworks in RubyMotion, such as: Bubblewrap, AFMotion. (refer to: http://siwei.me/blog/posts/rubymotion-2-must-have-libraries-for-rubymotion-part2 ) , but when I googled around for the similar tools in Ruboto (Ruby on…

Siwei
- 19,858
- 7
- 75
- 95
1
vote
0 answers
Is there a way to connect to MySQL 8 from rubymotion?
is there a workaround that allows me to connect and query MySQL 8 database from within my rubymotion (RedPotion) Projet, instead of defining and statically compiling my schema in rubymotion??
Below is my development environment.
Ruby version…

Charlie_oscar
- 57
- 5
1
vote
1 answer
Display content on PM::WebScreen from BubbleWrap response
class WorkoutScreen < PM::WebScreen
title "Workouts"
def content
@response
end
def on_load
set_nav_bar_button :left, title: "Menu", action: :nav_left_button
end
def load_started
@response = ''
…

Vladislav Shved
- 21
- 5
1
vote
1 answer
How to avoid remote_image size change on tap in promotion TableScreen
I have a ProMotion TableScreen with specific height, remote_image given in cells hash and an action to handle taps:
action: :my_action,
height: 80,
remote_image: {
url: url, #this contains a valid url to random sized image
placeholder:…

Bence Erdos
- 21
- 3
1
vote
0 answers
How to present UIAlert in its own Screen
I am opening registration screen from login screen as follows.
Now in the registration screen, i am trying to trigger alert message - rmq.app.alert("test alert") but I get this error message:"attempt to open UIAlertController on LoginScreen whose…

yogi_bear
- 313
- 4
- 12
1
vote
1 answer
add child screen to parent screen with rmq
In the on_load method of HomeScreen class i want to do something like rmq.append(LoginScreen, :login_form). LoginScreen inherits from PM::FormScreen.
Since I am not implementing initWithFrame in LoginScreen the app crashes.
This has been done in…

yogi_bear
- 313
- 4
- 12
1
vote
1 answer
Using asynchronously obtained data in Motion-Kit layouts
I'm reverse geocoding a pair of coordinates to find the user's city, but am having a hard time gettingthe city into a Motion-Kit layout. What's the best way to get the city into the layout? I also will be adding other information from an API to the…

Nathan
- 1,864
- 3
- 18
- 22
1
vote
1 answer
Pass data to Javascript from ProMotion WebScreen
I am building an iOS app using the wonderful RubyMotion framework and ProMotion gem stack.
I want to display a chart in a PM::WebScreen on my iPhone. I reference an HTML file in the content method, and have (1) the HTML file, (2) my custom JS…

Peter Bloom
- 1,302
- 14
- 21
0
votes
2 answers
Cocoapods update from 1.2.1 to 1.4.0 breaks FontasticIcons
Not sure why but it seems like updating cocoapods from 1.2.1 to 1.4.0 breaks FontasticIcons and ruins my build. My build output:
2018-10-13 22:28:02.015 Appname[67112:3481948] *** Terminating app due to uncaught exception…

LOPHER
- 151
- 1
- 8
0
votes
1 answer
How can i set a title with image or remote image in left nav bar?
Below is my code and image is visible but not the title
class PromotionScreen < PM::GroupedTableScreen
title 'User screen'
include ProfileImageHelpers
def on_load
set_nav_bar_button :left, {
title: 'Dev',
…

Anna88
- 345
- 3
- 11
0
votes
1 answer
Can someone help me understand how to recycle text?
so I've checked everywhere and it's so hard to figure this one out. I'm writing an app in RubyMotion using RedPotion but for the most part the help I need here is with Ruby. The app is pretty much a book app so I'm trying to figure out how to…

Elan Kvitko
- 1
- 1