Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brandFromNSK committed Apr 19, 2018
1 parent 1e162c9 commit 8895e46
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ - (void)registerReusableCellWithCellViewModels:(NSArray<id<IDCellViewModelProtoc
if ([[NSBundle mainBundle] pathForResource:reusableIdentifier ofType:@"nib"] != nil) {
UINib *cellNib = [UINib nibWithNibName:reusableIdentifier bundle:nil];

NSArray* nibViews = [[NSBundle mainBundle] loadNibNamed:reusableIdentifier
owner:self
options:nil];
NSArray* nibViews = [[NSBundle bundleForClass:cellClass] loadNibNamed:reusableIdentifier
owner:self
options:nil];

if (nibViews.firstObject) {
[self.tableView registerNib:cellNib forCellReuseIdentifier:reusableIdentifier];
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 11 additions & 3 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
551F0CEE2086066200F3A443 /* Classes */ = {
isa = PBXGroup;
children = (
55DFE0022088B6AF00C42170 /* NIBs */,
55DFDFD92087415F00C42170 /* IDTableModuleCoreMVVM.h */,
551F0D842086093400F3A443 /* JVFloatLabeledTextField_v1.2.1 */,
551F0D8E208609FF00F3A443 /* Categories */,
Expand Down Expand Up @@ -298,7 +299,6 @@
children = (
551F0D0E208606AF00F3A443 /* IDEmptyCell.h */,
551F0D0D208606AF00F3A443 /* IDEmptyCell.m */,
551F0D0F208606AF00F3A443 /* IDEmptyCell.xib */,
);
path = View;
sourceTree = "<group>";
Expand All @@ -325,7 +325,6 @@
isa = PBXGroup;
children = (
551F0D1D208606AF00F3A443 /* IDInfoCell.h */,
551F0D1E208606AF00F3A443 /* IDInfoCell.xib */,
551F0D1F208606AF00F3A443 /* IDInfoCell.m */,
);
path = View;
Expand Down Expand Up @@ -353,7 +352,6 @@
isa = PBXGroup;
children = (
551F0D25208606AF00F3A443 /* IDRightSideDescriptionCell.h */,
551F0D26208606AF00F3A443 /* IDRightSideDescriptionCell.xib */,
551F0D27208606AF00F3A443 /* IDRightSideDescriptionCell.m */,
);
path = View;
Expand Down Expand Up @@ -538,6 +536,16 @@
path = SectionViewModel;
sourceTree = "<group>";
};
55DFE0022088B6AF00C42170 /* NIBs */ = {
isa = PBXGroup;
children = (
551F0D0F208606AF00F3A443 /* IDEmptyCell.xib */,
551F0D1E208606AF00F3A443 /* IDInfoCell.xib */,
551F0D26208606AF00F3A443 /* IDRightSideDescriptionCell.xib */,
);
path = NIBs;
sourceTree = "<group>";
};
60B25F54650F3AE2C789DF5A /* Frameworks */ = {
isa = PBXGroup;
children = (
Expand Down
6 changes: 4 additions & 2 deletions IDTableModuleCore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'IDTableModuleCore'
s.version = '0.0.5'
s.version = '0.0.6'
s.summary = 'IDTableModuleCore created for easy module configuration based on UITableView'

# This description is used to generate tags and improve search results.
Expand All @@ -27,7 +27,9 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '9.0'

s.source_files = 'Classes/**/*.{h,m}'
s.resource_bundles = 'Classes/**/*.xib'
s.resource_bundles = {
'{podName}' => ['{podName}/Classes/NIBs/*.xib']
}

# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
Expand Down

0 comments on commit 8895e46

Please sign in to comment.