Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble-iphoneos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/Classes/MUImageViewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Classes/MUImageViewController.m b/Source/Classes/MUImageViewController.m
index 4eff655..20b0c0c 100644
--- a/Source/Classes/MUImageViewController.m
+++ b/Source/Classes/MUImageViewController.m
@@ -46,8 +46,8 @@
[_scrollView setContentSize:contentFrame.size];
NSMutableArray *imageViews = [[NSMutableArray alloc] initWithCapacity:[_images count]];
- int i = 0;
- for (UIImage *img in _images) {
+ NSUInteger i = 0;
+ for (i = 0; i < [_images count]; i++) {
CGRect imageFrame = CGRectMake(frame.size.width*i, 0, frame.size.width, frame.size.height);
UIScrollView *imgZoomer = [[UIScrollView alloc] initWithFrame:imageFrame];
UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, imageFrame.size.width, imageFrame.size.height)];