Skip to content
Browse files

Add user avater placeholder image

  • Loading branch information...
1 parent d7f9c3f commit 722fac790924ab38f848a3bfa25cb584decdb675 @winfield committed
View
4 Ruby China.xcodeproj/project.pbxproj
@@ -27,6 +27,7 @@
F3361F8D1509FC0100B69BC4 /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = F3361F831509FC0100B69BC4 /* UIImageView+AFNetworking.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
F369F255150B40A900A2DE13 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3269D92150390E000C7D2DA /* CoreGraphics.framework */; };
F369F25C150B442500A2DE13 /* PullRefreshTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F369F25B150B442500A2DE13 /* PullRefreshTableViewController.m */; };
+ F369F25E150B49E100A2DE13 /* userPlaceHolder.png in Resources */ = {isa = PBXBuildFile; fileRef = F369F25D150B49E100A2DE13 /* userPlaceHolder.png */; };
F36A861B1508B3E400A8DE8B /* arrow.png in Resources */ = {isa = PBXBuildFile; fileRef = F36A861A1508B3E400A8DE8B /* arrow.png */; };
F3D5460B1503A5BC00F5A9E3 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3D5460A1503A5BC00F5A9E3 /* QuartzCore.framework */; };
/* End PBXBuildFile section */
@@ -69,6 +70,7 @@
F3361F831509FC0100B69BC4 /* UIImageView+AFNetworking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImageView+AFNetworking.m"; sourceTree = "<group>"; };
F369F25A150B442500A2DE13 /* PullRefreshTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PullRefreshTableViewController.h; path = ../PullRefreshTableViewController.h; sourceTree = "<group>"; };
F369F25B150B442500A2DE13 /* PullRefreshTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PullRefreshTableViewController.m; path = ../PullRefreshTableViewController.m; sourceTree = "<group>"; };
+ F369F25D150B49E100A2DE13 /* userPlaceHolder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = userPlaceHolder.png; sourceTree = "<group>"; };
F36A861A1508B3E400A8DE8B /* arrow.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = arrow.png; sourceTree = "<group>"; };
F3D546001503A59700F5A9E3 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
F3D546011503A59700F5A9E3 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
@@ -139,6 +141,7 @@
F3269DA3150390E100C7D2DA /* MainStoryboard_iPad.storyboard */,
F3269DA6150390E100C7D2DA /* RCITopicViewController.h */,
F3269DA7150390E100C7D2DA /* RCITopicViewController.m */,
+ F369F25D150B49E100A2DE13 /* userPlaceHolder.png */,
F36A861A1508B3E400A8DE8B /* arrow.png */,
F3269D95150390E000C7D2DA /* Supporting Files */,
);
@@ -250,6 +253,7 @@
F3269DA2150390E100C7D2DA /* MainStoryboard_iPhone.storyboard in Resources */,
F3269DA5150390E100C7D2DA /* MainStoryboard_iPad.storyboard in Resources */,
F36A861B1508B3E400A8DE8B /* arrow.png in Resources */,
+ F369F25E150B49E100A2DE13 /* userPlaceHolder.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
2 Ruby China/RCITopicViewController.m
@@ -70,7 +70,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
UIActivityIndicatorView *progressIndicator = (UIActivityIndicatorView *)[cell viewWithTag:105];
UIImageView *imageView = (UIImageView *)[cell viewWithTag:106];
NSURL *gravatarUrl = [NSURL URLWithString:[NSString stringWithFormat:@"http://gravatar.com/avatar/%@.png?s=40", [[topic objectForKey:@"user"] objectForKey:@"gravatar_hash"]]];
- [imageView setImageWithURL:gravatarUrl];
+ [imageView setImageWithURL:gravatarUrl placeholderImage:[UIImage imageNamed:@"userPlaceHolder.png"]];;
[progressIndicator stopAnimating];
return cell;
View
17 Ruby China/en.lproj/MainStoryboard_iPhone.storyboard
@@ -27,28 +27,28 @@
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" tag="101" contentMode="left" text="Title" lineBreakMode="wordWrap" numberOfLines="2" baselineAdjustment="alignBaselines" minimumFontSize="10" id="5rK-h6-LfE">
- <rect key="frame" x="68" y="25" width="232" height="29"/>
+ <rect key="frame" x="68" y="19" width="232" height="29"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="STHeitiSC-Medium" family="Heiti SC" pointSize="13"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="highlightedColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" tag="102" contentMode="left" text="User" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" minimumFontSize="10" id="n0D-wv-r8J">
- <rect key="frame" x="68" y="7" width="49" height="14"/>
+ <rect key="frame" x="68" y="3" width="49" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="highlightedColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" tag="103" contentMode="left" text="Node" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" minimumFontSize="10" id="31i-7y-iKM">
- <rect key="frame" x="240" y="46" width="43" height="14"/>
+ <rect key="frame" x="208" y="52" width="72" height="14"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="highlightedColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" tag="104" contentMode="left" text="19" textAlignment="center" lineBreakMode="clip" numberOfLines="0" baselineAdjustment="alignBaselines" minimumFontSize="10" id="fes-O6-JJh">
- <rect key="frame" x="249" y="7" width="24" height="14"/>
+ <rect key="frame" x="258" y="4" width="22" height="12"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.32537895840423436" green="0.37667854391981725" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
@@ -97,7 +97,7 @@
</connections>
</viewController>
</objects>
- <point key="canvasLocation" x="-11" y="-47"/>
+ <point key="canvasLocation" x="-309" y="-55"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="3hB-kc-1Zy">
@@ -115,11 +115,14 @@
</connections>
</navigationController>
</objects>
- <point key="canvasLocation" x="-537" y="-47"/>
+ <point key="canvasLocation" x="-835" y="-55"/>
</scene>
</scenes>
<classes>
- <class className="RCITopicViewController" superclassName="UITableViewController">
+ <class className="PullRefreshTableViewController" superclassName="UITableViewController">
+ <source key="sourceIdentifier" type="project" relativePath="./Classes/PullRefreshTableViewController.h"/>
+ </class>
+ <class className="RCITopicViewController" superclassName="PullRefreshTableViewController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/RCITopicViewController.h"/>
<relationships>
<relationship kind="outlet" name="topicTableView" candidateClass="UITableView"/>
View
BIN Ruby China/userPlaceHolder.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 722fac7

Please sign in to comment.
Something went wrong with that request. Please try again.