如何写这个if-condition for real?

时间:2011-10-29 09:53:51

标签: iphone objective-c ios ipad

我怎么能用实际代码写这个?

if (!UIImageView with origin.x > 50.0) {
    //Exlcude the imageview from whatever happens in this statement.
}

1 个答案:

答案 0 :(得分:4)

if (imageView.frame.origin.x <= 50.0) {

    // The code in this block won't bother the image views 
    // with 'x > 50.0' anymore
}