我在laravel项目中添加了一个包,什么时候@IBOutlet weak var usernameTextField: UITextField!
// `passwordTextField.secureTextEntry = true`
@IBOutlet weak var passwordTextField: UITextField!
@IBOutlet weak var webView: UIWebView!
...
@IBAction func signIn(sender: AnyObject) {
var url = NSURL(string: "http://webgiz.faqserv.com/webgiz/index.php")
var request = NSMutableURLRequest(URL: url!)
request.HTTPMethod = "POST"
// Get the user's credentials from the `UITextField`s
var username: String = usernameTextField.text
var password: String = passwordTextField.text
// Concatenating everything together
var userCredentials: String = "username=\(username)&passwd=\(password)&userType=A&instituicao=0" // add all parameters needed
var bodyData: String = "\(userCredentials)"
// Encode the bodyData string into a
request.HTTPBody = bodyData.dataUsingEncoding(NSUTF8StringEncoding)
// load the UIWebView `webView` with this request
webView.loadRequest(request)
}
我收到以下错误:
composer update
有趣的是,我知道我正在使用scotchbox。
任何人都知道如何解决这个问题? 非常感谢提前!!
答案 0 :(得分:2)
试试这个:
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors