Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
UIView subclass to easily show a cool animated photo carrusel
branch: master

This branch is 30 commits behind JaviSoto:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
AnimatedImagesViewSampleApp
.gitignore
JSAnimatedImagesView.h
JSAnimatedImagesView.m
README.markdown

README.markdown

Description:

Easy to use UIView subclass to quickly add a cool animated carrusel of pictures to your app.

Sample:

Video

http://jsoto.es/xmKcLb

Usage:

(refer to the sample project)

/* .h file: */
#import "JSAnimatedImagesView.h"
@interface MyViewController <JSAnimatedImagesViewDelegate> // Conform to the protocol
.....

/* .m file: */
...

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];

    [self.animatedImagesView startAnimating];
}

- (void)viewDidDisappear:(BOOL)animated
{
    [super viewDidDisappear:animated];

    [self.animatedImagesView stopAnimating];
}

- (NSUInteger)animatedImagesNumberOfImages:(JSAnimatedImagesView *)animatedImagesView
{
    return self.myImageNames.count;
}

- (UIImage *)animatedImagesView:(JSAnimatedImagesView *)animatedImagesView imageAtIndex:(NSUInteger)index
{
    return [UIImage imageNamed:[self.myImageNames objectAtIndex:index]];
}
...

Attributions (Creative Commons Images)

License

Copyright 2012 Javier Soto (ios@javisoto.es)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Something went wrong with that request. Please try again.