Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update #3

  • Loading branch information...
commit 614fc92d3bb9220e9204678bb41436be9262adb4 1 parent 3c61621
Roman authored
Showing with 3 additions and 4 deletions.
  1. +2 −2 PhotoWall/CellVC.m
  2. +1 −2  PhotoWall/ViewController.m
4 PhotoWall/CellVC.m
View
@@ -21,10 +21,10 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
if (self) {
self.image = [[UIImageView alloc]init];
[_image setFrame:CGRectMake(0, 0, 150, 150)];
- [_image setBackgroundColor:[UIColor redColor]];
+// [_image setBackgroundColor:[UIColor redColor]];
_indicator = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
- [_indicator setColor:[UIColor blackColor]];
+// [_indicator setColor:[UIColor blackColor]];
[_indicator setFrame:CGRectMake(0,0, 30, 30)];
}
3  PhotoWall/ViewController.m
View
@@ -68,7 +68,6 @@ -(void)setDataImagesForWatching{
view.image.image = [UIImage imageNamed:imageName];
[_pointsArray addObject:[NSValue valueWithCGPoint:CGPointMake(size/2+150*i, size/2+150*j)]];
- [view.view setBackgroundColor:[UIColor redColor]];
[self.scrollView addSubview:view.view];
[view.indicator startAnimating];
[_cellsArray addObject:view];
@@ -142,7 +141,7 @@ -(void)scrollViewDidScroll:(UIScrollView *)scrollView{
if (![_pointsArray containsObject:(NSValue*)cellarray[j]]) {
CellVC * viewPoint = [[CellVC alloc]init];
[viewPoint.view setFrame:CGRectMake(pointValue.CGPointValue.x-75,pointValue.CGPointValue.y-75, 150, 150)];
- [viewPoint.view setBackgroundColor:[UIColor blackColor]];
+
viewPoint.view.tag = iterator;
// тестовая картинка
NSString * imageName = [NSString stringWithFormat:@"test_%d.jpg",[self getRandomNumberBetween:0 to:2]];
Please sign in to comment.
Something went wrong with that request. Please try again.