From b5d02953fd902b16f95d6cac1ec71d2c58507860 Mon Sep 17 00:00:00 2001 From: Paul Zabelin Date: Sun, 26 Jan 2014 00:00:02 -0800 Subject: [PATCH 1/2] fix deprecated method call warning on iOS7 --- .../MNMBottomPullToRefresh/MNMBottomPullToRefreshView.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MNMBottomPullToRefreshDemo/MNMBottomPullToRefresh/MNMBottomPullToRefreshView.m b/MNMBottomPullToRefreshDemo/MNMBottomPullToRefresh/MNMBottomPullToRefreshView.m index 92b986e..b7dadf2 100644 --- a/MNMBottomPullToRefreshDemo/MNMBottomPullToRefresh/MNMBottomPullToRefreshView.m +++ b/MNMBottomPullToRefreshDemo/MNMBottomPullToRefresh/MNMBottomPullToRefreshView.m @@ -153,7 +153,11 @@ - (void)layoutSubviews { [super layoutSubviews]; +#if (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0) CGSize messageSize = [[messageLabel_ text] sizeWithFont:[messageLabel_ font]]; +#else + CGSize messageSize = [[messageLabel_ text] sizeWithAttributes:@{NSFontAttributeName:[messageLabel_ font]}]; +#endif CGRect frame = [messageLabel_ frame]; frame.size.width = messageSize.width; From 556c9e7503ab35216368ab451e3c2fcefed44d88 Mon Sep 17 00:00:00 2001 From: Paul Zabelin Date: Sun, 26 Jan 2014 00:06:24 -0800 Subject: [PATCH 2/2] add podspec --- MNMBottomPullToRefresh.podspec | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 MNMBottomPullToRefresh.podspec diff --git a/MNMBottomPullToRefresh.podspec b/MNMBottomPullToRefresh.podspec new file mode 100644 index 0000000..fe211c5 --- /dev/null +++ b/MNMBottomPullToRefresh.podspec @@ -0,0 +1,38 @@ +Pod::Spec.new do |s| + s.name = "MNMBottomPullToRefresh" + s.version = "0.0.1" + s.summary = "." + s.description = <<-DESC + MNMBottomPullToRefresh is a solution to add pull-to-refresh feature to the bottom of an UITableView instead of the top, as usual. + DESC + s.homepage = "https://github.com/emenegro/bottom-pull-to-refresh" + s.platform = :ios, '5.0' + s.author = 'Mario Negro' + s.license = { :type => 'MIT', :text => <<-LICENSE + Copyright (c) 2012 Mario Negro Martín + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + LICENSE + } + s.requires_arc = true + s.source = { :git => "https://github.com/emenegro/bottom-pull-to-refresh.git", :commit => '82d5fed6dd7f4a4df531a6954398b60b9aecec6d' } + s.source_files = 'MNMBottomPullToRefreshDemo/MNMBottomPullToRefresh/*.{h,m}' + s.resources = 'MNMBottomPullToRefreshDemo/MNMBottomPullToRefresh/*.{png,strings}' +end