Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

currentIndex #7

Closed
adamrushy opened this issue Oct 18, 2013 · 5 comments
Closed

currentIndex #7

adamrushy opened this issue Oct 18, 2013 · 5 comments

Comments

@adamrushy
Copy link

Hi,

Thanks for fixing the crash bug.

Also, I am using this to reference which index it was last on;

    [photoController moveToImageAtIndex:[photoController currentImageIndex] animated:YES];

But it crashes with this?

* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayM objectAtIndex:]: index 2147483648 beyond bounds [0 .. 6]'
*** First throw call stack:

Any ideas?

Thanks,

@x2on
Copy link
Owner

x2on commented Oct 18, 2013

Which version you are using? 1.0.2 or latest trunk?

But why do you want to moveToImageAtIndex to the currentImageIndex?
You are already on that image.

@adamrushy
Copy link
Author

Latest that you have committed.

I think maybe I am slightly confused, let me explain.

Basically when a user taps on an image we take them to the Photo Album screen, then a user might tap on let's say Image 10. Currently your library takes the user to image 1 regardless of the Image selected. I thought this method identified which image has been selected.

Thanks,

@x2on
Copy link
Owner

x2on commented Oct 18, 2013

Thats why there is a init with an imageIndex:

- (id)initWithImageSource:(id <FSImageSource>)imageSource imageIndex:(NSInteger)imageIndex;

@adamrushy
Copy link
Author

Sorry,

An example would be extremely helpful here...

@x2on
Copy link
Owner

x2on commented Oct 18, 2013

@x2on x2on closed this as completed Oct 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants