Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
nek023 committed Apr 5, 2015
1 parent 8971bdf commit 6dfea43
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 46 deletions.
8 changes: 0 additions & 8 deletions QBImagePicker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
AAF1CA301ACE6E46005F6295 /* QBAssetsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AAF1CA2E1ACE6E46005F6295 /* QBAssetsViewController.m */; };
AAF1CA331ACE6FB5005F6295 /* QBAssetCell.h in Headers */ = {isa = PBXBuildFile; fileRef = AAF1CA311ACE6FB5005F6295 /* QBAssetCell.h */; };
AAF1CA341ACE6FB5005F6295 /* QBAssetCell.m in Sources */ = {isa = PBXBuildFile; fileRef = AAF1CA321ACE6FB5005F6295 /* QBAssetCell.m */; };
AAF1CA3B1ACE765F005F6295 /* QBFooterView.h in Headers */ = {isa = PBXBuildFile; fileRef = AAF1CA391ACE765F005F6295 /* QBFooterView.h */; };
AAF1CA3C1ACE765F005F6295 /* QBFooterView.m in Sources */ = {isa = PBXBuildFile; fileRef = AAF1CA3A1ACE765F005F6295 /* QBFooterView.m */; };
AAF1CA411ACE8B2B005F6295 /* QBImagePicker.strings in Resources */ = {isa = PBXBuildFile; fileRef = AAF1CA3F1ACE8918005F6295 /* QBImagePicker.strings */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -116,8 +114,6 @@
AAF1CA2E1ACE6E46005F6295 /* QBAssetsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; path = QBAssetsViewController.m; sourceTree = "<group>"; };
AAF1CA311ACE6FB5005F6295 /* QBAssetCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QBAssetCell.h; sourceTree = "<group>"; };
AAF1CA321ACE6FB5005F6295 /* QBAssetCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QBAssetCell.m; sourceTree = "<group>"; };
AAF1CA391ACE765F005F6295 /* QBFooterView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QBFooterView.h; sourceTree = "<group>"; };
AAF1CA3A1ACE765F005F6295 /* QBFooterView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QBFooterView.m; sourceTree = "<group>"; };
AAF1CA3E1ACE8918005F6295 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Base; path = Base.lproj/QBImagePicker.strings; sourceTree = "<group>"; };
AAF1CA401ACE8A8B005F6295 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/QBImagePicker.strings; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -163,8 +159,6 @@
AAF1CA191ACE5467005F6295 /* QBAlbumCell.m */,
AAF1CA311ACE6FB5005F6295 /* QBAssetCell.h */,
AAF1CA321ACE6FB5005F6295 /* QBAssetCell.m */,
AAF1CA391ACE765F005F6295 /* QBFooterView.h */,
AAF1CA3A1ACE765F005F6295 /* QBFooterView.m */,
AABBF08E1ACEDDFF003188A3 /* QBCheckmarkView.h */,
AABBF08F1ACEDDFF003188A3 /* QBCheckmarkView.m */,
AA3AD06D1ACF9A3A00BF523E /* QBVideoIconView.h */,
Expand Down Expand Up @@ -314,7 +308,6 @@
files = (
AA3AD0731ACFA06700BF523E /* QBVideoIndicatorView.h in Headers */,
AAF1CA331ACE6FB5005F6295 /* QBAssetCell.h in Headers */,
AAF1CA3B1ACE765F005F6295 /* QBFooterView.h in Headers */,
AAF1CA2F1ACE6E46005F6295 /* QBAssetsViewController.h in Headers */,
AAF1CA1A1ACE5467005F6295 /* QBAlbumCell.h in Headers */,
AAA8FE5B1ACDA554002A9710 /* QBAlbumsViewController.h in Headers */,
Expand Down Expand Up @@ -489,7 +482,6 @@
buildActionMask = 2147483647;
files = (
AAF1CA341ACE6FB5005F6295 /* QBAssetCell.m in Sources */,
AAF1CA3C1ACE765F005F6295 /* QBFooterView.m in Sources */,
AA3AD0701ACF9A3A00BF523E /* QBVideoIconView.m in Sources */,
AABBF0911ACEDDFF003188A3 /* QBCheckmarkView.m in Sources */,
AAF1CA301ACE6E46005F6295 /* QBAssetsViewController.m in Sources */,
Expand Down
4 changes: 0 additions & 4 deletions QBImagePicker/QBAlbumCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

#import "QBAlbumCell.h"

@interface QBAlbumCell ()

@end

@implementation QBAlbumCell

- (void)setBorderWidth:(CGFloat)borderWidth
Expand Down
3 changes: 2 additions & 1 deletion QBImagePicker/QBAlbumsViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
//

#import <UIKit/UIKit.h>
#import "QBImagePickerController.h"

@class QBImagePickerController;

@interface QBAlbumsViewController : UITableViewController

Expand Down
1 change: 1 addition & 0 deletions QBImagePicker/QBAlbumsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#import "QBAlbumCell.h"

// ViewControllers
#import "QBImagePickerController.h"
#import "QBAssetsViewController.h"

static CGSize CGSizeScale(CGSize size, CGFloat scale) {
Expand Down
3 changes: 1 addition & 2 deletions QBImagePicker/QBAssetsViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
//

#import <UIKit/UIKit.h>
#import "QBImagePickerController.h"

@class PHImageManager;
@class QBImagePickerController;
@class PHAssetCollection;

@interface QBAssetsViewController : UICollectionViewController
Expand Down
8 changes: 4 additions & 4 deletions QBImagePicker/QBAssetsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#import <Photos/Photos.h>

// Views
#import "QBImagePickerController.h"
#import "QBAssetCell.h"
#import "QBFooterView.h"
#import "QBVideoIndicatorView.h"

static CGSize CGSizeScale(CGSize size, CGFloat scale) {
Expand Down Expand Up @@ -459,9 +459,9 @@ - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cell
- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
{
if (kind == UICollectionElementKindSectionFooter) {
QBFooterView *footerView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionFooter
withReuseIdentifier:@"FooterView"
forIndexPath:indexPath];
UICollectionReusableView *footerView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionFooter
withReuseIdentifier:@"FooterView"
forIndexPath:indexPath];

// Number of assets
UILabel *label = (UILabel *)[footerView viewWithTag:1];
Expand Down
13 changes: 0 additions & 13 deletions QBImagePicker/QBFooterView.h

This file was deleted.

13 changes: 0 additions & 13 deletions QBImagePicker/QBFooterView.m

This file was deleted.

2 changes: 1 addition & 1 deletion QBImagePicker/QBImagePicker.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
</connections>
</collectionViewCell>
</cells>
<collectionReusableView key="sectionFooterView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="FooterView" id="sqR-h3-lW1" customClass="QBFooterView">
<collectionReusableView key="sectionFooterView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="FooterView" id="sqR-h3-lW1">
<rect key="frame" x="0.0" y="146" width="600" height="66"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
Expand Down

0 comments on commit 6dfea43

Please sign in to comment.