在互聯網上查找aprox後。 1/2小時 我已經來了。更改xcode上圖像的x值?
-(IBAction)left
{
img.center.x = img.center.x floatValue]-30;
}
在此將一個理想的世界
: 當按鈕被點擊時它會將圖像30個像素的左邊
但我們不是生活在一個理想的世界,所以當我打了構建和運行它出現了2個錯誤...
error: cannot convert to a pointer type
error: lvalue required as left operand of assignment
任何結果或洞察到問題將大大得到。
非常感謝。 – user1305661
不要忘記接受答案:) – Saphrosit