Skip to content

Commit

Permalink
Update #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuclominus committed Mar 28, 2014
1 parent 3c61621 commit 614fc92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PhotoWall/CellVC.m
Expand Up @@ -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)];
}

Expand Down
3 changes: 1 addition & 2 deletions PhotoWall/ViewController.m
Expand Up @@ -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];
Expand Down Expand Up @@ -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]];
Expand Down

0 comments on commit 614fc92

Please sign in to comment.