ProMotion is a RubyMotion gem that makes iPhone development less like Objective-C and more like Ruby.
Questions tagged [rubymotion-promotion]
31 questions
0
votes
1 answer
Unable to add remote image to nav_bar button in ProMotion
My nav_bar should show the logged_in user's picture on the right and clicking on it should open a Profile screen.
It works fine with a new user that has not uploaded a profile picture yet, since it's using a local placeholder image, but when…

Augusto Samamé Barrientos
- 1,314
- 14
- 36
0
votes
1 answer
ProMotion lifecycle methods running out of order
I have been losing my mind over the last couple of weeks due to some very strange behaviour from ProMotion / RedPotion.
I have narrowed down the strange behaviour to a seemingly out of order execution of ProMotion's lifecycle methods and an API…

Augusto Samamé Barrientos
- 1,314
- 14
- 36
0
votes
1 answer
Change ProMotion TableScreen layout
I have looked everywhere in the ProMotion docs and examples but I am unable to find a way to change a TableScreen layout, specifically the TableView cell's vertical starting position.
I have an UIView on the top of my screen to show some buttons,…

Augusto Samamé Barrientos
- 1,314
- 14
- 36
0
votes
1 answer
iOS RubyMotion Promotion Webscreen Freeze
I am getting a freeze in my app(which is a ruby motion IOS app) on a drop down click inside a web screen.
def thing
open_modal WebScreen.new(
name: "Thing",
url: testURL,
nav_bar: true,
modal: true,
transition_style:…

LOPHER
- 151
- 1
- 8
0
votes
1 answer
Fetch image from server and render it in
I want to fetch image from the server, save it locally and and display when user opens the show page - with Rubymotion.
I am using AFMotion to fetch the image url as follows.
In my show screen I can get the image url with news.image_url. My doubt…

yogi_bear
- 313
- 4
- 12
0
votes
1 answer
Changing Interface Orientation for BW::Media Modal in RubyMotion
I have a RubyMotion application that is completely portrait (no landscape), but loads BW::Media.play_modal for an external MP4 video URL that I'd like to play in landscape mode.
It's loaded like this using RMQ, PM, and BW:
def on_load
…

Justin
- 1,956
- 3
- 23
- 34
0
votes
1 answer
Promotion::FormotionScreen add on_touch action to row
I have a settings screen that works quite nicely using the "ProMotion-formotion" gem. I would like to make a couple of the rows into buttons that will call a method when pressed eg:
def table_data
set_nav_bar_button :left, title: "Cancel",…

jjnevis
- 2,672
- 3
- 22
- 22
0
votes
1 answer
Tabledata not refreshed with `on_refresh` callback in `on_load` callback
My tableview won't reload data , it only shows noob but not redreshed data.
Do I missing any steps in my code ?
class ReservoirsScreen < PM::TableScreen
title "I want to refresh"
refreshable
def on_load
@returned_data ||= [{title:'noob'}]
…

newBike
- 14,385
- 29
- 109
- 192
0
votes
1 answer
ProMotion Screen lag
I'm developing an app with a list of train stations and when you select a station from the list, there should be a view that shows more information.
For the list I'm using PM::TableScreen
In there I have this method that gets called when a user…

egze
- 3,200
- 23
- 23
0
votes
1 answer
Accessing parent from UICollectionViewCell
I have a UIView (it's actually a PM::Screen) and am adding a subView which is a UICollectionViewController's view. I'm using this technique to switch between things like grid/list ala the Instagram profile screen.
Selecting a cell should open a new…

Chris Edwards
- 3,514
- 2
- 33
- 40
0
votes
1 answer
Selectable cells in UITableView with ProMotion
I’m getting crazy with Pro Motion table and I cannot find any discussion about this online.
I’m using a PM::TableScreen and I need to have selectable table rows. I manage the raw selection in an array but I don’t know how can I get the cell object…

Roberto Pezzali
- 2,484
- 2
- 27
- 56
0
votes
1 answer
String.encode is failing with cannot be performed with encoding 'UTF-8' because Apple's ICU doesn't allow it
I am working on iOS7 with RubyMotion 2.34, Motion-bundler 0.2.1, and rubysl-rexml 2.4.1.
I've gotten the following error when trying to parse an XML response from a server, down in the encoding part of REXML. However, I've also done the following to…

Dr. Polar Humenn
- 377
- 3
- 10
0
votes
1 answer
libPusher pod issues - Disconnection during channel subscription
I'm using the libPusher pod in a Ruby Motion project but running into an issue where my code works when used in the REPL but not in the app itself.
When I try this code in a viewDidAppear method it connects successfully and then disconnects during…

SethS
- 449
- 4
- 12
0
votes
1 answer
ProMotion-push install dependency issue
I am building an iOS app using the splendid RubyMotion framework and ProMotion gem stack. I want to have push notifications and hope to implement that via the ProMotion-push gem.
The Problem
When I use
gem 'ProMotion-push'
in my Gemfile, I get a…

Peter Bloom
- 1,302
- 14
- 21
0
votes
1 answer
Custom ProMotion TableCell not showing
I'm building a tableView with custom cells using RubyMotion and ProMotion. I can't figure out why none of the cells are visible. When I'm not trying to use the custom cell class, the title label is visible. What am I missing here? Thanks! Here is my…

Linus
- 4,643
- 8
- 49
- 74