Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/107.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UITableView翻译_Ios_Objective C_Uitableview - Fatal编程技术网

Ios UITableView翻译

Ios UITableView翻译,ios,objective-c,uitableview,Ios,Objective C,Uitableview,我试图补偿tableView的反弹效果,以满足动画的需要。我在scrollViewDidScroll:中有此代码: if (scrollView.contentOffset.y < 0) { //Scale a subview of my topCell CGFloat scale = 1 + (abs(MIN(scrollView.contentOffset.y,0))/self.tableView.frame.size.height); [topCell sc

我试图补偿tableView的反弹效果,以满足动画的需要。我在
scrollViewDidScroll:
中有此代码:

if (scrollView.contentOffset.y < 0) {

    //Scale a subview of my topCell
    CGFloat scale = 1 + (abs(MIN(scrollView.contentOffset.y,0))/self.tableView.frame.size.height);
    [topCell scaleCellWithFloat:scale];

    //Compensate the bouncing effect            
    self.tableView.transform = CGAffineTransformMakeTranslation(0, MIN(scrollView.contentOffset.y, 0));
}
if(scrollView.contentOffset.y<0){
//缩放我的topCell的子视图
CGFloat scale=1+(abs(最小值(scrollView.contentOffset.y,0))/self.tableView.frame.size.height);
[topCell scaleCellWithFloat:scale];
//补偿反弹效应
self.tableView.transform=CGAffineTransformMakeTranslation(0,MIN(scrollView.contentOffset.y,0));
}
问题是tableView的底部正在上升。你知道怎么解决这个问题吗