Permalink
Browse files

Merge pull request #19 from BrandonCopley/master

reloadData added, and weak changed to unsafe_unretained for iOS 4 targeting.
  • Loading branch information...
2 parents 5031a91 + 78daa58 commit 410d6126d4c1cf7def35c703c670777b44591389 @alekseyn committed Jun 17, 2012
@@ -65,9 +65,9 @@ typedef enum {
NSUInteger _numItems;
}
-@property (nonatomic, weak) id<EasyTableViewDelegate> delegate;
-@property (nonatomic, readonly, weak) UITableView *tableView;
-@property (nonatomic, readonly, weak) NSArray *visibleViews;
+@property (nonatomic, unsafe_unretained) id<EasyTableViewDelegate> delegate;
+@property (nonatomic, readonly, unsafe_unretained) UITableView *tableView;
+@property (nonatomic, readonly, unsafe_unretained) NSArray *visibleViews;
@property (nonatomic) NSIndexPath *selectedIndexPath;
@property (nonatomic) UIColor *cellBackgroundColor;
@property (nonatomic, readonly) EasyTableViewOrientation orientation;
@@ -81,5 +81,6 @@ typedef enum {
- (void)selectCellAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated;
- (UIView *)viewAtIndexPath:(NSIndexPath *)indexPath;
- (NSIndexPath*)indexPathForView:(UIView *)cell;
+- (void)reloadData;
@end
@@ -388,6 +388,9 @@ - (void)setDataForRotatedView:(UIView *)rotatedView forIndexPath:(NSIndexPath *)
[delegate easyTableView:self setDataForView:content forIndexPath:indexPath];
}
+-(void)reloadData{
+ [self.tableView reloadData];
+}
@end
@@ -19,7 +19,7 @@
@interface FlipsideViewController : UIViewController <EasyTableViewDelegate, ImageStoreDelegate>
-@property (nonatomic, weak) IBOutlet id<FlipsideViewControllerDelegate> delegate;
+@property (nonatomic, unsafe_unretained) IBOutlet id<FlipsideViewControllerDelegate> delegate;
@property (nonatomic) IBOutlet UILabel *errorLabel;
@property (nonatomic) ImageStore *imageStore;
@property (nonatomic) EasyTableView *easyTableView;
@@ -18,7 +18,7 @@
@interface ImageStore : NSObject
-@property (nonatomic, weak) id<ImageStoreDelegate> delegate;
+@property (nonatomic, unsafe_unretained) id<ImageStoreDelegate> delegate;
@property (nonatomic) NSOperationQueue *operationQueue;
@property (nonatomic) NSArray *titles;
@property (nonatomic) NSArray *urls;
@@ -281,6 +281,7 @@
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 4.0;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = 2;
};
@@ -294,6 +295,7 @@
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 4.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = 2;

0 comments on commit 410d612

Please sign in to comment.