func showMessage()->String
{
//sign up
user.signUpInBackgroundWithBlock { (successed, error) in
if error == nil
{
dispatch_async(dispatch_get_main_queue(), {
//load UI
self.message = ErrorTypeValue.showMessageWithError(error) as String
})
}else
{
dispatch_async(dispatch_get_main_queue(), {
//load UI
self.showSuccess = true
self.message = self.showSuccessMessage()
})
}
}
return self.message!
}