Permalink
Browse files

update description

  • Loading branch information...
1 parent 6718f34 commit e7f6c4e0f004fec530535804824f9c554142d882 @toco toco committed Feb 7, 2014
@@ -1,17 +1,11 @@
-#
-# Be sure to run `pod spec lint NAME.podspec' to ensure this is a
-# valid spec and remove all comments before submitting the spec.
-#
-# To learn more about the attributes see http://guides.cocoapods.org/syntax/podspec.html
-#
+
Pod::Spec.new do |s|
s.name = "APLPageViewControllerDataSource"
s.version = "0.1.0"
s.summary = "APLPageViewControllerDataSource is an array based data source for UIPageViewController."
-# s.description = <<-DESC
-# DESC
- s.homepage = "http://EXAMPLE/NAME"
- s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
+ s.description = <<-DESC
+ APLPageViewControllerDataSource provides an index based API on top of the viewControllerBeforeViewController and viewControllerAfterViewController API of UIPageViewController.
+ DESC
s.license = 'MIT'
s.author = { "Tobias Conradi" => "tconradi@apploft.de" }
s.source = { :git => "https://github.com/apploft/APLPageViewControllerDataSource.git", :tag => s.version.to_s }
@@ -48,8 +48,7 @@ - (IBAction)cirularSwitchChanged:(UISwitch*)sender {
#pragma mark - APLPageViewControllerDataSourceDelegate
- (UIViewController*)pageViewControllerDataSource:(APLPageViewControllerDataSource *)dataSource contentViewControllerForIndex:(NSUInteger)index {
APLContentViewController *detailViewController = [APLContentViewController instantiateFromStoryboard];
- id item = dataSource.objects[index];
- detailViewController.item = item;
+ detailViewController.item = dataSource.objects[index];
return detailViewController;
}
View
@@ -3,6 +3,7 @@
[![Version](http://cocoapod-badges.herokuapp.com/v/APLPageViewControllerDataSource/badge.png)](http://cocoadocs.org/docsets/APLPageViewControllerDataSource)
[![Platform](http://cocoapod-badges.herokuapp.com/p/APLPageViewControllerDataSource/badge.png)](http://cocoadocs.org/docsets/APLPageViewControllerDataSource)
+APLPageViewControllerDataSource provides an index based API on top of the viewControllerBeforeViewController and viewControllerAfterViewController API of UIPageViewController.
## Installation
@@ -33,8 +34,7 @@ Declare the protocol methods required to configure the view controller
- (UIViewController*)pageViewControllerDataSource:(APLPageViewControllerDataSource *)dataSource contentViewControllerForIndex:(NSUInteger)index {
APLContentViewController *detailViewController = [APLContentViewController instantiateFromStoryboard]; // use your own content view controller class
- id item = dataSource.objects[index];
- detailViewController.item = item; // configure your view controller
+ detailViewController.item = dataSource.objects[index]; // configure your view controller
return detailViewController;
}

0 comments on commit e7f6c4e

Please sign in to comment.