I'm trying to create an app like iPhone Photos
the Photos App loads all the images in the Collections in small grids, how the collection view cells will be resized as per the images, is there any library or built-in SDK to do this
I want to display images in my app like in iOS Photos app collections/years, is i have to use UICollectionView or Any other Object to achieve this
I googled for this, i cannot find any library or hint regarding the Mosaic view like iPhone Photos App
Thanks in advance...
You can use UICollectionView for this task.
Example: Three controllers in navigation stack with different UICollectionViews:
Years. Every year's time range has own section.
Year. Every month's time range has own section.
Month. Every day's time range has own section.
Related
I'm currently developing an app that requires ads placed within the cells or "tiles" of a grid. The grid is created using a view controller with an UICollectionView. It has two cells going across and is scrollable vertically. The fabric SDK I'm using gives users the option to implement mopub ads within apps and I would like these ads to appear randomly within the grid. Any suggestions? The app is also a basic RSS feed I'm experimenting with.
So I'm creating an app at the moment and one of my views has a design that resembles the Apple app store where there are multiple icons in sections that are scrollable horizontally as well as being able to scroll vertically through the sections (Categories). Anyone with an iPhone can simply open the app store application on the device and view the featured tab to understand what I'm trying to achieve.
My question is how to achieve the design in the app store. Im assuming its a combination of multiple components such as a table view/collection view, scroll view and image views.
I don't believe there are any duplicates to this question from my research, but as always I stand corrected. Any insights or direction would be great.
So here's the issue i'm currently running into.
I have an app that shows a Facebook/Path like feed with a UITableView. Let's say that my datasource has about 200 items and not all cells have the same content and cell height. Some have images and some don't. I was able to overcome the scrolling performance issue by initializing my cells with a reusable identifier in the following format: [NSString stringWithFormat:"entry_%d", some_id]. Things were going really well up until I started using the UIImagePickerViewController. As you can imagine I've been receiving a lot of memory warnings due to my large datasource/table.
When playing with the Path's app and trying to load as many data into a single view; they do a really good job at both the scrolling performance and memory management. Their app also doesn't crash whenever I go into the camera mode.
Any thoughts or theories?
Thanks! :)
I highly suggest you check out the Facebook iOS framework which reimplements the table view. The name of the framework is Three20, and you can find it on github here.
With that said, if you have a very large table, you need to be careful to only load resources for those things that are in view, and release resources for items once they go out of view. The delegate method tableView:didEndDisplayingCell:forRowAtIndexPath: (available iOS 6 and later) is your friend for that. Here is another question related to this topic.
Im looking into having a tableview and a custom cell that has a webview control. The purpose of the webview would to show a google map inside the webview at some lat/long.
Could there be problematic with this approach? Memory issues?
Another approach would be having a uiimage and use the google map static api to generate the image and store the image on my server and have the app request the image via a URL.
I was hoping to avoid generating the images and storing them on my server and using directly the google map in a web view, but not sure what kind of issues i could run into with this approach?
The only problem is speed. If your table view consists of rows and rows of MKMapViews, it will take time for each one to load as the user scrolls through them. However, if there is only one it shouldn't be a problem.
The static image approach has the same problem but I think it might be slightly faster.
I have an app in the App Store for a local festival that had many events at different venues. Given that the audience was from all over the world, and thus unknown in town, the app showed a map for each event. I solved this using an MKMapView inside a custom UITableViewCell and using an accessory disclosure button that would push a detailed map view onto the navigation controller. It worked well, but was a little slow. I would not recommend it for many such cells.
Screen shot:
I have made the decision to use monotouch to develop an application that browses an rss feed and displays a grid of images much like browsing the picture library actually on the device.
My issue is that I have NO idea (even after extensive googling) as to what control I should use.
I want to be able to swish through the list of images which I really wanted in a UITableView BUT all documentation insists that UITableView only has 1 column :(
I dont want to get too complicated with my requirement at this stage for unloading and loading resource as the images go off screen but if anyone has any pointers for me in starting this and what control I should go for I would be grateful.
My initial thoughts are perhaps having n images in every cell and the cells are very wide (would an ipad only display those it can and automatically allow swiping to the others off screen?)
Many thanks
Richard
The UItableView is only one column, but you can define the UITableViewCell to your own class and allow any number of elements across it.
As to whether something goes off the screen, that is entirely down to your application.
Have a look at the developer videos on iTunes, especially the beginning table views sections, that should point you in the right way