diff --git a/STCollapseTableView.podspec b/STCollapseTableView.podspec new file mode 100644 index 0000000..75026aa --- /dev/null +++ b/STCollapseTableView.podspec @@ -0,0 +1,20 @@ +Pod::Spec.new do |s| + s.name = "STCollapseTableView" + s.version = "0.1.1" + s.summary = "A UITableView subclass that automatically collapse and/or expand your sections." + s.description = <<-DESC + A UITableView subclass that automatically collapse and/or expand your sections. + You just have to fill your datasource like for a classic UITableView and the magic will happen. + DESC + s.homepage = "https://github.com/iSofTom/STCollapseTableView" + s.license = 'MIT' + s.author = { "iSotTom" => "thomas@isoftom.com" } + s.source = { :git => "https://github.com/iSofTom/STCollapseTableView.git", :tag => s.version.to_s } + + s.platform = :ios, '5.0' + s.requires_arc = true + + s.source_files = 'STCollapseTableView/*.{h,m}' + + s.frameworks = 'Foundation', 'UIKit' +end diff --git a/STCollapseTableView/STCollapseTableView.m b/STCollapseTableView/STCollapseTableView.m index 9a3b893..7065cf2 100644 --- a/STCollapseTableView/STCollapseTableView.m +++ b/STCollapseTableView/STCollapseTableView.m @@ -34,8 +34,8 @@ @interface STCollapseTableView () -@property (nonatomic, assign) id collapseDataSource; -@property (nonatomic, assign) id collapseDelegate; +@property (nonatomic, weak) id collapseDataSource; +@property (nonatomic, weak) id collapseDelegate; @property (nonatomic, strong) NSMutableArray* sectionsStates; @end