var myLoadingView:UILabel!
myLoadingView = UILabel(frame:CGRectMake(self.view.frame.size.width/2-50,self.view.frame.size.height/2-50,100,50))
myLoadingView.text = mymsg
myLoadingView.textColor =UIColor.redColor()
myLoadingView.backgroundColor =UIColor.blackColor()
myLoadingView.alpha =0.8
myLoadingView.layer.cornerRadius =4.0
myLoadingView.hidden =false
myLoadingView.textAlignment=NSTextAlignment.Center//内容水平居中
self.view.addSubview(myLoadingView);