Refreshing AFOpenFlow - iphone

I am creating a cover flow on iPad using AFOpenFlow library.
I am also providing a camera button in the view. If user captures any image and comes back to the previous view, the cover flow should be refreshed displaying the new image in it.
Any ideas how to do that?

The link provided by Alastair Stuart is nice but if you have implemented coverflow already then you can reset/refresh the coverflow by calling as follows:
if you want to refresh or set the coverflow to index 0 you can use following:
[(AFOpenFlowView*)coverFlow setSelectedCover:0 ];
if you want to reset coverflow use:
[(AFOpenFlowView*)coverFlow setNumberOfImages:0 ];
//reset cover flow.
[(AFOpenFlowView*)coverFlow setSelectedCover:(int)COVER_FLOW_RESET_INDEX ];
it will delete all the images in cover flow.

Try using iCarousel instead.

Related

UIScrollView with multiple images

How to show current image in the scroll view along with some part of the next image if next image is available in the scroll view and also some part of the previous image if a previous image is available
Like the pic attached here
This specific pattern makes me remind of iCarousal.Check it
You need to make use of UIScrollView with paging enabled in order to implement your requirements.
the following link provides example for the same.
http://developer.apple.com/library/iOS/#samplecode/PageControl/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007795
Here is the link that provides information on how to go about scrollView with paging enabled.
http://developer.apple.com/library/iOS/#documentation/WindowsViews/Conceptual/UIScrollView_pg/ScrollViewPagingMode/ScrollViewPagingMode.html
Try this demo for your scrollview effects.
cover-flow-demo
CoverFlow
HM-Customized-ScrollView
Here is a good tutorial.Please find the same it will be useful for you
Hope this helps.

Swiping through a stack of images?

I recently came across this app, tinder, which has a really cool functionality.
You start off with X images. User can swipe left or right to go through each image to signal whether the user likes or dislikes something.
An image can be seen here:
I have been looking at UICollectionView to do this, but I am a little confused about the custom layout I should be using.
I have been thinking of generating a bunch of cells and then setting different z-index and stacking them on top of one another with the same frame.x.
Any tutorial/advise/help available?
This is simple UIImageviews. and tinder only showing two top images and set a background frame just like facebook image gallery.
When you swipe top image current thread fire next image and it replace current image with new image. And you can add like, comment views as you want.
This sounded like fun, so I built an open-source library that mimics the interface you described.
https://github.com/modocache/MDCSwipeToChoose
The sample app included in the project is nearly identical to the UI in your screenshot.

How to create function that works take photo shoot+ save

I want to create an iphone app that if you shoot using the camera it automatically save and shoot again until you click Done.
is that possible?
Look at the takePicture method of UIImagePickerController. From the documentation:
Use this method in conjunction with a custom overlay view to initiate the programmatic capture of a still image. This supports taking more than one picture without leaving the interface, but requires that you hide the default image picker controls.
Since you have to have the default controls hidden, you'll also want to look at cameraOverlayView, which lets you provide your own controls to use instead. That's where you can put your start and done buttons.

How to use a UIScrollview with a few images

I have not used a UIScrollView before, and I just wanted to know how I could use paging in a UIScrollView, where there would be a different image on each page, and depending on the page currently selected I would set the image on that page to a separate UIImageView's image.
So if anyone could tell me how to do this that would be great.
The Snipplr reference here gives you a great barebones look into how to set this up.

How do you implement swipe-able image stacks like the Photo app using the iPhone SDK?

I would like to take a stack of images (or potentially an array of URLs to download images) and display them in full screen, one at a time, using user swipes to smoothly animate the next image in the stack, using the iPhone SDK. Apple's Photo.app seems to do this. Additionally, if the image has not been retrieved yet, I'd like to display the progress indicator.
Can you point me to example code and explain how this technique would be implemented?
You need to use UIScrollview's page control mechanism. Apple has plenty of sample code, including one called, strangely enough, Page Control:
http://developer.apple.com/iphone/library/samplecode/PageControl/index.html
If you want any behavior beyond that, you'll have to roll it yourself.