begin require 'bundler' Bundler.require rescue LoadError end ! Motion::Project::App.setup do |app| # Use `rake config' to see complete project settings. app.name = 'iosapp' end
an alert message. > Device.ios_version # "6.0" > Device.retina? # false > Device.screen.width # 320 BW::Location.get_once(desired_accuracy: :three_kilometers, ...) do |result| if result.is_a?(CLLocation) p result.coordinate.latitude p result.coordinate.longitude else p "ERROR: #{result[:error]}" end end button.when(UIControlEventTouchUpInside) do self.view.backgroundColor = UIColor.redColor end Alerts Device Information Location UI Events
absolute best networking library on iOS.” AFMotion::HTTP.get("http://google.com") do |result| p result.body end Normal requests: Web images: AFMotion::Image.get(“https://www.google.com/images/srpr/ logo3w.png") do |result| image_view = UIImageView.alloc.initWithImage(result.object) end