1. Simple and easy-to-effect code
2. The main use of the Scrollviewdidscroll proxy method code is as follows
-(void) Scrollviewdidscroll: (Uiscrollview *) scrollview{ float BIGX = _fscrollview.bounds.size.width/_ SScrollView.bounds.size.width; float Littlex = _sscrollview.bounds.size.width/_fscrollview.bounds.size.width; if (ScrollView = = _fscrollview) { _sscrollview.delegate = nil; _sscrollview.contentoffset = Cgpointmake (Scrollview.contentoffset.x * Littlex, SCROLLVIEW.CONTENTOFFSET.Y); _sscrollview.delegate = self; } else { _fscrollview.delegate = nil; _fscrollview.contentoffset = Cgpointmake (Scrollview.contentoffset.x * BIGX, SCROLLVIEW.CONTENTOFFSET.Y); _fscrollview.delegate = self; }}
3.demo (This function is actually very widely used)
Http://pan.baidu.com/s/1i3vFFaH
PS: Say some off-topic, found before the writing is all kinds of effects, in fact, are very basic things. Recently more impetuous, to precipitate precipitation