AsyncMediaSlider 0.2.0

AsyncMediaSlider 0.2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2015

Maintained by Jacob Andersson, Hyper Interaktiv AS.



Usage

In your View Controller:

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor blackColor];

    self.mediaPageViewController = [HYPMediaPageViewController new];

    [self.mediaPageViewController setImageURLStrings:@[@"http://lorempixel.com/640/640/sports",
                                                       @"http://lorempixel.com/g/640/640/transport",
                                                       @"http://lorempixel.com/640/640/food/"]
                             andPlaceholderImage:[UIImage imageNamed:@"hypPlaceholderImage"]];

    self.mediaPageViewController.view.frame = CGRectMake(0.0f, 0.0f, CGRectGetWidth(self.view.bounds), HYPMediaPageViewHeight);
    self.mediaPageViewController.view.center = self.view.center;

    [self.view addSubview:self.mediaPageViewController.view];
}

Installation

AsyncMediaSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AsyncMediaSlider'

Author

Hyper Interaktiv AS, [email protected]

License

AsyncMediaSlider is available under the MIT license. See the LICENSE file for more info.