-1
我怎樣才能在真實的代碼中寫這個?如何寫這個if條件爲真?
if (!UIImageView with origin.x > 50.0) {
//Exlcude the imageview from whatever happens in this statement.
}
我怎樣才能在真實的代碼中寫這個?如何寫這個if條件爲真?
if (!UIImageView with origin.x > 50.0) {
//Exlcude the imageview from whatever happens in this statement.
}
if (imageView.frame.origin.x <= 50.0) {
// The code in this block won't bother the image views
// with 'x > 50.0' anymore
}
我一直在這樣做,但它不工作的權利,所以我想我可能會做一些錯誤。我意識到這只是我在if語句中包含的另一個邏輯,它使它無法工作。已經很晚了,我覺得很愚蠢。 ;-) – Jason