[
  {
    "path": ".gitignore",
    "content": "# Xcode\n.DS_Store\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\n*.xcworkspace\n!default.xcworkspace\nxcuserdata\nprofile\n*.moved-aside\nDerivedData\n.idea/\n"
  },
  {
    "path": "DAPagesContainer/DAPageIndicatorView.h",
    "content": "//\n//  DAPageIndicatorView.h\n//  DAPagesContainerScrollView\n//\n//  Created by Daria Kopaliani on 5/29/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@interface DAPageIndicatorView : UIView\n\n@property (strong, nonatomic) UIColor *color;\n\n@end\n"
  },
  {
    "path": "DAPagesContainer/DAPageIndicatorView.m",
    "content": "//\n//  DAPageIndicatorView.m\n//  DAPagesContainerScrollView\n//\n//  Created by Daria Kopaliani on 5/29/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import \"DAPageIndicatorView.h\"\n\n\n@implementation DAPageIndicatorView\n\n- (id)initWithFrame:(CGRect)frame\n{\n    self = [super initWithFrame:frame];\n    if (self) {\n        self.opaque = NO;\n        _color = [UIColor blackColor];\n    }\n    return self;\n}\n\n#pragma mark - Public\n\n- (void)setColor:(UIColor *)color\n{\n    if (![_color isEqual:color]) {\n        _color = color;\n        [self setNeedsDisplay];\n    }\n}\n\n#pragma mark - Private\n\n- (void)drawRect:(CGRect)rect\n{\n    CGContextRef context = UIGraphicsGetCurrentContext();\n    \n    CGContextClearRect(context, rect);\n    \n    CGContextBeginPath(context);\n    CGContextMoveToPoint   (context, CGRectGetMinX(rect), CGRectGetMinY(rect));\n    CGContextAddLineToPoint(context, CGRectGetMidX(rect), CGRectGetMaxY(rect));\n    CGContextAddLineToPoint(context, CGRectGetMaxX(rect), CGRectGetMinY(rect));\n    CGContextClosePath(context);\n    \n    CGContextSetFillColorWithColor(context, self.color.CGColor);\n    CGContextFillPath(context);\n}\n\n\n@end"
  },
  {
    "path": "DAPagesContainer/DAPagesContainer.h",
    "content": "//\n//  DAPageContainerScrollView.h\n//  DAPagesContainerScrollView\n//\n//  Created by Daria Kopaliani on 5/29/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@interface DAPagesContainer : UIViewController\n\n/**\n The view controllers to be displayed in DAPagesContainer in order they appear in this array.\n @discussion view objects for all the view controllers will be resized to fit the container bounds together with topBar. Normally you should have more than one view controller.\n @warning all view controllers should have nonempty titles which are displayed in the top bar.\n */\n@property (strong, nonatomic) NSArray *viewControllers;\n\n/**\n An index of the selected view controller.\n */\n@property (assign, nonatomic) NSUInteger selectedIndex;\n\n/**\n A hight of the top bar. Every time this value is changed, view objects for all the view controllers are resized.\n This is 44. by default.\n */\n@property (assign, nonatomic) NSUInteger topBarHeight;\n\n/**\n An optional image page for the page indicator view\n This is {22., 9.} by default.\n */\n@property (strong, nonatomic) UIImage *pageIndicatorImage;\n\n/**\n A size of the page indicator view.\n@discussion if this property is not nil 'pageIndicatorViewSize' property value will be ignored, size for the page indicator image view will equal the size of 'pageIndicatorImage'\n */\n@property (assign, nonatomic) CGSize pageIndicatorViewSize;\n\n/**\n An optional background image of the top bar.\n */\n@property (strong, nonatomic) UIImage *topBarBackgroundImage;\n\n/**\n A background color of the top bar.\n This is black by default.\n */\n@property (strong, nonatomic) UIColor *topBarBackgroundColor;\n\n/**\n A font for all the buttons displayed in the top bar.\n This is system font of sixe 12. by default.\n */\n@property (strong, nonatomic) UIFont *topBarItemLabelsFont;\n\n/**\n A color of all the view titles displayed on the top bar except for the selected one.\n This is light gray by default.\n */\n@property (strong, nonatomic) UIColor *pageItemsTitleColor;\n\n/**\n A color of the selected view titles displayed on the top bar.\n This is white by default.\n */\n@property (strong, nonatomic) UIColor *selectedPageItemTitleColor;\n\n/**\n Changes 'selectedIndex' property value and navigates to the newly selected view controller\n @param selectedIndex This mathod throws exeption if selectedIndex is out of range of the 'viewControllers' array\n @param animated Defines whether to present the corresponding view controller animated\n @discussion If 'animated' is YES and the newly selected view is not \"the closest neighbor\" of the previous selected view, all the intermediate views will be skipped for the sake of nice animation\n */\n- (void)setSelectedIndex:(NSUInteger)selectedIndex animated:(BOOL)animated;\n\n/**\n Makes sure that view objects for all the view controllers are properly resized to fit the container bounds after device orientation was changed\n */\n- (void)updateLayoutForNewOrientation:(UIInterfaceOrientation)orientation;\n\n@end"
  },
  {
    "path": "DAPagesContainer/DAPagesContainer.m",
    "content": "//\n//  DAPageContainerScrollView.m\n//  DAPagesContainerScrollView\n//\n//  Created by Daria Kopaliani on 5/29/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import \"DAPagesContainer.h\"\n\n#import \"DAPagesContainerTopBar.h\"\n#import \"DAPageIndicatorView.h\"\n\n\n@interface DAPagesContainer () <DAPagesContainerTopBarDelegate, UIScrollViewDelegate>\n\n@property (strong, nonatomic) DAPagesContainerTopBar *topBar;\n@property (strong, nonatomic) UIScrollView *scrollView;\n@property (weak,   nonatomic) UIScrollView *observingScrollView;\n@property (strong, nonatomic) UIView *pageIndicatorView;\n\n@property (          assign, nonatomic) BOOL shouldObserveContentOffset;\n@property (readonly, assign, nonatomic) CGFloat scrollWidth;\n@property (readonly, assign, nonatomic) CGFloat scrollHeight;\n\n- (void)layoutSubviews;\n- (void)startObservingContentOffsetForScrollView:(UIScrollView *)scrollView;\n- (void)stopObservingContentOffset;\n\n@end\n\n\n@implementation DAPagesContainer\n\n#pragma mark - Initialization\n\n- (id)init\n{\n    self = [super init];\n    if (self) {\n        [self setUp];\n    }\n    return self;\n}\n\n- (id)initWithCoder:(NSCoder *)aDecoder\n{\n    self = [super initWithCoder:aDecoder];\n    if (self) {\n        [self setUp];\n    }\n    return self;\n}\n\n- (void)dealloc\n{\n    [self stopObservingContentOffset];\n}\n\n- (void)setUp\n{\n    _topBarHeight = 44.;\n    _topBarBackgroundColor = [UIColor colorWithWhite:0.1 alpha:1.];\n    _topBarItemLabelsFont = [UIFont systemFontOfSize:12];\n    _pageIndicatorViewSize = CGSizeMake(22., 9.);\n    self.pageItemsTitleColor = [UIColor lightGrayColor];\n    self.selectedPageItemTitleColor = [UIColor whiteColor];\n}\n\n#pragma mark - View life cycle\n\n- (void)viewDidLoad\n{\n    [super viewDidLoad];\n    self.shouldObserveContentOffset = YES;\n    \n    self.scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0.,\n                                                                     self.topBarHeight,\n                                                                     CGRectGetWidth(self.view.frame),\n                                                                     CGRectGetHeight(self.view.frame) - self.topBarHeight)];\n    self.scrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;\n    self.scrollView.delegate = self;\n    self.scrollView.pagingEnabled = YES;\n    self.scrollView.showsHorizontalScrollIndicator = NO;\n    [self.view addSubview:self.scrollView];\n    [self startObservingContentOffsetForScrollView:self.scrollView];\n    \n    self.topBar = [[DAPagesContainerTopBar alloc] initWithFrame:CGRectMake(0.,\n                                                                           0.,\n                                                                           CGRectGetWidth(self.view.frame),\n                                                                           self.topBarHeight)];\n    self.topBar.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleWidth;\n    self.topBar.itemTitleColor = self.pageItemsTitleColor;\n    self.topBar.delegate = self;\n    [self.view addSubview:self.topBar];\n    self.topBar.backgroundColor = self.topBarBackgroundColor;\n}\n\n- (void)viewDidUnload\n{\n    [self stopObservingContentOffset];\n    self.scrollView = nil;\n    self.topBar = nil;\n    self.pageIndicatorView = nil;\n    [super viewDidUnload];\n}\n\n- (void)viewWillAppear:(BOOL)animated\n{\n    [super viewWillAppear:animated];\n    [self layoutSubviews];\n}\n\n#pragma mark - Public\n\n- (void)setSelectedIndex:(NSUInteger)selectedIndex animated:(BOOL)animated\n{\n    NSAssert(selectedIndex < self.viewControllers.count, @\"selectedIndex should belong within the range of the view controllers array\");\n    UIButton *previosSelectdItem = self.topBar.itemViews[self.selectedIndex];\n    UIButton *nextSelectdItem = self.topBar.itemViews[selectedIndex];\n    if (abs(self.selectedIndex - selectedIndex) <= 1) {\n        [self.scrollView setContentOffset:CGPointMake(selectedIndex * self.scrollWidth, 0.) animated:animated];\n        if (selectedIndex == _selectedIndex) {\n            self.pageIndicatorView.center = CGPointMake([self.topBar centerForSelectedItemAtIndex:selectedIndex].x,\n                                                        [self pageIndicatorCenterY]);\n        }\n        [UIView animateWithDuration:(animated) ? 0.3 : 0. delay:0. options:UIViewAnimationOptionBeginFromCurrentState animations:^\n         {\n             [previosSelectdItem setTitleColor:self.pageItemsTitleColor forState:UIControlStateNormal];\n             [nextSelectdItem setTitleColor:self.selectedPageItemTitleColor forState:UIControlStateNormal];\n         } completion:nil];\n    } else {\n        // This means we should \"jump\" over at least one view controller\n        self.shouldObserveContentOffset = NO;\n        BOOL scrollingRight = (selectedIndex > self.selectedIndex);\n        UIViewController *leftViewController = self.viewControllers[MIN(self.selectedIndex, selectedIndex)];\n        UIViewController *rightViewController = self.viewControllers[MAX(self.selectedIndex, selectedIndex)];\n        leftViewController.view.frame = CGRectMake(0., 0., self.scrollWidth, self.scrollHeight);\n        rightViewController.view.frame = CGRectMake(self.scrollWidth, 0., self.scrollWidth, self.scrollHeight);\n        self.scrollView.contentSize = CGSizeMake(2 * self.scrollWidth, self.scrollHeight);\n        \n        CGPoint targetOffset;\n        if (scrollingRight) {\n            self.scrollView.contentOffset = CGPointZero;\n            targetOffset = CGPointMake(self.scrollWidth, 0.);\n        } else {\n            self.scrollView.contentOffset = CGPointMake(self.scrollWidth, 0.);\n            targetOffset = CGPointZero;\n            \n        }\n        [self.scrollView setContentOffset:targetOffset animated:YES];\n        [UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionBeginFromCurrentState animations:^{\n            self.pageIndicatorView.center = CGPointMake([self.topBar centerForSelectedItemAtIndex:selectedIndex].x,\n                                                        [self pageIndicatorCenterY]);\n            self.topBar.scrollView.contentOffset = [self.topBar contentOffsetForSelectedItemAtIndex:selectedIndex];\n            [previosSelectdItem setTitleColor:self.pageItemsTitleColor forState:UIControlStateNormal];\n            [nextSelectdItem setTitleColor:self.selectedPageItemTitleColor forState:UIControlStateNormal];\n        } completion:^(BOOL finished) {\n            for (NSUInteger i = 0; i < self.viewControllers.count; i++) {\n                UIViewController *viewController = self.viewControllers[i];\n                viewController.view.frame = CGRectMake(i * self.scrollWidth, 0., self.scrollWidth, self.scrollHeight);\n                [self.scrollView addSubview:viewController.view];\n            }\n            self.scrollView.contentSize = CGSizeMake(self.scrollWidth * self.viewControllers.count, self.scrollHeight);\n            [self.scrollView setContentOffset:CGPointMake(selectedIndex * self.scrollWidth, 0.) animated:NO];\n            self.scrollView.userInteractionEnabled = YES;\n            self.shouldObserveContentOffset = YES;\n        }];\n    }\n    _selectedIndex = selectedIndex;\n}\n\n- (void)updateLayoutForNewOrientation:(UIInterfaceOrientation)orientation\n{\n    [self layoutSubviews];\n}\n\n#pragma mark * Overwritten setters\n\n- (void)setPageIndicatorViewSize:(CGSize)size\n{\n    if ([self.pageIndicatorView isKindOfClass:[DAPageIndicatorView class]]) {\n        if (!CGSizeEqualToSize(self.pageIndicatorView.frame.size, size)) {\n            _pageIndicatorViewSize = size;\n            [self layoutSubviews];\n        }\n    }\n}\n\n- (void)setPageItemsTitleColor:(UIColor *)pageItemsTitleColor\n{\n    if (![_pageItemsTitleColor isEqual:pageItemsTitleColor]) {\n        _pageItemsTitleColor = pageItemsTitleColor;\n        self.topBar.itemTitleColor = pageItemsTitleColor;\n        [self.topBar.itemViews[self.selectedIndex] setTitleColor:self.selectedPageItemTitleColor forState:UIControlStateNormal];\n    }\n}\n\n- (void)setSelectedIndex:(NSUInteger)selectedIndex\n{\n    [self setSelectedIndex:selectedIndex animated:NO];\n}\n\n- (void)setSelectedPageItemTitleColor:(UIColor *)selectedPageItemTitleColor\n{\n    if (![_selectedPageItemTitleColor isEqual:selectedPageItemTitleColor]) {\n        _selectedPageItemTitleColor = selectedPageItemTitleColor;\n        [self.topBar.itemViews[self.selectedIndex] setTitleColor:selectedPageItemTitleColor forState:UIControlStateNormal];\n    }\n}\n\n- (void)setTopBarBackgroundColor:(UIColor *)topBarBackgroundColor\n{\n    _topBarBackgroundColor = topBarBackgroundColor;\n    self.topBar.backgroundColor = topBarBackgroundColor;\n    if ([self.pageIndicatorView isKindOfClass:[DAPageIndicatorView class]]) {\n        [(DAPageIndicatorView *)self.pageIndicatorView setColor:topBarBackgroundColor];\n    }\n}\n\n- (void)setTopBarBackgroundImage:(UIImage *)topBarBackgroundImage\n{\n    self.topBar.backgroundImage = topBarBackgroundImage;\n}\n\n- (void)setTopBarHeight:(NSUInteger)topBarHeight\n{\n    if (_topBarHeight != topBarHeight) {\n        _topBarHeight = topBarHeight;\n        [self layoutSubviews];\n    }\n}\n\n- (void)setTopBarItemLabelsFont:(UIFont *)font\n{\n    self.topBar.font = font;\n}\n\n- (void)setViewControllers:(NSArray *)viewControllers\n{\n    if (_viewControllers != viewControllers) {\n        _viewControllers = viewControllers;\n        self.topBar.itemTitles = [viewControllers valueForKey:@\"title\"];\n        for (UIViewController *viewController in viewControllers) {\n            [viewController willMoveToParentViewController:self];\n            viewController.view.frame = CGRectMake(0., 0., CGRectGetWidth(self.scrollView.frame), self.scrollHeight);\n            [self.scrollView addSubview:viewController.view];\n            [viewController didMoveToParentViewController:self];\n        }\n        [self layoutSubviews];\n        self.selectedIndex = 0;\n        self.pageIndicatorView.center = CGPointMake([self.topBar centerForSelectedItemAtIndex:self.selectedIndex].x,\n                                                    [self pageIndicatorCenterY]);\n    }\n}\n\n- (void)setPageIndicatorImage:(UIImage *)pageIndicatorImage\n{\n    _pageIndicatorImage = pageIndicatorImage;\n    self.pageIndicatorViewSize = (pageIndicatorImage) ? pageIndicatorImage.size : self.pageIndicatorViewSize;\n    if ((pageIndicatorImage && [self.pageIndicatorView isKindOfClass:[DAPageIndicatorView class]]) || (!pageIndicatorImage && [self.pageIndicatorView isKindOfClass:[UIImageView class]])) {\n        [self.pageIndicatorView removeFromSuperview];\n        self.pageIndicatorView = nil;\n    }\n    if (pageIndicatorImage) {\n        if ([self.pageIndicatorView isKindOfClass:[DAPageIndicatorView class]]) {\n            [self.pageIndicatorView removeFromSuperview];\n            self.pageIndicatorView = nil;\n        }\n        [(UIImageView *)self.pageIndicatorView setImage:pageIndicatorImage];\n    } else {\n        if ([self.pageIndicatorView isKindOfClass:[UIImageView class]]) {\n            [self.pageIndicatorView removeFromSuperview];\n            self.pageIndicatorView = nil;\n        }\n        [(DAPageIndicatorView *)self.pageIndicatorView setColor:self.topBarBackgroundColor];\n    }\n}\n\n#pragma mark - Private\n\n- (void)layoutSubviews\n{\n    self.topBar.frame = CGRectMake(0., 0., CGRectGetWidth(self.view.bounds), self.topBarHeight);\n    CGFloat x = 0.;\n    for (UIViewController *viewController in self.viewControllers) {\n        viewController.view.frame = CGRectMake(x, 0, CGRectGetWidth(self.scrollView.frame), self.scrollHeight);\n        x += CGRectGetWidth(self.scrollView.frame);\n    }\n    self.scrollView.contentSize = CGSizeMake(x, self.scrollHeight);\n    [self.scrollView setContentOffset:CGPointMake(self.selectedIndex * self.scrollWidth, 0.) animated:YES];\n    self.pageIndicatorView.center = CGPointMake([self.topBar centerForSelectedItemAtIndex:self.selectedIndex].x,\n                                                [self pageIndicatorCenterY]);\n    self.topBar.scrollView.contentOffset = [self.topBar contentOffsetForSelectedItemAtIndex:self.selectedIndex];\n    self.scrollView.userInteractionEnabled = YES;\n}\n\n- (CGFloat)pageIndicatorCenterY\n{\n    return CGRectGetMaxY(self.topBar.frame) - 2. + CGRectGetHeight(self.pageIndicatorView.frame) / 2.;\n}\n\n- (UIView *)pageIndicatorView\n{\n    if (!_pageIndicatorView) {\n        if (self.pageIndicatorImage) {\n            _pageIndicatorView = [[UIImageView alloc] initWithImage:self.pageIndicatorImage];\n        } else {\n            _pageIndicatorView = [[DAPageIndicatorView alloc] initWithFrame:CGRectMake(0.,\n                                                                                       44,\n                                                                                       self.pageIndicatorViewSize.width,\n                                                                                       self.pageIndicatorViewSize.height)];\n            [(DAPageIndicatorView *)_pageIndicatorView setColor:self.topBarBackgroundColor];\n        }\n        [self.view addSubview:self.pageIndicatorView];\n    }\n    return _pageIndicatorView;\n}\n\n- (CGFloat)scrollHeight\n{\n    return CGRectGetHeight(self.view.frame) - self.topBarHeight;\n}\n\n- (CGFloat)scrollWidth\n{\n    return CGRectGetWidth(self.scrollView.frame);\n}\n\n- (void)startObservingContentOffsetForScrollView:(UIScrollView *)scrollView\n{\n    [scrollView addObserver:self forKeyPath:@\"contentOffset\" options:0 context:nil];\n    self.observingScrollView = scrollView;\n}\n\n- (void)stopObservingContentOffset\n{\n    if (self.observingScrollView) {\n        [self.observingScrollView removeObserver:self forKeyPath:@\"contentOffset\"];\n        self.observingScrollView = nil;\n    }\n}\n\n#pragma mark - DAPagesContainerTopBar delegate\n\n- (void)itemAtIndex:(NSUInteger)index didSelectInPagesContainerTopBar:(DAPagesContainerTopBar *)bar\n{\n    [self setSelectedIndex:index animated:YES];\n}\n\n#pragma mark - UIScrollView delegate\n\n- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView\n{\n    self.selectedIndex = scrollView.contentOffset.x / CGRectGetWidth(self.scrollView.frame);\n    self.scrollView.userInteractionEnabled = YES;\n}\n\n- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate\n{\n    if (!decelerate) {\n        self.scrollView.userInteractionEnabled = YES;\n    }\n}\n\n- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView\n{\n    self.scrollView.userInteractionEnabled = YES;\n}\n\n- (void)scrollViewDidScroll:(UIScrollView *)scrollView\n{\n    self.scrollView.userInteractionEnabled = NO;\n}\n\n#pragma mark - KVO\n\n- (void)observeValueForKeyPath:(NSString *)keyPath\n\t\t\t\t\t  ofObject:(id)object\n\t\t\t\t\t\tchange:(NSDictionary *)change\n                       context:(void *)context\n{\n    \n    CGFloat oldX = self.selectedIndex * CGRectGetWidth(self.scrollView.frame);\n    if (oldX != self.scrollView.contentOffset.x && self.shouldObserveContentOffset) {\n        BOOL scrollingTowards = (self.scrollView.contentOffset.x > oldX);\n        NSInteger targetIndex = (scrollingTowards) ? self.selectedIndex + 1 : self.selectedIndex - 1;\n        if (targetIndex >= 0 && targetIndex < self.viewControllers.count) {\n            CGFloat ratio = (self.scrollView.contentOffset.x - oldX) / CGRectGetWidth(self.scrollView.frame);\n            CGFloat previousItemContentOffsetX = [self.topBar contentOffsetForSelectedItemAtIndex:self.selectedIndex].x;\n            CGFloat nextItemContentOffsetX = [self.topBar contentOffsetForSelectedItemAtIndex:targetIndex].x;\n            CGFloat previousItemPageIndicatorX = [self.topBar centerForSelectedItemAtIndex:self.selectedIndex].x;\n            CGFloat nextItemPageIndicatorX = [self.topBar centerForSelectedItemAtIndex:targetIndex].x;\n            UIButton *previosSelectedItem = self.topBar.itemViews[self.selectedIndex];\n            UIButton *nextSelectedItem = self.topBar.itemViews[targetIndex];\n            \n            \n            \n            CGFloat red, green, blue, alpha, highlightedRed, highlightedGreen, highlightedBlue, highlightedAlpha;\n            [self getRed:&red green:&green blue:&blue alpha:&alpha fromColor:self.pageItemsTitleColor];\n            [self getRed:&highlightedRed green:&highlightedGreen blue:&highlightedBlue alpha:&highlightedAlpha fromColor:self.selectedPageItemTitleColor];\n            \n            CGFloat absRatio = fabsf(ratio);\n            UIColor *prev = [UIColor colorWithRed:red * absRatio + highlightedRed * (1 - absRatio)\n                                            green:green * absRatio + highlightedGreen * (1 - absRatio)\n                                             blue:blue * absRatio + highlightedBlue  * (1 - absRatio)\n                                            alpha:alpha * absRatio + highlightedAlpha  * (1 - absRatio)];\n            UIColor *next = [UIColor colorWithRed:red * (1 - absRatio) + highlightedRed * absRatio\n                                            green:green * (1 - absRatio) + highlightedGreen * absRatio\n                                             blue:blue * (1 - absRatio) + highlightedBlue * absRatio\n                                            alpha:alpha * (1 - absRatio) + highlightedAlpha * absRatio];\n            \n            [previosSelectedItem setTitleColor:prev forState:UIControlStateNormal];\n            [nextSelectedItem setTitleColor:next forState:UIControlStateNormal];\n            \n            \n            \n            if (scrollingTowards) {\n                self.topBar.scrollView.contentOffset = CGPointMake(previousItemContentOffsetX +\n                                                                   (nextItemContentOffsetX - previousItemContentOffsetX) * ratio , 0.);\n                self.pageIndicatorView.center = CGPointMake(previousItemPageIndicatorX +\n                                                            (nextItemPageIndicatorX - previousItemPageIndicatorX) * ratio,\n                                                            [self pageIndicatorCenterY]);\n                \n            } else {\n                self.topBar.scrollView.contentOffset = CGPointMake(previousItemContentOffsetX -\n                                                                   (nextItemContentOffsetX - previousItemContentOffsetX) * ratio , 0.);\n                self.pageIndicatorView.center = CGPointMake(previousItemPageIndicatorX -\n                                                            (nextItemPageIndicatorX - previousItemPageIndicatorX) * ratio,\n                                                            [self pageIndicatorCenterY]);\n            }\n        }\n    }\n}\n\n- (void)getRed:(CGFloat *)red green:(CGFloat *)green blue:(CGFloat *)blue alpha:(CGFloat *)alpha fromColor:(UIColor *)color\n{\n    const CGFloat *components = CGColorGetComponents(color.CGColor);\n    CGColorSpaceModel colorSpaceModel = CGColorSpaceGetModel(CGColorGetColorSpace(color.CGColor));\n    if (colorSpaceModel == kCGColorSpaceModelRGB && CGColorGetNumberOfComponents(color.CGColor) == 4) {\n        *red = components[0];\n        *green = components[1];\n        *blue = components[2];\n        *alpha = components[3];\n    } else if (colorSpaceModel == kCGColorSpaceModelMonochrome && CGColorGetNumberOfComponents(color.CGColor) == 2) {\n        *red = *green = *blue = components[0];\n        *alpha = components[1];\n    } else {\n        *red = *green = *blue = *alpha = 0;\n    }\n}\n\n@end"
  },
  {
    "path": "DAPagesContainer/DAPagesContainerTopBar.h",
    "content": "//\n//  DAPagesContainerTopBar.h\n//  DAPagesContainerScrollView\n//\n//  Created by Daria Kopaliani on 5/29/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@class DAPagesContainerTopBar;\n\n@protocol DAPagesContainerTopBarDelegate <NSObject>\n\n- (void)itemAtIndex:(NSUInteger)index didSelectInPagesContainerTopBar:(DAPagesContainerTopBar *)bar;\n\n@end\n\n\n@interface DAPagesContainerTopBar : UIView\n\n@property (strong, nonatomic) UIImage *backgroundImage;\n@property (strong, nonatomic) UIColor *itemTitleColor;\n@property (strong, nonatomic) NSArray *itemTitles;\n@property (strong, nonatomic) UIFont *font;\n@property (readonly, strong, nonatomic) NSArray *itemViews;\n@property (readonly, strong, nonatomic) UIScrollView *scrollView;\n@property (weak, nonatomic) id<DAPagesContainerTopBarDelegate> delegate;\n\n- (CGPoint)centerForSelectedItemAtIndex:(NSUInteger)index;\n- (CGPoint)contentOffsetForSelectedItemAtIndex:(NSUInteger)index;\n\n@end"
  },
  {
    "path": "DAPagesContainer/DAPagesContainerTopBar.m",
    "content": "//\n//  DAPagesContainerTopBar.m\n//  DAPagesContainerScrollView\n//\n//  Created by Daria Kopaliani on 5/29/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import \"DAPagesContainerTopBar.h\"\n\n\n@interface DAPagesContainerTopBar ()\n\n@property (strong, nonatomic) UIImageView *backgroundImageView;\n@property (strong, nonatomic) UIScrollView *scrollView;\n@property (strong, nonatomic) NSArray *itemViews;\n\n- (void)layoutItemViews;\n\n@end\n\n\n@implementation DAPagesContainerTopBar\n\nCGFloat const DAPagesContainerTopBarItemViewWidth = 100.;\nCGFloat const DAPagesContainerTopBarItemsOffset = 30.;\n\n- (id)initWithFrame:(CGRect)frame\n{\n    self = [super initWithFrame:frame];\n    if (self) {\n        self.scrollView = [[UIScrollView alloc] initWithFrame:self.bounds];\n        self.scrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;\n        self.scrollView.showsHorizontalScrollIndicator = NO;\n        [self addSubview:self.scrollView];\n        self.font = [UIFont systemFontOfSize:14];\n        self.itemTitleColor = [UIColor whiteColor];\n    }\n    return self;\n}\n\n#pragma mark - Public\n\n- (CGPoint)centerForSelectedItemAtIndex:(NSUInteger)index\n{\n    CGPoint center = ((UIView *)self.itemViews[index]).center;\n    CGPoint offset = [self contentOffsetForSelectedItemAtIndex:index];\n    center.x -= offset.x - (CGRectGetMinX(self.scrollView.frame));\n    return center;\n}\n\n- (CGPoint)contentOffsetForSelectedItemAtIndex:(NSUInteger)index\n{\n    if (self.itemViews.count < index || self.itemViews.count == 1) {\n        return CGPointZero;\n    } else {\n        CGFloat totalOffset = self.scrollView.contentSize.width - CGRectGetWidth(self.scrollView.frame);\n        return CGPointMake(index * totalOffset / (self.itemViews.count - 1), 0.);\n    }\n}\n\n- (void)setItemTitleColor:(UIColor *)itemTitleColor\n{\n    if (![_itemTitleColor isEqual:itemTitleColor]) {\n        _itemTitleColor = itemTitleColor;\n        for (UIButton *button in self.itemViews) {\n            [button setTitleColor:itemTitleColor forState:UIControlStateNormal];\n        }\n    }\n}\n\n#pragma mark * Overwritten setters\n\n- (void)setBackgroundImage:(UIImage *)backgroundImage\n{\n    self.backgroundImageView.image = backgroundImage;\n}\n\n- (void)setItemTitles:(NSArray *)itemTitles\n{\n    if (_itemTitles != itemTitles) {\n        _itemTitles = itemTitles;\n        NSMutableArray *mutableItemViews = [NSMutableArray arrayWithCapacity:itemTitles.count];\n        for (NSUInteger i = 0; i < itemTitles.count; i++) {\n            UIButton *itemView = [self addItemView];\n            [itemView setTitle:itemTitles[i] forState:UIControlStateNormal];\n            [mutableItemViews addObject:itemView];\n        }\n        self.itemViews = [NSArray arrayWithArray:mutableItemViews];\n        [self layoutItemViews];\n    }\n}\n\n- (void)setFont:(UIFont *)font\n{\n    if (![_font isEqual:font]) {\n        _font = font;\n        for (UIButton *itemView in self.itemViews) {\n            [itemView.titleLabel setFont:font];\n        }\n    }\n}\n\n#pragma mark - Private\n\n- (UIButton *)addItemView\n{\n    CGRect frame = CGRectMake(0., 0., DAPagesContainerTopBarItemViewWidth, CGRectGetHeight(self.frame));\n    UIButton *itemView = [[UIButton alloc] initWithFrame:frame];\n    [itemView addTarget:self action:@selector(itemViewTapped:) forControlEvents:UIControlEventTouchUpInside];\n    itemView.titleLabel.font = self.font;\n    [itemView setTitleColor:self.itemTitleColor forState:UIControlStateNormal];\n    [self.scrollView addSubview:itemView];\n    return itemView;\n}\n\n- (void)itemViewTapped:(UIButton *)sender\n{\n    [self.delegate itemAtIndex:[self.itemViews indexOfObject:sender] didSelectInPagesContainerTopBar:self];\n}\n\n- (void)layoutItemViews\n{\n    CGFloat x = DAPagesContainerTopBarItemsOffset;\n    for (NSUInteger i = 0; i < self.itemViews.count; i++) {\n        CGFloat width = [self.itemTitles[i] sizeWithFont:self.font].width;\n        UIView *itemView = self.itemViews[i];\n        itemView.frame = CGRectMake(x, 0., width, CGRectGetHeight(self.frame));\n        x += width + DAPagesContainerTopBarItemsOffset;\n    }\n    self.scrollView.contentSize = CGSizeMake(x, CGRectGetHeight(self.scrollView.frame));\n    CGRect frame = self.scrollView.frame;\n    if (CGRectGetWidth(self.frame) > x) {\n        frame.origin.x = (CGRectGetWidth(self.frame) - x) / 2.;\n        frame.size.width = x;\n    } else {\n        frame.origin.x = 0.;\n        frame.size.width = CGRectGetWidth(self.frame);\n    }\n    self.scrollView.frame = frame;\n}\n\n- (void)layoutSubviews\n{\n    [super layoutSubviews];\n    [self layoutItemViews];\n}\n\n#pragma mark * Lazy getters\n\n- (UIImageView *)backgroundImageView\n{\n    if (!_backgroundImageView) {\n        _backgroundImageView = [[UIImageView alloc] initWithFrame:self.bounds];\n        _backgroundImageView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;\n        [self insertSubview:_backgroundImageView belowSubview:self.scrollView];\n    }\n    return _backgroundImageView;\n}\n\n@end"
  },
  {
    "path": "DAPagesContainer.podspec",
    "content": "Pod::Spec.new do |s|\n  s.name         = \"DAPagesContainer\"\n  s.version      = \"1.0.1\"\n  s.summary      = \"A generic views container with a scrollable top bar.\"\n  s.homepage     = \"https://github.com/daria-kopaliani/DAPagesContainer.git\"\n  s.license      = 'MIT'\n  s.author       = { \"Daria Kopaliani\" => \"daria.kopaliani@gmail.com\" }\n  s.source       = { :git => \"https://github.com/daria-kopaliani/DAPagesContainer.git\", :tag => \"1.0.1\" }\n  s.platform     = :ios, '5.0'\n  s.source_files = 'DAPagesContainer/**/*.{h,m}'\n  s.requires_arc = true\nend"
  },
  {
    "path": "DAPagesContainerDemo/DAAppDelegate.h",
    "content": "//\n//  DAAppDelegate.h\n//  DAPagesContainerDemo\n//\n//  Created by Daria Kopaliani on 5/30/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DAAppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n"
  },
  {
    "path": "DAPagesContainerDemo/DAAppDelegate.m",
    "content": "//\n//  DAAppDelegate.m\n//  DAPagesContainerDemo\n//\n//  Created by Daria Kopaliani on 5/30/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import \"DAAppDelegate.h\"\n\n@implementation DAAppDelegate\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n    // Override point for customization after application launch.\n    return YES;\n}\n\t\t\t\t\t\t\t\n- (void)applicationWillResignActive:(UIApplication *)application\n{\n    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.\n}\n\n- (void)applicationDidEnterBackground:(UIApplication *)application\n{\n    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. \n    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n}\n\n- (void)applicationWillEnterForeground:(UIApplication *)application\n{\n    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.\n}\n\n- (void)applicationDidBecomeActive:(UIApplication *)application\n{\n    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n}\n\n- (void)applicationWillTerminate:(UIApplication *)application\n{\n    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n}\n\n@end\n"
  },
  {
    "path": "DAPagesContainerDemo/DAPagesContainerDemo-Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleDisplayName</key>\n\t<string>${PRODUCT_NAME}</string>\n\t<key>CFBundleExecutable</key>\n\t<string>${EXECUTABLE_NAME}</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>no.beat.apps.${PRODUCT_NAME:rfc1034identifier}</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>${PRODUCT_NAME}</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0.1</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1.0.1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UIMainStoryboardFile</key>\n\t<string>MainStoryboard</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "DAPagesContainerDemo/DAPagesContainerDemo-Prefix.pch",
    "content": "//\n// Prefix header for all source files of the 'DAPagesContainerDemo' target in the 'DAPagesContainerDemo' project\n//\n\n#import <Availability.h>\n\n#ifndef __IPHONE_5_0\n#warning \"This project uses features only available in iOS SDK 5.0 and later.\"\n#endif\n\n#ifdef __OBJC__\n    #import <UIKit/UIKit.h>\n    #import <Foundation/Foundation.h>\n#endif\n"
  },
  {
    "path": "DAPagesContainerDemo/DAViewController.h",
    "content": "//\n//  DAViewController.h\n//  DAPagesContainerControllerDemo\n//\n//  Created by Daria Kopaliani on 5/30/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface DAViewController : UIViewController\n\n@end\n"
  },
  {
    "path": "DAPagesContainerDemo/DAViewController.m",
    "content": "//\n//  DAViewController.m\n//  DAPagesContainerDemo\n//\n//  Created by Daria Kopaliani on 5/30/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import \"DAViewController.h\"\n\n#import \"DAPagesContainer.h\"\n\n\n@interface DAViewController ()\n\n@property (strong, nonatomic) DAPagesContainer *pagesContainer;\n\n@end\n\n\n@implementation DAViewController\n\n- (void)viewDidLoad\n{\n    [super viewDidLoad];\n    self.pagesContainer = [[DAPagesContainer alloc] init];\n    [self.pagesContainer willMoveToParentViewController:self];\n    self.pagesContainer.view.frame = self.view.bounds;\n    self.pagesContainer.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;\n    [self.view addSubview:self.pagesContainer.view];\n    [self.pagesContainer didMoveToParentViewController:self];\n    \n    UIViewController *beaverViewController = [[UIViewController alloc] init];\n    UIImageView *beaverImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@\"beaver.jpg\"]];\n    beaverImageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;\n    [beaverViewController.view addSubview:beaverImageView];\n    beaverViewController.title = @\"BEAVER\";\n    \n    UIViewController *buckDeerViewController = [[UIViewController alloc] init];\n    UIImageView *buckDeerImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@\"buckDeer.jpg\"]];\n    buckDeerImageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;\n    [buckDeerViewController.view addSubview:buckDeerImageView];\n    buckDeerViewController.title = @\"BUCK DEER\";\n    \n    UIViewController *catViewController = [[UIViewController alloc] init];\n    UIImageView *catImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@\"cat.jpg\"]];\n    catImageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;\n    [catViewController.view addSubview:catImageView];\n    catViewController.title = @\"CAT\";\n    \n    UIViewController *lionViewController = [[UIViewController alloc] init];\n    UIImageView *lionImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@\"lion.jpg\"]];\n    lionImageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;\n    [lionViewController.view addSubview:lionImageView];\n    lionViewController.title = @\"REALLY CUTE LION\";\n\n    self.pagesContainer.viewControllers = @[beaverViewController, buckDeerViewController, catViewController, lionViewController];\n}\n\n- (void)viewWillUnload\n{\n    self.pagesContainer = nil;\n    [super viewWillUnload];\n}\n\n- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration\n{\n    [self.pagesContainer updateLayoutForNewOrientation:toInterfaceOrientation];\n}\n\n@end"
  },
  {
    "path": "DAPagesContainerDemo/en.lproj/InfoPlist.strings",
    "content": "/* Localized versions of Info.plist keys */\n\n"
  },
  {
    "path": "DAPagesContainerDemo/en.lproj/MainStoryboard.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"4504\" systemVersion=\"12E55\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" initialViewController=\"2\">\n    <dependencies>\n        <deployment defaultVersion=\"1280\" identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"3734.1\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"5\">\n            <objects>\n                <viewController id=\"2\" customClass=\"DAViewController\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"zUq-4g-YIQ\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"Nf2-En-liY\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"3\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"320\" height=\"568\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"4\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n        </scene>\n    </scenes>\n    <simulatedMetricsContainer key=\"defaultSimulatedMetrics\">\n        <simulatedStatusBarMetrics key=\"statusBar\"/>\n        <simulatedOrientationMetrics key=\"orientation\"/>\n        <simulatedScreenMetrics key=\"destination\" type=\"retina4\"/>\n    </simulatedMetricsContainer>\n</document>"
  },
  {
    "path": "DAPagesContainerDemo/main.m",
    "content": "//\n//  main.m\n//  DAPagesContainerDemo\n//\n//  Created by Daria Kopaliani on 5/30/13.\n//  Copyright (c) 2013 Daria Kopaliani. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#import \"DAAppDelegate.h\"\n\nint main(int argc, char *argv[])\n{\n    @autoreleasepool {\n        return UIApplicationMain(argc, argv, nil, NSStringFromClass([DAAppDelegate class]));\n    }\n}\n"
  },
  {
    "path": "DAPagesContainerDemo.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t43222CA61768E4590088986F /* DAPageIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 43222CA11768E4590088986F /* DAPageIndicatorView.m */; };\n\t\t43222CA71768E4590088986F /* DAPagesContainer.m in Sources */ = {isa = PBXBuildFile; fileRef = 43222CA31768E4590088986F /* DAPagesContainer.m */; };\n\t\t43222CA81768E4590088986F /* DAPagesContainerTopBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 43222CA51768E4590088986F /* DAPagesContainerTopBar.m */; };\n\t\t43222CAD1768E4770088986F /* DAAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 43222CAA1768E4770088986F /* DAAppDelegate.m */; };\n\t\t43222CAE1768E4770088986F /* DAViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 43222CAC1768E4770088986F /* DAViewController.m */; };\n\t\t43222CB61768E48E0088986F /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 43222CB11768E48E0088986F /* Default-568h@2x.png */; };\n\t\t43222CB71768E48E0088986F /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 43222CB21768E48E0088986F /* Default.png */; };\n\t\t43222CB81768E48E0088986F /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 43222CB31768E48E0088986F /* Default@2x.png */; };\n\t\t43222CB91768E48E0088986F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 43222CB41768E48E0088986F /* main.m */; };\n\t\t43222CBE1768E49F0088986F /* beaver.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 43222CBA1768E49F0088986F /* beaver.jpg */; };\n\t\t43222CBF1768E49F0088986F /* buckDeer.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 43222CBB1768E49F0088986F /* buckDeer.jpg */; };\n\t\t43222CC01768E49F0088986F /* cat.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 43222CBC1768E49F0088986F /* cat.jpg */; };\n\t\t43222CC11768E49F0088986F /* lion.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 43222CBD1768E49F0088986F /* lion.jpg */; };\n\t\t43222CC61768E4D30088986F /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 43222CC21768E4D30088986F /* InfoPlist.strings */; };\n\t\t43222CC71768E4D30088986F /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 43222CC41768E4D30088986F /* MainStoryboard.storyboard */; };\n\t\t438BA887175785B00033EB2D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 438BA886175785B00033EB2D /* UIKit.framework */; };\n\t\t438BA88B175785B00033EB2D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 438BA88A175785B00033EB2D /* CoreGraphics.framework */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\t43222CA01768E4590088986F /* DAPageIndicatorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DAPageIndicatorView.h; path = DAPagesContainer/DAPageIndicatorView.h; sourceTree = \"<group>\"; };\n\t\t43222CA11768E4590088986F /* DAPageIndicatorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DAPageIndicatorView.m; path = DAPagesContainer/DAPageIndicatorView.m; sourceTree = \"<group>\"; };\n\t\t43222CA21768E4590088986F /* DAPagesContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DAPagesContainer.h; path = DAPagesContainer/DAPagesContainer.h; sourceTree = \"<group>\"; };\n\t\t43222CA31768E4590088986F /* DAPagesContainer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DAPagesContainer.m; path = DAPagesContainer/DAPagesContainer.m; sourceTree = \"<group>\"; };\n\t\t43222CA41768E4590088986F /* DAPagesContainerTopBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DAPagesContainerTopBar.h; path = DAPagesContainer/DAPagesContainerTopBar.h; sourceTree = \"<group>\"; };\n\t\t43222CA51768E4590088986F /* DAPagesContainerTopBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DAPagesContainerTopBar.m; path = DAPagesContainer/DAPagesContainerTopBar.m; sourceTree = \"<group>\"; };\n\t\t43222CA91768E4770088986F /* DAAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DAAppDelegate.h; path = DAPagesContainerDemo/DAAppDelegate.h; sourceTree = SOURCE_ROOT; };\n\t\t43222CAA1768E4770088986F /* DAAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DAAppDelegate.m; path = DAPagesContainerDemo/DAAppDelegate.m; sourceTree = SOURCE_ROOT; };\n\t\t43222CAB1768E4770088986F /* DAViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DAViewController.h; path = DAPagesContainerDemo/DAViewController.h; sourceTree = SOURCE_ROOT; };\n\t\t43222CAC1768E4770088986F /* DAViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DAViewController.m; path = DAPagesContainerDemo/DAViewController.m; sourceTree = SOURCE_ROOT; };\n\t\t43222CAF1768E48E0088986F /* DAPagesContainerDemo-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = \"DAPagesContainerDemo-Info.plist\"; path = \"DAPagesContainerDemo/DAPagesContainerDemo-Info.plist\"; sourceTree = SOURCE_ROOT; };\n\t\t43222CB01768E48E0088986F /* DAPagesContainerDemo-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = \"DAPagesContainerDemo-Prefix.pch\"; path = \"DAPagesContainerDemo/DAPagesContainerDemo-Prefix.pch\"; sourceTree = SOURCE_ROOT; };\n\t\t43222CB11768E48E0088986F /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = \"Default-568h@2x.png\"; path = \"DAPagesContainerDemo/Default-568h@2x.png\"; sourceTree = SOURCE_ROOT; };\n\t\t43222CB21768E48E0088986F /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = DAPagesContainerDemo/Default.png; sourceTree = SOURCE_ROOT; };\n\t\t43222CB31768E48E0088986F /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = \"Default@2x.png\"; path = \"DAPagesContainerDemo/Default@2x.png\"; sourceTree = SOURCE_ROOT; };\n\t\t43222CB41768E48E0088986F /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = DAPagesContainerDemo/main.m; sourceTree = SOURCE_ROOT; };\n\t\t43222CBA1768E49F0088986F /* beaver.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = beaver.jpg; path = DAPagesContainerDemo/Resources/beaver.jpg; sourceTree = SOURCE_ROOT; };\n\t\t43222CBB1768E49F0088986F /* buckDeer.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = buckDeer.jpg; path = DAPagesContainerDemo/Resources/buckDeer.jpg; sourceTree = SOURCE_ROOT; };\n\t\t43222CBC1768E49F0088986F /* cat.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = cat.jpg; path = DAPagesContainerDemo/Resources/cat.jpg; sourceTree = SOURCE_ROOT; };\n\t\t43222CBD1768E49F0088986F /* lion.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = lion.jpg; path = DAPagesContainerDemo/Resources/lion.jpg; sourceTree = SOURCE_ROOT; };\n\t\t43222CC31768E4D30088986F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = DAPagesContainerDemo/en.lproj/InfoPlist.strings; sourceTree = SOURCE_ROOT; };\n\t\t43222CC51768E4D30088986F /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = DAPagesContainerDemo/en.lproj/MainStoryboard.storyboard; sourceTree = SOURCE_ROOT; };\n\t\t438BA883175785B00033EB2D /* DAPagesContainerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DAPagesContainerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t438BA886175785B00033EB2D /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };\n\t\t438BA888175785B00033EB2D /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };\n\t\t438BA88A175785B00033EB2D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t438BA880175785B00033EB2D /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t438BA887175785B00033EB2D /* UIKit.framework in Frameworks */,\n\t\t\t\t438BA88B175785B00033EB2D /* CoreGraphics.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t438BA87A175785B00033EB2D = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t438BA8A9175785BB0033EB2D /* DAPagesContainer */,\n\t\t\t\t438BA88C175785B00033EB2D /* DAPagesContainerDemo */,\n\t\t\t\t438BA885175785B00033EB2D /* Frameworks */,\n\t\t\t\t438BA884175785B00033EB2D /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t438BA884175785B00033EB2D /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t438BA883175785B00033EB2D /* DAPagesContainerDemo.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t438BA885175785B00033EB2D /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t438BA886175785B00033EB2D /* UIKit.framework */,\n\t\t\t\t438BA888175785B00033EB2D /* Foundation.framework */,\n\t\t\t\t438BA88A175785B00033EB2D /* CoreGraphics.framework */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t438BA88C175785B00033EB2D /* DAPagesContainerDemo */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t43222CA91768E4770088986F /* DAAppDelegate.h */,\n\t\t\t\t43222CAA1768E4770088986F /* DAAppDelegate.m */,\n\t\t\t\t43222CAB1768E4770088986F /* DAViewController.h */,\n\t\t\t\t43222CAC1768E4770088986F /* DAViewController.m */,\n\t\t\t\t438BA88D175785B00033EB2D /* Supporting Files */,\n\t\t\t);\n\t\t\tname = DAPagesContainerDemo;\n\t\t\tpath = DAPagesContainerControllerDemo;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t438BA88D175785B00033EB2D /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t43222CC21768E4D30088986F /* InfoPlist.strings */,\n\t\t\t\t43222CC41768E4D30088986F /* MainStoryboard.storyboard */,\n\t\t\t\t43222CAF1768E48E0088986F /* DAPagesContainerDemo-Info.plist */,\n\t\t\t\t43222CB01768E48E0088986F /* DAPagesContainerDemo-Prefix.pch */,\n\t\t\t\t43222CB11768E48E0088986F /* Default-568h@2x.png */,\n\t\t\t\t43222CB21768E48E0088986F /* Default.png */,\n\t\t\t\t43222CB31768E48E0088986F /* Default@2x.png */,\n\t\t\t\t43222CB41768E48E0088986F /* main.m */,\n\t\t\t\t438BA8B6175786240033EB2D /* Images */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t438BA8A9175785BB0033EB2D /* DAPagesContainer */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t43222CA21768E4590088986F /* DAPagesContainer.h */,\n\t\t\t\t43222CA31768E4590088986F /* DAPagesContainer.m */,\n\t\t\t\t43222CA41768E4590088986F /* DAPagesContainerTopBar.h */,\n\t\t\t\t43222CA51768E4590088986F /* DAPagesContainerTopBar.m */,\n\t\t\t\t43222CA01768E4590088986F /* DAPageIndicatorView.h */,\n\t\t\t\t43222CA11768E4590088986F /* DAPageIndicatorView.m */,\n\t\t\t);\n\t\t\tname = DAPagesContainer;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t438BA8B6175786240033EB2D /* Images */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t43222CBA1768E49F0088986F /* beaver.jpg */,\n\t\t\t\t43222CBB1768E49F0088986F /* buckDeer.jpg */,\n\t\t\t\t43222CBC1768E49F0088986F /* cat.jpg */,\n\t\t\t\t43222CBD1768E49F0088986F /* lion.jpg */,\n\t\t\t);\n\t\t\tname = Images;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t438BA882175785B00033EB2D /* DAPagesContainerDemo */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 438BA8A6175785B10033EB2D /* Build configuration list for PBXNativeTarget \"DAPagesContainerDemo\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t438BA87F175785B00033EB2D /* Sources */,\n\t\t\t\t438BA880175785B00033EB2D /* Frameworks */,\n\t\t\t\t438BA881175785B00033EB2D /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = DAPagesContainerDemo;\n\t\t\tproductName = DAPagesContainerControllerDemo;\n\t\t\tproductReference = 438BA883175785B00033EB2D /* DAPagesContainerDemo.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t438BA87B175785B00033EB2D /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tCLASSPREFIX = DA;\n\t\t\t\tLastUpgradeCheck = 0460;\n\t\t\t\tORGANIZATIONNAME = \"Daria Kopaliani\";\n\t\t\t};\n\t\t\tbuildConfigurationList = 438BA87E175785B00033EB2D /* Build configuration list for PBXProject \"DAPagesContainerDemo\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t);\n\t\t\tmainGroup = 438BA87A175785B00033EB2D;\n\t\t\tproductRefGroup = 438BA884175785B00033EB2D /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t438BA882175785B00033EB2D /* DAPagesContainerDemo */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t438BA881175785B00033EB2D /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t43222CB61768E48E0088986F /* Default-568h@2x.png in Resources */,\n\t\t\t\t43222CB71768E48E0088986F /* Default.png in Resources */,\n\t\t\t\t43222CB81768E48E0088986F /* Default@2x.png in Resources */,\n\t\t\t\t43222CBE1768E49F0088986F /* beaver.jpg in Resources */,\n\t\t\t\t43222CBF1768E49F0088986F /* buckDeer.jpg in Resources */,\n\t\t\t\t43222CC01768E49F0088986F /* cat.jpg in Resources */,\n\t\t\t\t43222CC11768E49F0088986F /* lion.jpg in Resources */,\n\t\t\t\t43222CC61768E4D30088986F /* InfoPlist.strings in Resources */,\n\t\t\t\t43222CC71768E4D30088986F /* MainStoryboard.storyboard in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t438BA87F175785B00033EB2D /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t43222CA61768E4590088986F /* DAPageIndicatorView.m in Sources */,\n\t\t\t\t43222CA71768E4590088986F /* DAPagesContainer.m in Sources */,\n\t\t\t\t43222CA81768E4590088986F /* DAPagesContainerTopBar.m in Sources */,\n\t\t\t\t43222CAD1768E4770088986F /* DAAppDelegate.m in Sources */,\n\t\t\t\t43222CAE1768E4770088986F /* DAViewController.m in Sources */,\n\t\t\t\t43222CB91768E48E0088986F /* main.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXVariantGroup section */\n\t\t43222CC21768E4D30088986F /* InfoPlist.strings */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t43222CC31768E4D30088986F /* en */,\n\t\t\t);\n\t\t\tname = InfoPlist.strings;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t43222CC41768E4D30088986F /* MainStoryboard.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t43222CC51768E4D30088986F /* en */,\n\t\t\t);\n\t\t\tname = MainStoryboard.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t438BA8A4175785B10033EB2D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 6.1;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t438BA8A5175785B10033EB2D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 6.1;\n\t\t\t\tOTHER_CFLAGS = \"-DNS_BLOCK_ASSERTIONS=1\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t438BA8A7175785B10033EB2D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tGCC_PRECOMPILE_PREFIX_HEADER = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"DAPagesContainerDemo/DAPagesContainerDemo-Prefix.pch\";\n\t\t\t\tINFOPLIST_FILE = \"DAPagesContainerDemo/DAPagesContainerDemo-Info.plist\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 5.0;\n\t\t\t\tPRODUCT_NAME = DAPagesContainerDemo;\n\t\t\t\tWRAPPER_EXTENSION = app;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t438BA8A8175785B10033EB2D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tGCC_PRECOMPILE_PREFIX_HEADER = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"DAPagesContainerDemo/DAPagesContainerDemo-Prefix.pch\";\n\t\t\t\tINFOPLIST_FILE = \"DAPagesContainerDemo/DAPagesContainerDemo-Info.plist\";\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 5.0;\n\t\t\t\tPRODUCT_NAME = DAPagesContainerDemo;\n\t\t\t\tWRAPPER_EXTENSION = app;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t438BA87E175785B00033EB2D /* Build configuration list for PBXProject \"DAPagesContainerDemo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t438BA8A4175785B10033EB2D /* Debug */,\n\t\t\t\t438BA8A5175785B10033EB2D /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t438BA8A6175785B10033EB2D /* Build configuration list for PBXNativeTarget \"DAPagesContainerDemo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t438BA8A7175785B10033EB2D /* Debug */,\n\t\t\t\t438BA8A8175785B10033EB2D /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 438BA87B175785B00033EB2D /* Project object */;\n}\n"
  },
  {
    "path": "LICENSE",
    "content": "Copyright (c) 2012 Arthur Evstifeev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "DAPagesContainer\n==============\n\nA generic views container with a scrollable top bar\n--------------\n\n![Alt text](DAPagesContainer.gif)\n\nJust pass the array of view controllers and DAPagesContainer will grab their titles and nicely display them in the top bar. The titles will be aligned properly even if their lengths differ and they do not fit the screen width.\n\n\nFeatures\n==============\n\n- Both content scroll view and top bar can be used for navigation,\n- If a selected view is not the \"nearest\" neighbor of the current one, all the views in between will be skipped to provide a nice smooth animation,\n- Supports user interface orientation rotations,\n- Buttons in the top bar change their color as corresponding views become visible.\n\n\nInstallation\n==============\n\nCocoaPods\n--------------\nInstall CocoaPods if necessary:\n\n    $ [sudo] gem install cocoapods\n    $ pod setup\n\nChange to the directory of your Xcode project:\n\n    $ cd /path/to/MyProject\n    $ touch Podfile\n    $ edit Podfile\n\nEdit your Podfile and add DAPagesContainer:\n\n    platform :ios, '5.0'\n    pod 'DAPagesContainer'\n\nInstall into your Xcode project:\n\n    $ pod install\n\nFrom now on open your project in Xcode from the .xcworkspace file (instead of the usual project file)\n\nManual Install\n--------------\n\nJust drag and drop DAPagesContainer folder into your project.\n\n\nUsage\n==============\n\nGetting started with DAPagesContainer is really simple. Just alloc-init it and assign an array of view controllers. This can be done in the following way:\n\n    self.pagesContainer = [[DAPagesContainer alloc] init];\n    [self.pagesContainer willMoveToParentViewController:self];\n    self.pagesContainer.view.frame = self.view.bounds;\n    self.pagesContainer.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;\n    [self.view addSubview:self.pagesContainer.view];\n    [self.pagesContainer didMoveToParentViewController:self];\n    self.pagesContainer.viewControllers = @[....];\n\n\nCustomization\n==============\n\nGo ahead and experiment with these properties:\n\n    @property (assign, nonatomic) NSUInteger topBarHeight;\n    @property (assign, nonatomic) CGSize pageIndicatorViewSize;\n    @property (strong, nonatomic) UIColor *topBarBackgroundColor;\n    @property (strong, nonatomic) UIFont *topBarItemLabelsFont;\n    @property (strong, nonatomic) UIColor *pageItemsTitleColor;\n    @property (strong, nonatomic) UIColor *selectedPageItemColor;\n\n\nTODO\n==============\n\n- <del>Add colors customization for title views in top bar (not only shadows of grey)</del>\n\n"
  }
]