Method: ChaWork::Basic#loading_view

Defined in:
lib/cha_work/basic.rb

#loading_view(height = nil) ⇒ Object



512
513
514
515
516
517
518
519
520
521
522
# File 'lib/cha_work/basic.rb', line 512

def loading_view(height=nil)
  height = height || self.view.frame.size.height
  bg     = create_view("0,0,320,#{height}", '#FFFFFF', 0)

  progressInd       = UIActivityIndicatorView.alloc.initWithActivityIndicatorStyle(UIActivityIndicatorViewStyleGray)
  bg.addSubview progressInd
  progressInd.center= [110, height/2]
  progressInd.startAnimating
  bg.addSubview label('请稍后...', [[130, height/2-7], [100,16]], 16, false, '#878787')
  bg
end