我搜索过这个网站和谷歌,但似乎无法弄清楚如何让这个工作.我正在尝试使用PHP脚本登录popads.net,因此我可以将我的网站收入汇总到一个页面上.但这个网站给我带来了麻烦.谁能看到我做错了什么?
<?php
//username and password of account
$username = 'myusername';
$password = 'mypassword';
//set the directory for the cookie using defined document root var
$path = DOC_ROOT."/ctemp";
//login form action url
$url="https://www.popads.net/users/login";
$postinfo = "data[User][username]=".$username."&data[User][password]=".$password;
$cookie_file_path = $path."/cookie.txt";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_NOBODY, false);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
//set the cookie the site has for certain features, this is optional
curl_setopt($ch, CURLOPT_COOKIE, "cookiename=0");
curl_setopt($ch, CURLOPT_USERAGENT,
"Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; …Run Code Online (Sandbox Code Playgroud)我正在按照教程制作一个非常简单的游戏,但我遇到了一个我无法弄清楚的问题.当我将我的按钮放在编辑器屏幕上时它看起来很好,但是然后在模拟器中运行应用程序似乎搞砸了所有:

我正在运行最新版本的XCode.