Sha256: beff900805a0495763fb9014910c4086abfa74ad80497b85d61bdcf434ece9d3

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

class ImageViewTitleScreen < PM::Screen
  attr_accessor :button_was_triggered

  title UIImageView.alloc.initWithImage(UIImage.imageNamed('test.png'))

  def will_appear
    self.button_was_triggered = false
    add UILabel.alloc.initWithFrame([[ 10, 10 ], [ 300, 40 ]]),
      text: "Label Here"
  end

  def triggered_button
    self.button_was_triggered = true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ProMotion-1.2.1 spec/helpers/image_view_title_screen.rb
ProMotion-1.2.0 spec/helpers/image_view_title_screen.rb