motion/core/kvo.rb in bubble-wrap-1.0.0.pre.2 vs motion/core/kvo.rb in bubble-wrap-1.0.0

- old
+ new

@@ -2,10 +2,12 @@ # # class ExampleViewController < UIViewController # include BW::KVO # # def viewDidLoad -# @label = create_ui_label() +# @label = UILabel.alloc.initWithFrame [[20,20],[280,44]] +# @label.text = "" +# view.addSubview @label # # observe(@label, "text") do |old_value, new_value| # puts "Changed #{old_value} to #{new_value}" # end # end