Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.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 触摸状态栏时,UIScrollView滚动到底部_Ios_Objective C_User Interface_Uiscrollview - Fatal编程技术网

Ios 触摸状态栏时,UIScrollView滚动到底部

Ios 触摸状态栏时,UIScrollView滚动到底部,ios,objective-c,user-interface,uiscrollview,Ios,Objective C,User Interface,Uiscrollview,我想知道当触摸状态栏时如何滚动到UIScrollView的底部。我熟悉UIScrollView中的@property(非原子)BOOL ScrollStop方法,但这不是我想要的 我这里也有这个方法,当视图加载时自动滚动到底部。有什么想法吗 -(void)scrollToBottom{ CGPoint bottomOffset = CGPointMake(0, scroller.contentSize.height - scroller.bounds.size.height); [scrolle

我想知道当触摸状态栏时如何滚动到UIScrollView的底部。我熟悉UIScrollView中的@property(非原子)BOOL ScrollStop方法,但这不是我想要的

我这里也有这个方法,当视图加载时自动滚动到底部。有什么想法吗

-(void)scrollToBottom{
CGPoint bottomOffset = CGPointMake(0, scroller.contentSize.height - scroller.bounds.size.height);
[scroller setContentOffset:bottomOffset animated:YES];
}
类似于。这里建议在状态栏上使用透明的UIView并检测触摸