Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Give Pinterest Like PullToRefresh to any UIScrollView with just simple code
* Support iOS7.
* Support only ARC
* Support CocoaPods.
* Support Orientation change.

## Installation
Copy over the files libary folder to your project folder
Expand Down Expand Up @@ -45,7 +46,7 @@ adding PullToRefreshActionHandler
[_tableView stopRefreshAnimation];
```

### support customization
### support customization
#### size change
``` objective-c
[self.tableView.pullToRefreshView setSize:CGSizeMake(40, 40)];
Expand All @@ -63,11 +64,18 @@ adding PullToRefreshActionHandler
[self.tableView.pullToRefreshView setImageIcon:[UIImage imageNamed:@"thunderbird"]];
```

#### pulling offset change (UzysRadialProgressActivityIndicator.m)
#### pulling offset change
``` objective-c
#define PulltoRefreshThreshold 100.0
[self.tableView.pullToRefreshView setProgressThreshold:25];
```

#### set LandScape Inset , Portrait Inset at Each Orientation.
``` objective-c
[self.tableView addTopInsetInPortrait:64 TopInsetInLandscape:52];
// iOS 7 LandScape Navigationbar size 52 , Portrait Navigationbar size 64
```
must call these customization methods after calling 'addPullToRefreshActionHandler'

## Contact
- [Uzys.net](http://uzys.net)

Expand Down
4 changes: 2 additions & 2 deletions UzysCircularProgressPullToRefresh.podspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Pod::Spec.new do |s|

s.name = "UzysCircularProgressPullToRefresh"
s.version = "1.0.7"
s.version = "1.0.8"
s.summary = "Give Pinterest Like PullToRefresh to any UIScrollView with just simple code."
s.author = { "UzysJung" => "uzysjung@gmail.com" }

s.homepage = "https://github.com/uzysjung/UzysCircularProgressPullToRefresh"
s.license = { :type => "MIT", :file => "LICENSE" }

s.platform = :ios
s.source = { :git => "https://github.com/uzysjung/UzysCircularProgressPullToRefresh.git", :tag => "1.0.7" }
s.source = { :git => "https://github.com/uzysjung/UzysCircularProgressPullToRefresh.git", :tag => "1.0.8" }
s.requires_arc = true
s.source_files = 'UzysCircularProgressPullToRefresh/UzysCircularProgressPullToRefresh/Library'
s.resources = ["UzysCircularProgressPullToRefresh/UzysCircularProgressPullToRefresh/Library/*.png"]
Expand Down
44 changes: 44 additions & 0 deletions UzysCircularProgressPullToRefresh/Launch Screen.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2014 Uzysjung. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
<rect key="frame" x="20" y="439" width="441" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
<variation key="widthClass=compact">
<fontDescription key="fontDescription" type="system" pointSize="11"/>
</variation>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="UzysCircularProgressPullToRefresh" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="140" width="441" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="Kid-kn-2rF"/>
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="404" y="445"/>
</view>
</objects>
</document>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
5047AF1318E1B65B00FCDEC2 /* pinterestImage@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5047AF1218E1B65B00FCDEC2 /* pinterestImage@2x.png */; };
951CC05F1834AB49008B47FA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 951CC05E1834AB49008B47FA /* Foundation.framework */; };
951CC0611834AB49008B47FA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 951CC0601834AB49008B47FA /* CoreGraphics.framework */; };
951CC0631834AB49008B47FA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 951CC0621834AB49008B47FA /* UIKit.framework */; };
Expand All @@ -19,6 +20,7 @@
951CC07A1834AB49008B47FA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 951CC0621834AB49008B47FA /* UIKit.framework */; };
951CC0821834AB49008B47FA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 951CC0801834AB49008B47FA /* InfoPlist.strings */; };
951CC0841834AB49008B47FA /* UzysCircularProgressPullToRefreshTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 951CC0831834AB49008B47FA /* UzysCircularProgressPullToRefreshTests.m */; };
956DFDBF19CBCC54002FDFED /* Launch Screen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 956DFDBE19CBCC54002FDFED /* Launch Screen.xib */; };
957BAAB71834C8EF009A8358 /* uzysRootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 957BAAB61834C8EF009A8358 /* uzysRootViewController.m */; };
957BAABE1834C92F009A8358 /* centerIcon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 957BAAB91834C92F009A8358 /* centerIcon@2x.png */; };
957BAABF1834C92F009A8358 /* UIScrollView+UzysCircularProgressPullToRefresh.m in Sources */ = {isa = PBXBuildFile; fileRef = 957BAABB1834C92F009A8358 /* UIScrollView+UzysCircularProgressPullToRefresh.m */; };
Expand All @@ -37,6 +39,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
5047AF1218E1B65B00FCDEC2 /* pinterestImage@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "pinterestImage@2x.png"; path = "Library/pinterestImage@2x.png"; sourceTree = "<group>"; };
951CC05B1834AB49008B47FA /* UzysCircularProgressPullToRefresh.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UzysCircularProgressPullToRefresh.app; sourceTree = BUILT_PRODUCTS_DIR; };
951CC05E1834AB49008B47FA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
951CC0601834AB49008B47FA /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
Expand All @@ -53,6 +56,7 @@
951CC07F1834AB49008B47FA /* UzysCircularProgressPullToRefreshTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "UzysCircularProgressPullToRefreshTests-Info.plist"; sourceTree = "<group>"; };
951CC0811834AB49008B47FA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
951CC0831834AB49008B47FA /* UzysCircularProgressPullToRefreshTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UzysCircularProgressPullToRefreshTests.m; sourceTree = "<group>"; };
956DFDBE19CBCC54002FDFED /* Launch Screen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = "Launch Screen.xib"; sourceTree = "<group>"; };
957BAAB51834C8EF009A8358 /* uzysRootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = uzysRootViewController.h; sourceTree = "<group>"; };
957BAAB61834C8EF009A8358 /* uzysRootViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = uzysRootViewController.m; sourceTree = "<group>"; };
957BAAB91834C92F009A8358 /* centerIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "centerIcon@2x.png"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -90,6 +94,7 @@
951CC0521834AB49008B47FA = {
isa = PBXGroup;
children = (
956DFDBE19CBCC54002FDFED /* Launch Screen.xib */,
951CC0641834AB49008B47FA /* UzysCircularProgressPullToRefresh */,
951CC07D1834AB49008B47FA /* UzysCircularProgressPullToRefreshTests */,
951CC05D1834AB49008B47FA /* Frameworks */,
Expand Down Expand Up @@ -120,6 +125,7 @@
951CC0641834AB49008B47FA /* UzysCircularProgressPullToRefresh */ = {
isa = PBXGroup;
children = (
5047AF1218E1B65B00FCDEC2 /* pinterestImage@2x.png */,
95E79A301848820300CDB0D1 /* thunderbird@2x.png */,
957BAAB81834C92F009A8358 /* Library */,
951CC06D1834AB49008B47FA /* uzysAppDelegate.h */,
Expand Down Expand Up @@ -218,7 +224,7 @@
isa = PBXProject;
attributes = {
CLASSPREFIX = uzys;
LastUpgradeCheck = 0500;
LastUpgradeCheck = 0600;
ORGANIZATIONNAME = Uzysjung;
TargetAttributes = {
951CC0751834AB49008B47FA = {
Expand Down Expand Up @@ -251,8 +257,10 @@
files = (
951CC0691834AB49008B47FA /* InfoPlist.strings in Resources */,
951CC0711834AB49008B47FA /* Images.xcassets in Resources */,
5047AF1318E1B65B00FCDEC2 /* pinterestImage@2x.png in Resources */,
95E79A311848820300CDB0D1 /* thunderbird@2x.png in Resources */,
957BAABE1834C92F009A8358 /* centerIcon@2x.png in Resources */,
956DFDBF19CBCC54002FDFED /* Launch Screen.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -321,7 +329,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -360,7 +367,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -420,7 +426,6 @@
951CC08B1834AB49008B47FA /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/UzysCircularProgressPullToRefresh.app/UzysCircularProgressPullToRefresh";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
Expand All @@ -443,7 +448,6 @@
951CC08C1834AB49008B47FA /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/UzysCircularProgressPullToRefresh.app/UzysCircularProgressPullToRefresh";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>F7E5C0AF-4C95-48FF-8B85-16211DDC04C9</string>
<key>IDESourceControlProjectName</key>
<string>UzysCircularProgressPullToRefresh</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>9700086C16DA3C64A41F7EF55F39ED2C337852B0</key>
<string>https://github.com/albertschulz/UzysCircularProgressPullToRefresh.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>UzysCircularProgressPullToRefresh/UzysCircularProgressPullToRefresh.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>9700086C16DA3C64A41F7EF55F39ED2C337852B0</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/albertschulz/UzysCircularProgressPullToRefresh.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>9700086C16DA3C64A41F7EF55F39ED2C337852B0</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>9700086C16DA3C64A41F7EF55F39ED2C337852B0</string>
<key>IDESourceControlWCCName</key>
<string>UzysCircularProgressPullToRefresh</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges</key>
<true/>
<key>SnapshotAutomaticallyBeforeSignificantChanges</key>
<false/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0600"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "951CC05A1834AB49008B47FA"
BuildableName = "UzysCircularProgressPullToRefresh.app"
BlueprintName = "UzysCircularProgressPullToRefresh"
ReferencedContainer = "container:UzysCircularProgressPullToRefresh.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "951CC0751834AB49008B47FA"
BuildableName = "UzysCircularProgressPullToRefreshTests.xctest"
BlueprintName = "UzysCircularProgressPullToRefreshTests"
ReferencedContainer = "container:UzysCircularProgressPullToRefresh.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "951CC0751834AB49008B47FA"
BuildableName = "UzysCircularProgressPullToRefreshTests.xctest"
BlueprintName = "UzysCircularProgressPullToRefreshTests"
ReferencedContainer = "container:UzysCircularProgressPullToRefresh.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "951CC05A1834AB49008B47FA"
BuildableName = "UzysCircularProgressPullToRefresh.app"
BlueprintName = "UzysCircularProgressPullToRefresh"
ReferencedContainer = "container:UzysCircularProgressPullToRefresh.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "951CC05A1834AB49008B47FA"
BuildableName = "UzysCircularProgressPullToRefresh.app"
BlueprintName = "UzysCircularProgressPullToRefresh"
ReferencedContainer = "container:UzysCircularProgressPullToRefresh.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "951CC05A1834AB49008B47FA"
BuildableName = "UzysCircularProgressPullToRefresh.app"
BlueprintName = "UzysCircularProgressPullToRefresh"
ReferencedContainer = "container:UzysCircularProgressPullToRefresh.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading