iOS: use NSInteger insteadof NSUInteger
This commit is contained in:
		| @@ -282,13 +282,13 @@ - (void)callLoadMore { | |||||||
| 
 | 
 | ||||||
| - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | ||||||
|     @try { |     @try { | ||||||
|         NSUInteger position = (NSUInteger) indexPath.row; |         NSInteger position = (NSInteger) indexPath.row; | ||||||
|         NSDictionary *model = [self itemModelAt:position]; |         NSDictionary *model = [self itemModelAt:position]; | ||||||
|         NSDictionary *props = model[@"props"]; |         NSDictionary *props = model[@"props"]; | ||||||
|         NSString *reuseId = props[@"identifier"]; |         NSString *reuseId = props[@"identifier"]; | ||||||
|         self.itemActions[@(position)] = props[@"actions"]; |         self.itemActions[@(position)] = props[@"actions"]; | ||||||
|         if (self.loadMore |         if (self.loadMore | ||||||
|                 && position >= self.rowCount - 1 - self.preloadItemCount |                 && position >= MAX(0, (NSInteger) self.rowCount - 1 - (NSInteger) self.preloadItemCount) | ||||||
|                 && self.onLoadMoreFuncId) { |                 && self.onLoadMoreFuncId) { | ||||||
|             reuseId = @"doricLoadMoreCell"; |             reuseId = @"doricLoadMoreCell"; | ||||||
|             [self callLoadMore]; |             [self callLoadMore]; | ||||||
| @@ -493,7 +493,7 @@ - (void)blendSubNode:(NSDictionary *)subModel { | |||||||
| 
 | 
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| - (void)callItem:(NSUInteger)position height:(CGFloat)height { | - (void)callItem:(NSInteger)position height:(CGFloat)height { | ||||||
|     NSNumber *old = self.itemHeights[@(position)]; |     NSNumber *old = self.itemHeights[@(position)]; | ||||||
|     if (old && [old isEqualToNumber:@(height)]) { |     if (old && [old isEqualToNumber:@(height)]) { | ||||||
|         return; |         return; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user