Class: MotionWechat::Delegate

Inherits:
Object
  • Object
show all
Defined in:
lib/motion_wechat/delegate.rb

Instance Method Summary collapse

Instance Method Details

#onReqObject



4
5
6
7
8
9
# File 'lib/motion_wechat/delegate.rb', line 4

def onReq
  title = 'onReq'
  msg = 'onReq message'
  alert = UIAlertView.alloc.initWithTitle(title, message:msg, delegate:self, cancelButtonTitle:"OK", otherButtonTitles:nil)
  alert.show
end

#onRespObject



11
12
13
14
15
16
# File 'lib/motion_wechat/delegate.rb', line 11

def onResp
  title = "onResp"
  msg = 'onResp message'
  alert = UIAlertView.alloc.initWithTitle(title, message:msg, delegate:self, cancelButtonTitle:"OK", otherButtonTitles:nil)
  alert.show
end