Sha256: 7d679f52d3681063917252050925b8b0606bb2a294ce83bbc6cb70ac7eb4a8e4

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

class AppDelegate
  attr_accessor :navigationController, :window
  def application(application, didFinishLaunchingWithOptions:launchOptions)

    AFMotion::Client.build_shared("https://alpha-api.app.net/") do
      header "Accept", "application/json"

      operation :json
    end

    url_cache = NSURLCache.alloc.initWithMemoryCapacity(4 * 1024 * 1024, diskCapacity:20 * 1024 * 1024,diskPath:nil)
    NSURLCache.setSharedURLCache(url_cache)

    AFNetworkActivityIndicatorManager.sharedManager.enabled = true

    viewController = GlobalTimelineViewController.alloc.initWithStyle(UITableViewStylePlain)

    self.navigationController = UINavigationController.alloc.initWithRootViewController(viewController)
    self.navigationController.navigationBar.tintColor = UIColor.darkGrayColor

    self.window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
    self.window.backgroundColor = UIColor.whiteColor
    self.window.rootViewController = self.navigationController
    self.window.makeKeyAndVisible

    true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
afmotion-0.0.1 examples/AppDotNet/app/app_delegate.rb