我下面的教程,我在这行代码有点糊涂了......教程CGRectMake了解
sideView.frame = CGRectMake(gesture.direction == UISwipeGestureRecognizerDirectionRight ? -swipedCell.frame.size.width : swipedCell.frame.size.width, swipedCell.frame.origin.y, swipedCell.frame.size.width, swipedCell.frame.size.height);
是什么gesture.direction == UISwipeGestureRecognizerDirectionRight ? -swipedCell.frame.size.width :
意思?
我从来没有见过我的经历。在本声明中==
和? -
和:
是什么意思?或者你能解释一切吗?如果我向左滑动,这会构成框架,对吧?
非常感谢。
@Matthias,但我不只是在问这个问题,我想知道它的方向和线的含义。 –