andreagiavatto / agphotobrowser Goto Github PK
View Code? Open in Web Editor NEWA photo browser for iOS inspired by Facebook.
License: Apache License 2.0
A photo browser for iOS inspired by Facebook.
License: Apache License 2.0
The AGPhotoBrowser.xcodproject is not displaying images when selected.
I have been testing my app for iOS 8 and experienced a problem where images were not displaying. I cache images in an NSDictionary after they are loaded. The image displays when loaded from the network, but is not displayed when loaded from the NSDictionary Cache. After much research I installed the AGPhotoBrowser app on an iPad mini to test and images are not displayed when selected from the viewcontroller.
This leads me to believe that my problem is with AGPhotoBrowser.
Has any testing been done with xCode 6 and iOS 8. I experienced the problem in beta 6 and GM.
this version only support local image..does it plan to support network image??
This project is broken and doesn't work anymore in iOS 11.
I have been using this control in all my apps but once I upgraded to Xcode 9 and run it in iphone 8 simulator running iOS 11 it just doesn't work anymore. No browserView comes up.
Please help!
For some reason when I load the photo browser and my device is laying flat on a table the images will show up at the bottom of the view and the title and description will be chopped off. If I tilt the device towards me, so it is more vertical, the images center.
Just thought I'd post this to see if anyone else can replicate.
Hi, thanks for the amazing work!
I have faced this one issue. I want to pass NSURLS to the class and cache the images from a website.
(UIImage *)photoBrowser:(AGPhotoBrowserView *)photoBrowser imageAtIndex:(NSInteger)index
{
__block UIImage *image;
NSURL *url = [NSURL URLWithString:[photoArray objectAtIndex:index]];
[NSURLConnection sendAsynchronousRequest:[NSURLRequest requestWithURL:url] queue:[NSOperationQueue mainQueue]
completionHandler:^(NSURLResponse *_response, NSData *_data, NSError *_error) {
image = [UIImage imageWithData:_data];
}];
return image;
}
Now the problem is that the block takes a long time to complete while the return image is reached earlier. Have you done anything about this issue?
When I open browserView, it opens correctly but had some problem with description and title, which get aligned to top. When I rotate the view and turn it back to portrait the overlayView corrects itself and moves there where should be. I fixed this by adding this line [self.overlayView resetOverlayView]; on setupView (AGPhotoBrowserView). Please find another fix or add this line to it
If you comment out [self setNeedsUpdateConstraints] in AGPhotoBrowserCell.m the images are displayed. But [statusBarDidChangeFrame] has a problem.
When displaying the viewer with an array of images, how do you get the index of the currently viewed photo in the case of selecting the right image for downloading to the phone as you swipe through the images?
{not sure if this is ok to post this way.. kinda new to git..}
This is a nice looking project, and its' utility would double if we could use it to call up with a source of photos to enable the user to select images, then return control to the app code for processing. I know there are UIImagePickers out there.. just looking for a bit of pizazz..
This is the nicest photo gallery I've seen so far.
It lacks only orientation change support.
I create UIActionSheet before display AGPhotoBrowser. In delegate of UIActionSheet When I click display AGPhotoBrowser display the image but suddenly close its view. How can I resolve this?
I only change these lines of codes of depo project.
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{
if (buttonIndex == 0) {
[self.browserView showFromIndex:0];
}
}
}
You may add "[self.photoTable reloadData];" to prevent possible crash on using AGPhotoBrowser if you are considering this to use this for dynamic count of photos. (Increasing count of photos).
how to use NSURL array to get the image for
I tried use
NSArray *array = @[@"http://imgur.com/0001.png", @"http://imgur.com/0002.png", @"http://imgur.com/0003.png"]
Any idea about opening a UIActivityView for the sharing purpose.
As the BrowserView takes the full screen and it does not let any other view to come at front.
Help will be great :)
When the view is presented and centred I try to double tap on the black area but close to the actual photo. As a result the view is zoomed the photo gets moved either up or down (depending where double tapped); when I try to move the photo back the gesture closes the view (dismisses). Expected behaviour: double tap zooms the photo and centres it.
I have used AsyncImageView with this photobrowser.
https://github.com/nicklockwood/AsyncImageView/tree/master/AsyncImageView
In earlier version it was showing me the activity indicator but it is not showing in iOS 8. Image was also not loading automatically when it will load from the url.
in AGPhotoBrowserView
// [UIView animateWithDuration:AGPhotoBrowserAnimationDuration //0.25
// animations:^(){
// self.backgroundColor = [UIColor colorWithWhite:0.0 alpha:1.];
// }
// completion:^(BOOL finished){
// if (finished) {
// self.userInteractionEnabled = YES;
// self.displayingDetailedView = YES;
// self.photoTableView.alpha = 1.;
// [self.photoTableView reloadData];
// }
// }];
If you are viewing an image and Rotate back and forth between orientations everything is ok.
But if you zoom into an image then Rotate back and forth between orientations the image gets resized over and over and is off to one side of the screen.
I am using iOS 7 and the latest version. I am also getting warnings for '/AGPhotoBrowser-master/src/AGPhotoBrowserOverlayView.m:77:67: 'sizeWithFont:constrainedToSize:' is deprecated: first deprecated in iOS 7.0 - Use -boundingRectWithSize:options:attributes:context:'
Any ideas on how to fix this effect?
Thank you for a great control.
Is it possible to add a zoom pinch function?
The Title and Description is only shown after i swipe/move the image left / right ...
double click the image not to zoom
Can't display image on iOS 9.3.5
If drag to left or right at the begining, then continue drag to up or down works fine.
But if drag to up or down at the begining it respond to dismiss action.
I think the reason we zoom a photo is for drag it to any orientation,
and at that specific case we still have a done button do the dismiss action
And landscape photo zooms weird, there is too much black background.
I think it's the height of the scrollView it too high.
//----------
Sorry for my poor English.
Does this library support UICollectionView?
Related #2, but with more detail.
The description is displayed at the top of the screen until the swipes left or right, then it is displayed at the bottom.
Before swipe:
After:
The docs imply the UI should be consistent since there is not mention of this. Any known workaround or up coming fix?
Done via:
- (NSString*) photoBrowser:(AGPhotoBrowserView *)photoBrowser descriptionForImageAtIndex:(NSInteger)index {
return self.selectedTweet.textTweet;
}
I'm having an issue with the image overlay view not getting set properly when the browser view is initially shown. The title and description show up in the upper left hand corner and are all mangled.
I found that if I call [self.overlayView resetOverlayView] in the show function within AGPhotoBrowserView it fixes the problem.
What is the correct way to present a UIActivityViewController in didTapOnActionButton ?
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.