Sha256: 5bdc5ca29837e2b9a4c267ee0a52774a5d6d80ceb838ca86868a73d3ccb91a99

Contents?: true

Size: 337 Bytes

Versions: 2

Compression:

Stored size: 337 Bytes

Contents

class ImageTitleScreen < PM::Screen
  attr_accessor :button_was_triggered

  title 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_title_screen.rb
ProMotion-1.2.0 spec/helpers/image_title_screen.rb