Permalink
Browse files

Refinements to MKSocialShareTableViewCell

  • Loading branch information...
1 parent 90e1237 commit 5a3a8f3b21ca476b0a149fce3d048e0b8362d265 @michaelkamprath committed Aug 6, 2012
View
2 README
@@ -2,4 +2,4 @@ iPhoneMK is a loose collection of Objective-C classes for the iPhone SDK that I
If you find any of these classes useful, I'd love to hear about it. If you have improvements for any of them, feel free to commit your changes, however, I ask that you try not to change existing interface.
-NOTE - iPhoneMK is not ARC-enabled code. You will need to use the -fno-objc-arc compiler flag on iPhoneMK source files in ARC-enabled projects.
+NOTE - Some of iPhoneMK is not ARC-enabled code, some requires ARC. Compiler errors have been built into the code base to help you identify which classes need ARC and which don't. Furthermore, the errors instruct you how to change that file's compilation method to support it's ARC-mode. Basically, if you have an ARC-enabled project, you will need to use the -fno-objc-arc compiler flag on iPhoneMK source files that are not ARC-enabled. Similarly, if you are not using ARC, you will have to use the -fobjc-arc compiler flag on iPhoneMK source files that require ARC.
@@ -127,7 +127,12 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger
return 3;
break;
case SECTIONID_MKSocialShareTableViewCell:
- return 1;
+ if ( [MKSocialShareTableViewCell socialShareAvailable]) {
+ return 1;
+ }
+ else {
+ return 0;
+ }
break;
default:
return 0;
@@ -19,11 +19,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>1.0</string>
+ <string>1.1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
@@ -16,8 +16,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
-// Icons provided with this class were created with the publically available marketing material of each respective trademark holder. Please
-// consult with Facebook's, Twitter's, and Weibo's marketing guidelines before using the provided icons in your project.
+// Icons provided with this class were created with the publically available marketing
+// material of each respective trademark holder. Please consult with Facebook's, Twitter's,
+// and Weibo's marketing guidelines before using the provided icons in your project.
//
#ifndef __IPHONE_6_0
@@ -29,7 +30,6 @@
@interface MKSocialShareTableViewCell : UITableViewCell {
}
-@property (readonly,nonatomic) NSUInteger currentCellHeight;
@property (strong,nonatomic) NSString* postText;
@property (strong,nonatomic) NSArray* postImageList;
@property (strong,nonatomic) NSArray* postURLList;
@@ -16,9 +16,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
-// Icons provided with this class were created with the publically available marketing material of each respective trademark holder. Please
-// consult with Facebook's, Twitter's, and Weibo's marketing guidelines before using the provided icons in your project.
-//
+// Icons provided with this class were created with the publically available marketing
+// material of each respective trademark holder. Please consult with Facebook's, Twitter's,
+// and Weibo's marketing guidelines before using the provided icons in your project.
+//
#ifndef __has_feature
#define __has_feature(x) 0

0 comments on commit 5a3a8f3

Please sign in to comment.