Method: ChaWork::Basic#textview

Defined in:
lib/cha_work/basic.rb

#textview(args = {}) ⇒ Object



420
421
422
423
424
425
426
427
# File 'lib/cha_work/basic.rb', line 420

def textview(args={})
  frame = get_frame(args[:frame])
  tv = UITextView.alloc.initWithFrame(frame)
  tv.font = UIFont.systemFontOfSize(args[:font_size]) if args[:font_size]
  tv.layer.cornerRadius = args[:radius] if args[:radius]
  tv.delegate = self
  tv
end