Skip to content

Commit

Permalink
added custom collection view cell
Browse files Browse the repository at this point in the history
  • Loading branch information
Robera Geleta committed Feb 26, 2015
1 parent c1b3483 commit 0aee560
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions RGPaperLayout/RGCollectionViewCell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// RGCollectionViewCell.h
// RGPaperLayout
//
// Created by ROBERA GELETA on 2/25/15.
// Copyright (c) 2015 ROBERA GELETA. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface RGCollectionViewCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *label;


@end
16 changes: 16 additions & 0 deletions RGPaperLayout/RGCollectionViewCell.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// RGCollectionViewCell.m
// RGPaperLayout
//
// Created by ROBERA GELETA on 2/25/15.
// Copyright (c) 2015 ROBERA GELETA. All rights reserved.
//

#import "RGCollectionViewCell.h"

@implementation RGCollectionViewCell
- (void)awakeFromNib
{
self.imageView.contentMode = UIViewContentModeScaleAspectFill;
}
@end

0 comments on commit 0aee560

Please sign in to comment.