Sha256: 18fe420f412475eb235337315a84710fa546049d86b4cdeae377ab55f7efdebc

Contents?: true

Size: 1.18 KB

Versions: 3

Compression:

Stored size: 1.18 KB

Contents

module StatusBar
  class View < UIViewController
    stylesheet :status_bar_sheet

    attr_accessor :status_bar_view, :notice_view, :notice_label, :activity_view, :activity_spinner, :activity_label, :success_view, :success_image, :success_label, :error_view, :error_image, :error_label

    layout :status_bar_vc_view do
      
      @status_bar_view = subview(UIView, :status_bar_view) do
        @notice_view = subview(UIView, :notice_view) do
          @notice_label = subview(UILabel, :notice_label)
        end

        @activity_view = subview(UIView, :activity_view) do
          @activity_spinner = subview(UIActivityIndicatorView, :activity_spinner).startAnimating
          @activity_label = subview(UILabel, :activity_label)
        end

        @success_view = subview(UIView, :success_view) do
          @success_image = subview(UIImageView, :success_image)
          @success_label = subview(UILabel, :success_label)
        end

        @error_view = subview(UIView, :error_view) do
          @error_image = subview(UIImageView, :error_image)
          @error_label = subview(UILabel, :error_label)
        end
      end
      
    end

    def viewDidLoad
      super 
    end
    
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
status_bar-0.2.3 lib/project/view.rb
status_bar-0.2.2 lib/project/view.rb
status_bar-0.2.1 lib/project/view.rb