iOS custom gallery - ios

Sorry, I've asked a similar question but I'm already suffering 3 days dealing with a simple photo gallery in my app. I just need a gallery with array of 1024x768 images, a gallery that will fit pictures properly into the screen.
I've tried
ATPagingView - worked fine but an 1024x768 image couldn't be resized properly for both orientations.
MWPhotobrowser - didn't managed to connect because i'm using ARC, even if I disabled arc for added files, there was a compile error I coudn't get rid of.
Custom UIScrollView with pages, with a scrollView for each page and imageview inside it, but it didn't help.
Please, help me somehow, did somebody make galleries like that?

Give Nimbus a try. It is an open source framework that is run by jverkoey, ex Three20 guy. It is not ARC'd yet, but you can turn ARC off for compilation and that works just fine, plus they are moving to ARC soon, already have a git branch of it. It has a photoviewer class but I've not used it yet, but I will need to, that's only one of the reasons I'm using it. Pretty happy with it so far!

I already found KTPhotoBrowser classes. They are nice and well-documented. I implemented the very simple photo browsing gallery very fast. Images are now resized properly, everything is okay. if you want a gallery, try this, for sure!

Related

iOS8 - Crop and Straighten image as built in photos tool

In my app, i want users to click a photo, then i want to allow them to edit it for crop/rotate/straighten. Can i use built-in photos app for that? or is there any open-source/api to have similar view controller.
I know it's a possible duplicate of Is there a view controller for image crop and rotate works like iOS 8 photo.app? but i found no answer here as well.Please let me know if it's possible?
Unfortunately, no.
UIImagePickerViewController allowEditing property, when set to YES, provides you a very simple cropping UI, but it doesn't support advanced rotation as iOS Photo app.
So you'll have to make it yourself.
The github projects in the question you linked might be a good starting point for that. (here's another one)
Good luck !
I wrote one in Swift, you can continue to develop based on this: QCropper

UIButton image/backgroundimage scaling issues

I have tried everything, so I finally decided to post this question. I have a button (well, quite a few actually) that holds an image, which was working fine, until my employer decided they were too small. First thing I did was get some new pictures, that were bigger, so the resolution wouldn't be bad. Now when I tried to "oversize" my button, at some point the image just didn't want to follow anymore and stopped scaling. I went searching on the internet, and saw that everybody was telling ppl to put their image as background image instead. I did that, but then a new problem raised: resolution was awful. So basically I have two question.
1. Is it really not possible to make a buttons image scaletofill; do you really have to work around by using background image.
2. Is there any reason that somebody else can think of why my resolution would be bad, as the picture I use is actually bigger than the background (and the proportions are correct). I originally had smaller pictures, but I deleted them from images assets and loaded in the new ones. I can't imagine Xcode somehow retaining a snapshot of the old pictures, but this makes no sense to me.
Any clearance on the subject greatly appreciated!
Try to remove app from simulator or device and clean Xcode build cache (Build->Clean)

Photo Gallery like table iOS

I am in the process of designing an application that will look like the image below. I am wondering if there is anything out there that will help me create this style of a table. I have seen three20 and other sources. I already figured out how to load images from the website I need, using JSON, now I need to put it into that view style. . It looks like it may be a basic gallery layout, but I am not sure where the best place to start may be.
http://i.imgur.com/e50Uz.jpg
EDIT: Thanks guys, this ended up being quite helpful as well: http://www.scott-sherwood.com/ios-6-uicollectionviewcontroller/
Try to check UICollectionView https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/CollectionViewPGforIOS/Introduction/Introduction.html
Have a look at UICollectionView. It's perfect for that sort of thing.
Ask again with specific questions if you have them.
The new UICollectionView framework is made for things like this, and it's really easy to use. The only downside to using a collection view is that it's only available on iOS 6+, so if you want backwards compatibility, you might want to look into third-party open source frameworks.
Here's a great tutorial on UICollectionViews to help you get started.
http://www.adoptioncurve.net/archives/2012/09/a-simple-uicollectionview-tutorial.php

IOS Orientation fix doesn't work all the time

I am developping a swipe gallery for mobile devices. Users can change images by sliding the screen, as any normal images gallery in most iPhone app.
Here is a demo:
http://daviddarx.com/stuffs/work/custom/swip/
To debug the iOS orientation bug (which let the content zoomed when you change the orientation), I used the only library that correct that:
http://scottjehl.github.com/iOS-Orientationchange-Fix/
Unfortunately, this library is working perfectly most of the time, but it happens to fail and not work correctly. This happen around 1 time on 10 times, and the result is then the same as if the library wasn't here.
This is not a huge problem on most of the mobile and responsive website, as the user can manually dezoom and then get back to the normal display.
But the problem here is that I had to disable the zoom function, to make my system work correctly. So, when the bug happen, once on 10 times, the gallery is then just bugged and stay like that....
So, here are my questions:
-do you know any other library that manage that bug fix, and is 100% completely reliable?
-if not, do you know a way to correct the used library to get a 100% support rate?
-if not, do you have any idea or solution for me?
Thank you in advance for your help!
David
There's an outstanding pull request on Scott Jehl's repo that uses slope detection instead of absolute values which seems to not suffer from the intermittent-ness of the original solution.
https://github.com/PeterWooster/iOS-Orientationchange-Fix/

iOS iTunes Album Cover type (or similar) Image Display

Is there any tutorials that show how to make a Image display similar to the Album Art diaply in iTunes? Or anything similar. I followed code posted here, but I just cannot seem to get it working in the new XCode. Opening his project works fine, but using it in my own, the UIImageView renders the images beyond it's borders, making them appear over each other.
Any help would be appreciated.
I assume you're talking about CoverFlow?
I wrote a free, very easy to use CoverFlow library. It's modelled on the way that UITableView works, so if you can use that, you can use this. You can get it from here:
https://github.com/nicklockwood/iCarousel

Resources