Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Subclass of UIScrollView with custom timing function for animation of setContentOffset

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 MOScrollView.xcodeproj
Octocat-spinner-32 MOScrollView
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Warnings.xcconfig
README.markdown

MOScrollView

Introduction

Subclass of UIScrollView that, in contrast to UIScrollView, uses a custom timing function to animate setContentOffset.

Features

Provides methods

- (void)setContentOffset:(CGPoint)contentOffset 
      withTimingFunction:(CAMediaTimingFunction *)timingFunction

and

- (void)setContentOffset:(CGPoint)contentOffset 
      withTimingFunction:(CAMediaTimingFunction *)timingFunction
                duration:(CFTimeInterval)duration

Usage

Simply import MOScrollView.h and MOScrollView.m into your project. The implementation uses a CADisplayLink, therefore, you have to add the QuartzCore library to your project. As the class uses automatic refernce counting either your project has to use automatic reference counting as well or you have to enable automatic reference counting for MOScrollView.m by adding -fobjc-arc as compiler flag in Build Phases options.

Requirements

XCode 4.2 or later and iOS 4 or later as the module uses automatic reference counting.

License

MOScrollView is released under Modified BSD License.

Something went wrong with that request. Please try again.