예전에, 팀원 분이 물어봤었는데, 찾아보지도 않고, 경험상 잘 모르겠다고만 답변하고 넘어갔었던 문제를
오늘 내가 부딪치게 되었다 ㅠ_ㅠ
근데 간단히 해결했다 ㅋㅋㅋ 옆에 계신 차장님의 도움으로 ㅎㅎ
원인은, 하나의 뷰에 여러개의 스크롤 뷰를 사용했을 경우에, 한곳에서만 이벤트를 받기때문인데,
속성으로 간단히 제어가 가능하다.
API를 찾아보면,
http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIScrollView_Class/Reference/UIScrollView.html
UIScrollView.h
이를 이용하면 되는것이다. ㅎㅎ
간단히 해결! -_-!
오늘 내가 부딪치게 되었다 ㅠ_ㅠ
근데 간단히 해결했다 ㅋㅋㅋ 옆에 계신 차장님의 도움으로 ㅎㅎ
원인은, 하나의 뷰에 여러개의 스크롤 뷰를 사용했을 경우에, 한곳에서만 이벤트를 받기때문인데,
속성으로 간단히 제어가 가능하다.
API를 찾아보면,
http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIScrollView_Class/Reference/UIScrollView.html
scrollsToTop
A Boolean value that controls whether the scroll-to-top gesture is effective
@property(nonatomic) BOOL scrollsToTop
Discussion
The scroll-to-top gesture is a tap on the status bar; when this property is YES, the scroll view jumps to the top of the content when this gesture occurs. The default value of this property is YES.
This gesture works on a single visible scroll view; if there are multiple scroll views (for example, a date picker) with this property set, or if the delegate returns NO in scrollViewShouldScrollToTop:, UIScrollView ignores the request. After the scroll view scrolls to the top of the content view, it sends the delegate a scrollViewDidScrollToTop: message.
Availability
- Available in iOS 2.0 and later.
Declared In
이를 이용하면 되는것이다. ㅎㅎ
간단히 해결! -_-!
'mobile > ios' 카테고리의 다른 글
| [iOS] StatusBar를 눌렀는데, TableView 상단으로 이동하지 않아요!!! T_T (0) | 2011/10/19 |
|---|---|
| NSString 을 UTF-8로 encode / decode 하기 (0) | 2011/09/30 |
| [ios4 이상] Photo Library 에서 데이터 가져오기 (0) | 2011/09/22 |
| JSONKit... 만약 정말 빠른 파서를 찾는다면... (0) | 2011/09/21 |
| UITapGestureRecognizer singleTap 과 doubleTap 구분하기 (0) | 2011/09/08 |
| UITableView Scroll 최상단으로 이동하기. (0) | 2011/05/12 |




댓글을 달아 주세요