rubymotion

    0熱度

    1回答

    我已經構建了一個使用物化的plain(無前端js框架)Rails應用程序。它在移動瀏覽器中運行得非常好,但我想使用PhoneGap(或其他必要的東西)將其包裝到移動應用程序中。目前似乎沒有任何關於如何做到這一點的當前指南。任何人都可以請告訴我如何做到這一點的方向? 編輯:我應該用rubymotion來代替嗎?學會使用和實施多久?

    1熱度

    1回答

    我正在使用Rubymotion構建iOS應用程序。我需要將這個Objective C代碼「轉換」爲ruby。它應該是什麼樣子。我被卡住了。 ASRemoteIndex *index = [apiClient getIndex:@"YourIndexName"]; [index search:[ASQuery queryWithFullTextQuery:@"jim"] success:

    1熱度

    1回答

    使用了RubyMotion火力地堡運動火力庫(https://github.com/colinta/motion-firebase)我可以設置數據很容易,無論是這樣做的: firebase.set({ full_name: ['first_name' => 'Fred', 'last_name' => 'Flintstone'] }) 或 firebase['first_name'] = 'F

    0熱度

    1回答

    我已將我的RubyMotion項目資源目錄中的所有圖像移動到Media.xcassets(資產目錄)中。我可以從我的故事板中的圖像集中加載所有圖像,但不是在我的應用程序中。編譯工作正常,但是一開始我得到這個錯誤,說''Could not load the "i-newsfeed" image referenced from a nib in the bundle with identifier'。

    0熱度

    1回答

    我正在嘗試使用MKMapView創建地圖,但我只希望它佔用UI中一半的屏幕。 我希望地圖在屏幕的一半處可見,並且long/lat標記仍保留在可見地圖的中心。 我試圖創建與CGRectMake和CGRect.new地圖以及創建特定UIView與addSubView沒有運氣分配它。 這就是我的工作: def viewDidLoad self.view = MKMapView.alloc.in

    0熱度

    1回答

    我有一個Ruby Motion項目,我想將Interface Builder添加到它。 我已經添加了寶石: gem 'ib' 但是當我運行bundle exec rake ib,我得到Don't know how to build task 'ib' 是否有任何人知道我可能是做錯了?這裏是我的Gemfile: source "https://rubygems.org" gem "rake"

    1熱度

    2回答

    我有Xcode 7.1.1。我已經下載了iPhone 9.0模擬器,但我仍然得到這個錯誤。 ❯ Rake ERROR! Can't locate iPhoneSimulator SDK 9.0 at `/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/i

    0熱度

    1回答

    我想在我的樣式表中取代我標籤的中心。我試圖用這個: st.frame = {l:0,t:-30,w:50,h:50} st.text = FontAwesome.icon("search") st.font = FontAwesome.fontWithSize(st.frame.size.height/2) st.background_color = color.green st.size

    0熱度

    1回答

    我一直在使用 firebase.once(:value) { |snapshot| } 我的數據查詢到了這一點。但是,隨着我的數據集越來越大,現在出現了嚴重的性能問題。 我已經知道我需要查詢哪些關鍵字了,我寧願只是通過一個手中充滿了對Firebase的調用來獲取我需要的鍵值。 我正在尋找適當的motion-firebase調用來實現這一點。 謝謝。

    1熱度

    1回答

    我有一個特定的高度晉升TableScreen,在細胞remote_image給出哈希和動作來處理水龍頭: action: :my_action, height: 80, remote_image: { url: url, #this contains a valid url to random sized image placeholder: "icon.png",