Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ProMotion is a RubyMotion gem that makes iPhone development less like Objective-C and more like Ruby.

License

NotificationsYou must be signed in to change notification settings

jamonholmgren/ProMotion

Repository files navigation

Gem Version

ProMotion was created by me, Jamon Holmgren. While you're welcome to use ProMotion, please note that it's no longer maintained!

(And yes -- I created it long beforeApple launched their own ProMotion.)

iPhone Apps, Ruby-style

ProMotion is a RubyMotion gem that makes iOS development more like Ruby and less like Objective-C.It introduces a clean, Ruby-style syntax for building screens that is easy to learn and remember andabstracts a ton of boilerplate UIViewController, UINavigationController, and other iOS code into asimple, Ruby-like DSL.

# app/app_delegate.rbclassAppDelegate <PM::Delegatestatus_bartrue,animation::fadedefon_load(app,options)openRootScreenendend# app/screens/root_screen.rbclassRootScreen <PM::Screentitle"Root Screen"nav_bartruedefon_loadset_nav_bar_button:right,title:"Help",action::open_help_screenenddefopen_help_screenopenHelpScreenendend# app/screens/help_screen.rbclassHelpScreen <PM::TableScreentitle"Table Screen"deftable_data[{title:"Help",cells:[{title:"About this app",action::tapped_about},{title:"Log out",action::log_out}]}]enddeftapped_about(args={})openAboutScreenenddeflog_out# Log out!endend

Features

ScreensNavigation BarsTab Bars
ProMotion ScreenProMotion Nav BarProMotion Tabs
Table ScreensGrouped TablesSearchableRefreshable
ProMotion TableScreenGrouped Table ScreenSearchableRefreshable
SplitScreensMap ScreensWeb Screens
ProMotion SplitScreensMapScreenProMotion WebScreen

...and much more.

Getting Started

  1. Check out theGetting Started Guide
  2. Watch the excellentMotionInMotion screencast about ProMotion (note: no longer active.very reasonably priced subscription required)
  3. Follow a tutorial:Building an ESPN app using RubyMotion, ProMotion, and TDD
  4. Read theDocumentation

Changelog

See Releases page

Apps built on ProMotion

Apps built on ProMotion

Your app

Open a pull request! We love adding new ProMotion-built apps.

API Reference

We have comprehensive documentation with code examples, usage examples, and API reference.

Screencasts

Help

We're no longer supporting ProMotion and it's mostly retired. If you need help, feel free to file an issue, but I may not see it.

Contributing

SeeCONTRIBUTING.md.

Core Team (inactive)

Other Contributors

About

ProMotion is a RubyMotion gem that makes iPhone development less like Objective-C and more like Ruby.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp