Iphone - Photoreel from URL Array - iphone

I've seen a lot of apps that when you click photos you get a small square of each image, and then when you click them you get a full screen version. Actually, just like the photoreel.
Is there a way of populating the photoreel with an array of images? I have about 6 per location that I'd like to show like that.
I've had a google, but coming up a bit blank!
Any help would be appreciated

This is a Flikr JSON tutorial (the first part is mostly the JSON calls but they do some early GUI set up too) but it gets a preview of each image in a small thumbnail and then when clicked it opens the full image in the same window.
Depending on how your images are loaded simply replace the json creation with your array/dictionary params and follow how the tutorial progresses, its only 3 parts and has a good starting point for what you're looking for.
Hope it helps

Related

MAUI CollectionView show Thumbnail instead full size photo

I created a Collection View for a app that showing photo specific by self app captured.
When showing the original photo it very slow e.g. the size of 5MB~10MB may be too large for showing.
Is there any way that I can get or even create the thumbnail for preview?
I tried for using C# standard way but the Image.Save( MemoryStream in MAUI is Windows platform only ...
First of all, I want to point out, that it is not a matter of choice.
Too big images will not be rendered, and you will see nothing but white space. (Learned that from testing it on Android.)
You can check this first:
https://learn.microsoft.com/en-us/dotnet/maui/user-interface/graphics/images?view=net-maui-7.0
I also use ImageSharp. (Despite the non-sense that happened recently, this is still a very good tool).
In any case, maybe it will be good to store the photo and the thumbnail separately, speaking of collection view, I do not think that it will perform well, if you need to mass-scale 5-10 MB photos. At least the devices I use cannot do this effectively.

Get Facebook event large cover photo

I am trying to import a facebook event with js. So far everything works perfectly fine. The only thing is FB returns an object with
cover.source => https://scontent.xx.fbcdn.net/v/t1.0-9/s720x720/12669607_226852920986152_2794185577349660626_n.png?oh=73ee451aa4181b39f18380f2d963a59d&oe=57C7F96F
This is a smaller version of the original image. When I remove 's720x720/', it sometimes returns the larger image but not always, while there is one available.
I checked by manually clicking on event cover and open image in new tab.
Is there a way to get the largest size of this cover photo?
https://scontent-amt2-1.xx.fbcdn.net/v/t1.0-9/12669607_226852920986152_2794185577349660626_n.png?oh=70698f32e16e25ea47a2c8d0d45703c9&oe=57D1650D
Thanks in advance! :)

Gridview for XML with Pictures in iOS

I am building an iPhone app that I would like to be able to have a gallery of images that is loaded from an XML file. The xml simply has the name of the image, and the link for each image as the exact URL where the image is loaded. I have looked at a few different examples like, https://github.com/AlanQuatermain/AQGridView but have a lot of problems customizing it for my use. The link I gave seems way too in depth for the simple thing I want of parsing an XML (which my code does) and to create a 'thumnbail' for each article, filling in that thumbnail with the image provided in the 'link' category of the XML. Could someone help me out a little bit? I am using ASIHTTPREQUEST and GDATAXML libraries to parse my XML as shown in Ray Wenderlich's tutorial on parsing.
EDIT: Looking over stuff, I guess I can create a Custom Cell and only have a UIImageView in the custom cell, but how would I write up the code so I can have about 4 columns of pictures across the cell, and have it load a different picture with each?
If you want a simple solution check out https://github.com/kirbyt/KTPhotoBrowser
It works by using a datasource which you define. these can be images or just URLS. it then goes and fetches the URL and displays the image. It also makes it easier to select a single image compared to your way of using a simple UITableView.
Have a look at the samples included it should fit your purpose.

Application walkthrough when opened for the first time

How do you setup in your application to show little bubbles with text and block the rest of the screen from being used and only allow a small section / button to be pressed. I am wanting to create a walkthrough to show users how to use the application and where to find things within the application when it is opened for the first time.
I would like to dim the rest of the application except for the part I want them to click on. Is there a framework already with these features?
There's no frameworks that provide this functionality, as far as I know.
One way you could do this though is to have a set of overlay images which you overlay over the whole screen the first time the user goes to that screen. To determine if the user has already been to a screen, I suggest you look at NSUserDefaults. To create the overlay images, I'd make the image the full size of the screen (i.e. 460x320 if you are showing the status bar) and then have transparent sections where you want to "see through" to the element below. Add a gesture recogniser to the overlaid image view to detect a tap and then hide the image and set the flag in NSUserDefaults to make it not happen the next time the user goes to that screen.
If you don't get a better answer, you could look at MAAttachedWindow on the page at this link. It's written for Cocoa, not Cocoa Touch, so you would have to convert it. I am considering doing this myself. You might find it to be worth the trouble, but I haven't looked at every detail, yet, so I couldn't say for sure. There are only tow files that are involved (.m and .h).

Want to store photos like photo application

I would like to store severals photos like photo application, however i don't know exactly the objects what i need. If anyone know how to implement this way i'm interested.
A link to give you an idea: http://blog.photobox.fr/wp-content/uploads/2010/07/Album-iPhone5.jpg
thank you in advance.
You can try the PhotoViewer provided in three20 framework. It is exact replica of the Photos app of iPhone, if that's what you're looking for. You can find a tutorial here.
go to this link it help u
https://github.com/kirbyt/KTPhotoBrowser
Having spoken to an Apple engineer on some of the optimizations that they went through on the Photos app, I can give you a couple of tips:
They never display back the original photo. Because of a photo's size, they only take the original photo and save off a number of optimized thumbnail images.
The example image you show does not contain a series of thumbnail images. Each row is actually a single image. For selection, an overlay is placed in the exact size and dimension of the thumbnail image to give the impression that you are selecting a particular image. This could be accomplished by using a table view, but it more likely just a scroll view.